Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001814/0.001814, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002255/0.002255, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.481/1.481, allocations: 225.6 MB / 249.1 MB, free: 3.594 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2013/0.2013, allocations: 38.51 MB / 342.5 MB, free: 8.047 MB / 270.1 MB " [Timeout remaining time 180] 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.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 61.39 kB / 478.6 MB, free: 33.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1306, allocations: 61.24 MB / 0.5272 GB, free: 1.391 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.008956/0.1396, allocations: 4.468 MB / 0.5316 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002868/0.1425, allocations: 1.429 MB / 0.533 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002853/0.1428, allocations: 15.94 kB / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001191/0.1439, allocations: 382.4 kB / 0.5333 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000632/0.1446, allocations: 234.8 kB / 0.5336 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007269/0.1453, allocations: 243.4 kB / 0.5338 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006774/0.146, allocations: 0.5262 MB / 0.5343 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004088/0.1464, allocations: 213.1 kB / 0.5345 GB, free: 9.867 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003771/0.1468, allocations: 259 kB / 0.5348 GB, free: 9.613 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000474/0.1472, allocations: 315 kB / 0.5351 GB, free: 9.305 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.499e-05/0.1473, allocations: 32 kB / 0.5351 GB, free: 9.273 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003142/0.1476, allocations: 151.7 kB / 0.5352 GB, free: 9.125 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002266/0.1478, allocations: 223.4 kB / 0.5354 GB, free: 8.906 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000244/0.1481, allocations: 238.8 kB / 0.5357 GB, free: 8.672 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006821/0.1488, allocations: 0.5604 MB / 0.5362 GB, free: 8.109 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.319e-06/0.1488, allocations: 0 / 0.5362 GB, free: 8.109 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1488, allocations: 4 kB / 0.5362 GB, free: 8.105 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.531e-05/0.1488, allocations: 7.922 kB / 0.5362 GB, free: 8.098 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001316/0.1501, allocations: 0.746 MB / 0.537 GB, free: 7.301 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.1501, allocations: 15.89 kB / 0.537 GB, free: 7.285 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.669e-05/0.1502, allocations: 78.72 kB / 0.5371 GB, free: 7.199 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005227/0.1508, allocations: 84.59 kB / 0.5371 GB, free: 7.117 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007482/0.1515, allocations: 415.4 kB / 0.5375 GB, free: 6.668 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.369e-05/0.1515, allocations: 29.38 kB / 0.5376 GB, free: 6.637 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.1517, allocations: 55.91 kB / 0.5376 GB, free: 6.582 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008868/0.1526, allocations: 0.6209 MB / 0.5382 GB, free: 5.902 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.581e-05/0.1526, allocations: 3.984 kB / 0.5382 GB, free: 5.898 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.253e-05/0.1526, allocations: 20 kB / 0.5382 GB, free: 5.879 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001256/0.1528, allocations: 28.98 kB / 0.5383 GB, free: 5.848 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007556/0.1535, allocations: 483.5 kB / 0.5387 GB, free: 5.375 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003491/0.157, allocations: 2.884 MB / 0.5415 GB, free: 2.34 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000401/0.1574, allocations: 222.9 kB / 0.5418 GB, free: 2.105 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000217/0.1576, allocations: 137.7 kB / 0.5419 GB, free: 1.965 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.366e-05/0.1577, allocations: 7.938 kB / 0.5419 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.1577, allocations: 34.56 kB / 0.5419 GB, free: 1.914 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.344e-06/0.1577, allocations: 4 kB / 0.5419 GB, free: 1.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.001744/0.1594, allocations: 0.9734 MB / 0.5429 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.346e-05/0.1595, allocations: 77.11 kB / 0.543 GB, free: 0.793 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003609/0.1599, allocations: 332.4 kB / 0.5433 GB, free: 472 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.116e-05/0.1599, allocations: 29.7 kB / 0.5433 GB, free: 436 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002071/0.1601, allocations: 284.1 kB / 0.5436 GB, free: 144 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.645e-05/0.1602, allocations: 111.1 kB / 0.5437 GB, free: 32 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/0.1603, allocations: 98.28 kB / 0.5438 GB, free: 15.93 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.1605, allocations: 342.8 kB / 0.5441 GB, free: 15.58 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002282/0.1607, allocations: 145 kB / 0.5442 GB, free: 15.44 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003955/0.1611, allocations: 351.2 kB / 0.5446 GB, free: 15 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006812/0.1618, allocations: 0.521 MB / 0.5451 GB, free: 14.39 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1618, allocations: 0 / 0.5451 GB, free: 14.39 MB / 414.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0008172/0.1626, allocations: 0.521 MB / 0.5456 GB, free: 13.86 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.1627, allocations: 15.92 kB / 0.5456 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/0.1627, allocations: 8 kB / 0.5456 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.515e-05/0.1627, allocations: 8 kB / 0.5456 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004348/0.1631, allocations: 123.8 kB / 0.5457 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.954e-05/0.1632, allocations: 11.98 kB / 0.5458 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002348/0.1634, allocations: 31.94 kB / 0.5458 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.838e-05/0.1634, allocations: 20 kB / 0.5458 GB, free: 13.65 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002663/0.1637, allocations: 225.6 kB / 0.546 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.676e-05/0.1638, allocations: 35.8 kB / 0.5461 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006531/0.1644, allocations: 357.7 kB / 0.5464 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.1644, allocations: 4 kB / 0.5464 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.1644, allocations: 0 / 0.5464 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.1644, allocations: 4 kB / 0.5464 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001544/0.166, allocations: 0.8878 MB / 0.5473 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.166, allocations: 0 / 0.5473 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003165/0.1663, allocations: 63.91 kB / 0.5473 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.1663, allocations: 4 kB / 0.5473 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.85e-05/0.1663, allocations: 19.86 kB / 0.5473 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.1663, allocations: 0 / 0.5473 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.1663, allocations: 4 kB / 0.5474 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000801/0.1671, allocations: 0.5823 MB / 0.5479 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001126/0.1673, allocations: 116.8 kB / 0.548 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.949e-05/0.1673, allocations: 7.938 kB / 0.548 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001814/0.1675, allocations: 15.98 kB / 0.5481 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.504e-05/0.1675, allocations: 19.98 kB / 0.5481 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.231e-05/0.1676, allocations: 11.98 kB / 0.5481 GB, free: 11.18 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002288/0.1678, allocations: 215.1 kB / 0.5483 GB, free: 10.97 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1678, allocations: 0 / 0.5483 GB, free: 10.97 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004684/0.1683, allocations: 96 kB / 0.5484 GB, free: 10.88 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001146/0.1694, allocations: 1.142 MB / 0.5495 GB, free: 9.699 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006302/0.17, allocations: 356.9 kB / 0.5498 GB, free: 9.352 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.17, allocations: 0 / 0.5498 GB, free: 9.352 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002115/0.1702, allocations: 131.8 kB / 0.55 GB, free: 9.223 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005249/0.1708, allocations: 75.66 kB / 0.55 GB, free: 9.152 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005163/0.1759, allocations: 3.99 MB / 0.5539 GB, free: 4.879 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005513/0.1765, allocations: 0.8543 MB / 0.5548 GB, free: 4 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003563/0.1768, allocations: 127.1 kB / 0.5549 GB, free: 3.875 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002259/0.1771, allocations: 143.4 kB / 0.555 GB, free: 3.734 MB / 414.1 MB Notification: Performance of SimCode: time 1.122e-06/0.1771, allocations: 0 / 0.555 GB, free: 3.734 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03884/0.2159, allocations: 7.189 MB / 0.562 GB, free: 12.67 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.262/9.478, allocations: 4.875 kB / 0.5621 GB, free: 12.66 MB / 430.1 MB " [Timeout remaining time 650] (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial_fmu --startTime=0 --stopTime=0.1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceInertial.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.541908420622349]