Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 113 kB / 16.63 MB, free: 6.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 189.8 kB / 17.55 MB, free: 5.801 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1689/0.1689, allocations: 38.03 MB / 329.4 MB, free: 9.043 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 64.12 kB / 398.4 MB, free: 34.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08841/0.08983, allocations: 58.07 MB / 456.5 MB, free: 8.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007504/0.09737, allocations: 6.089 MB / 462.5 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002781/0.1002, allocations: 1.83 MB / 464.4 MB, free: 384 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005394/0.1007, allocations: 35.75 kB / 464.4 MB, free: 348 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004098/0.1012, allocations: 107.3 kB / 464.5 MB, free: 240 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008281/0.102, allocations: 290.5 kB / 464.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003993/0.1024, allocations: 135.9 kB / 464.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008559/0.1033, allocations: 0.6888 MB / 465.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005466/0.1039, allocations: 447.7 kB / 466.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004224/0.1043, allocations: 286.9 kB / 466.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004264/0.1047, allocations: 302.8 kB / 466.6 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001347/0.1049, allocations: 48 kB / 466.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001245/0.105, allocations: 44 kB / 466.7 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000177/0.1052, allocations: 155.6 kB / 466.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003186/0.1055, allocations: 270.7 kB / 467.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005563/0.1061, allocations: 0.5878 MB / 467.7 MB, free: 13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.1061, allocations: 0 / 467.7 MB, free: 13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1061, allocations: 0 / 467.7 MB, free: 13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.65e-05/0.1061, allocations: 0 / 467.7 MB, free: 13 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001473/0.1076, allocations: 0.7776 MB / 468.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.1077, allocations: 11.89 kB / 468.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.19e-05/0.1078, allocations: 86.7 kB / 468.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.561e-05/0.1079, allocations: 56.28 kB / 468.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006345/0.1085, allocations: 435.6 kB / 469.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.626e-05/0.1086, allocations: 66.69 kB / 469.1 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.641e-05/0.1087, allocations: 44 kB / 469.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007751/0.1095, allocations: 0.5047 MB / 469.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/0.1095, allocations: 0 / 469.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.735e-05/0.1095, allocations: 20 kB / 469.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.892e-05/0.1096, allocations: 15.98 kB / 469.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006013/0.1102, allocations: 339.7 kB / 470.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002426/0.1126, allocations: 1.976 MB / 472 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004316/0.1131, allocations: 229.8 kB / 472.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001991/0.1133, allocations: 98.59 kB / 472.4 MB, free: 8.074 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.249e-05/0.1133, allocations: 4 kB / 472.4 MB, free: 8.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.247e-05/0.1133, allocations: 38.5 kB / 472.4 MB, free: 8.023 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.623e-06/0.1133, allocations: 0 / 472.4 MB, free: 8.023 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001623/0.115, allocations: 0.844 MB / 473.2 MB, free: 7.125 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.19e-05/0.115, allocations: 102.8 kB / 473.3 MB, free: 7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003498/0.1154, allocations: 341.8 kB / 473.7 MB, free: 6.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.286e-05/0.1154, allocations: 29.7 kB / 473.7 MB, free: 6.625 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001703/0.1156, allocations: 271.6 kB / 474 MB, free: 6.355 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.975e-05/0.1157, allocations: 74.91 kB / 474 MB, free: 6.281 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.635e-05/0.1158, allocations: 69.56 kB / 474.1 MB, free: 6.207 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.1159, allocations: 346.8 kB / 474.5 MB, free: 5.859 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002005/0.1161, allocations: 79.95 kB / 474.5 MB, free: 5.781 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002853/0.1164, allocations: 221 kB / 474.7 MB, free: 5.504 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001164/0.1176, allocations: 0.5535 MB / 475.3 MB, free: 4.875 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.1176, allocations: 0 / 475.3 MB, free: 4.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008201/0.1184, allocations: 420.7 kB / 475.7 MB, free: 4.457 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.1185, allocations: 11.98 kB / 475.7 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.916e-06/0.1185, allocations: 4 kB / 475.7 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000319/0.1188, allocations: 80.78 kB / 475.8 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002293/0.119, allocations: 63.91 kB / 475.9 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001842/0.1209, allocations: 1.928 MB / 477.8 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000202/0.1211, allocations: 12 kB / 477.8 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.352e-05/0.1211, allocations: 20 kB / 477.8 MB, free: 2.195 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002041/0.1214, allocations: 193.8 kB / 478 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.508e-05/0.1214, allocations: 51.39 kB / 478.1 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.36e-05/0.1215, allocations: 39.25 kB / 478.1 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.1215, allocations: 4 kB / 478.1 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1215, allocations: 0 / 478.1 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.1215, allocations: 4 kB / 478.1 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001109/0.1226, allocations: 0.7766 MB / 478.9 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.1227, allocations: 4 kB / 478.9 MB, free: 1.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002443/0.1229, allocations: 43.91 kB / 478.9 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.924e-05/0.123, allocations: 28.88 kB / 479 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.123, allocations: 4 kB / 479 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008489/0.1239, allocations: 1.383 MB / 480.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1239, allocations: 0 / 480.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006851/0.1246, allocations: 0.5016 MB / 480.9 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.1247, allocations: 120.8 kB / 481 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.34e-05/0.1248, allocations: 8 kB / 481 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001938/0.125, allocations: 4 kB / 481 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.155e-05/0.125, allocations: 19.97 kB / 481 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/0.125, allocations: 12 kB / 481 MB, free: 14.74 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000204/0.1253, allocations: 231.2 kB / 481.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1253, allocations: 0 / 481.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004651/0.1257, allocations: 87.94 kB / 481.3 MB, free: 14.43 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009296/0.1267, allocations: 1.052 MB / 482.4 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006813/0.1274, allocations: 385.9 kB / 482.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.1274, allocations: 0 / 482.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003191/0.1277, allocations: 207.5 kB / 483 MB, free: 12.74 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006371/0.1283, allocations: 111.4 kB / 483.1 MB, free: 12.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00484/0.1332, allocations: 3.868 MB / 486.9 MB, free: 8.543 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004/0.1336, allocations: 0.8464 MB / 487.8 MB, free: 7.672 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001991/0.1338, allocations: 51.25 kB / 487.8 MB, free: 7.621 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001619/0.134, allocations: 135.4 kB / 488 MB, free: 7.492 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.134, allocations: 0 / 488 MB, free: 7.492 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02367/0.1577, allocations: 8.206 MB / 496.2 MB, free: 15.5 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001909/0.1579, allocations: 241.6 kB / 496.4 MB, free: 15.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.949/2.107, allocations: 3.75 kB / 496.4 MB, free: 15.25 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches