Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001638/0.001638, allocations: 113 kB / 18.49 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00204/0.00204, allocations: 217.4 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.617/1.617, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1913/0.1913, allocations: 38.51 MB / 349.4 MB, free: 2.574 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/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002034/0.002034, allocations: 71.89 kB / 487.8 MB, free: 22.06 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1303, allocations: 62.41 MB / 0.5373 GB, free: 7.547 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.006829/0.1372, allocations: 4.465 MB / 0.5417 GB, free: 3.059 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002648/0.1398, allocations: 1.492 MB / 0.5432 GB, free: 1.562 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/0.14, allocations: 23.81 kB / 0.5432 GB, free: 1.539 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001044/0.141, allocations: 378.4 kB / 0.5435 GB, free: 1.168 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004919/0.1415, allocations: 222.9 kB / 0.5438 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006365/0.1422, allocations: 251.4 kB / 0.544 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007036/0.1429, allocations: 0.5339 MB / 0.5445 GB, free: 172 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004369/0.1433, allocations: 221.1 kB / 0.5447 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004729/0.1438, allocations: 255 kB / 0.545 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004678/0.1442, allocations: 323 kB / 0.5453 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.705e-05/0.1443, allocations: 32 kB / 0.5453 GB, free: 15.35 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003305/0.1446, allocations: 151.8 kB / 0.5455 GB, free: 15.2 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002483/0.1449, allocations: 223.4 kB / 0.5457 GB, free: 14.98 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002686/0.1451, allocations: 230.9 kB / 0.5459 GB, free: 14.76 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007727/0.1459, allocations: 0.572 MB / 0.5465 GB, free: 14.18 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1459, allocations: 0 / 0.5465 GB, free: 14.18 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1459, allocations: 0 / 0.5465 GB, free: 14.18 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.1459, allocations: 0 / 0.5465 GB, free: 14.18 MB / 414.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.001432/0.1474, allocations: 0.7577 MB / 0.5472 GB, free: 13.38 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/0.1474, allocations: 8.031 kB / 0.5472 GB, free: 13.37 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.17e-05/0.1475, allocations: 17.17 kB / 0.5472 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.88e-05/0.1475, allocations: 78.72 kB / 0.5473 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007251/0.1483, allocations: 124.5 kB / 0.5474 GB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006914/0.149, allocations: 411.4 kB / 0.5478 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.577e-05/0.149, allocations: 33.12 kB / 0.5478 GB, free: 12.67 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001298/0.1491, allocations: 55.97 kB / 0.5479 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/0.1502, allocations: 0.6272 MB / 0.5485 GB, free: 11.92 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.455e-05/0.1502, allocations: 7.938 kB / 0.5485 GB, free: 11.91 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.556e-05/0.1503, allocations: 16 kB / 0.5485 GB, free: 11.9 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001229/0.1504, allocations: 32.92 kB / 0.5486 GB, free: 11.87 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008061/0.1512, allocations: 483.5 kB / 0.549 GB, free: 11.39 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003745/0.155, allocations: 2.884 MB / 0.5518 GB, free: 8.363 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004272/0.1554, allocations: 221.6 kB / 0.552 GB, free: 8.129 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002332/0.1556, allocations: 133.7 kB / 0.5522 GB, free: 7.992 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.392e-05/0.1557, allocations: 4 kB / 0.5522 GB, free: 7.988 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.873e-05/0.1557, allocations: 35 kB / 0.5522 GB, free: 7.945 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 2.665e-06/0.1557, allocations: 4 kB / 0.5522 GB, free: 7.941 MB / 414.1 MB Notification: Performance of matching and sorting (n=28): time 0.001866/0.1576, allocations: 0.9768 MB / 0.5532 GB, free: 6.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.53e-05/0.1577, allocations: 81.11 kB / 0.5532 GB, free: 6.812 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004731/0.1581, allocations: 332.4 kB / 0.5536 GB, free: 6.477 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/0.1582, allocations: 29.7 kB / 0.5536 GB, free: 6.441 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000269/0.1584, allocations: 276.2 kB / 0.5539 GB, free: 6.164 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.1585, allocations: 111.1 kB / 0.554 GB, free: 6.055 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001537/0.1587, allocations: 94.2 kB / 0.554 GB, free: 5.957 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002674/0.159, allocations: 342.8 kB / 0.5544 GB, free: 5.613 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002806/0.1592, allocations: 145 kB / 0.5545 GB, free: 5.473 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004358/0.1597, allocations: 347.2 kB / 0.5548 GB, free: 5.039 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007556/0.1604, allocations: 0.5207 MB / 0.5554 GB, free: 4.426 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.1604, allocations: 0 / 0.5554 GB, free: 4.426 MB / 414.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0009061/0.1613, allocations: 0.5328 MB / 0.5559 GB, free: 3.887 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/0.1614, allocations: 11.98 kB / 0.5559 GB, free: 3.875 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.1614, allocations: 11.92 kB / 0.5559 GB, free: 3.863 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.603e-05/0.1614, allocations: 12 kB / 0.5559 GB, free: 3.852 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004615/0.1619, allocations: 115.8 kB / 0.556 GB, free: 3.738 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.013e-05/0.1619, allocations: 19.92 kB / 0.556 GB, free: 3.719 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002667/0.1621, allocations: 23.98 kB / 0.5561 GB, free: 3.695 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.261e-05/0.1622, allocations: 24 kB / 0.5561 GB, free: 3.672 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.0002937/0.1625, allocations: 225.6 kB / 0.5563 GB, free: 3.441 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.888e-05/0.1626, allocations: 27.81 kB / 0.5563 GB, free: 3.414 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007096/0.1633, allocations: 374 kB / 0.5567 GB, free: 3.039 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.1633, allocations: 0 / 0.5567 GB, free: 3.039 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/0.1633, allocations: 8 kB / 0.5567 GB, free: 3.031 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.1633, allocations: 0 / 0.5567 GB, free: 3.031 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001724/0.165, allocations: 0.8836 MB / 0.5575 GB, free: 2.082 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.165, allocations: 7.938 kB / 0.5576 GB, free: 2.074 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003436/0.1654, allocations: 63.91 kB / 0.5576 GB, free: 2.012 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.628e-06/0.1654, allocations: 4 kB / 0.5576 GB, free: 2.008 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.388e-05/0.1654, allocations: 15.92 kB / 0.5576 GB, free: 1.992 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.1654, allocations: 0 / 0.5576 GB, free: 1.992 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.1654, allocations: 4 kB / 0.5576 GB, free: 1.988 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009828/0.1664, allocations: 0.582 MB / 0.5582 GB, free: 1.379 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001646/0.1666, allocations: 109 kB / 0.5583 GB, free: 1.254 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.448e-05/0.1666, allocations: 11.94 kB / 0.5583 GB, free: 1.242 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001837/0.1668, allocations: 11.98 kB / 0.5583 GB, free: 1.23 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.053e-05/0.1668, allocations: 19.98 kB / 0.5584 GB, free: 1.211 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.757e-05/0.1669, allocations: 11.98 kB / 0.5584 GB, free: 1.199 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002806/0.1672, allocations: 219.1 kB / 0.5586 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1672, allocations: 0 / 0.5586 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005194/0.1677, allocations: 92 kB / 0.5587 GB, free: 0.8984 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.001264/0.1689, allocations: 1.142 MB / 0.5598 GB, free: 15.72 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0007021/0.1696, allocations: 357.3 kB / 0.5601 GB, free: 15.37 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.1696, allocations: 0 / 0.5601 GB, free: 15.37 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002334/0.1699, allocations: 132.3 kB / 0.5602 GB, free: 15.24 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005677/0.1704, allocations: 64.14 kB / 0.5603 GB, free: 15.18 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005907/0.1763, allocations: 3.994 MB / 0.5642 GB, free: 10.9 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005939/0.1769, allocations: 0.862 MB / 0.565 GB, free: 10.01 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003589/0.1773, allocations: 131.1 kB / 0.5652 GB, free: 9.879 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002287/0.1775, allocations: 143.4 kB / 0.5653 GB, free: 9.742 MB / 430.1 MB Notification: Performance of SimCode: time 1.412e-06/0.1775, allocations: 0 / 0.5653 GB, free: 9.742 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02927/0.2068, allocations: 7.222 MB / 0.5724 GB, free: 2.633 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.836/9.043, allocations: 4 kB / 0.5724 GB, free: 2.629 MB / 430.1 MB " [Timeout remaining time 651] (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial_fmu --startTime=0 --stopTime=0.1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.155531004013028] Failed to read output from testmodel.py, exit status != 0: 9.1747816830175 9.195851424 9.046776823 Calling exit ...