Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.ReferenceSynchron,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron",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.001126/0.001126, allocations: 91.42 kB / 16.31 MB, free: 5.664 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.001008/0.001008, allocations: 177.8 kB / 17.2 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.586/1.586, allocations: 205.4 MB / 223.4 MB, free: 5.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.4353/0.4353, allocations: 38.05 MB / 309.7 MB, free: 8.879 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005159/0.0005161, allocations: 12 kB / 376.6 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.138, allocations: 56.33 MB / 432.9 MB, free: 6.602 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.005231/0.1433, allocations: 4.451 MB / 437.4 MB, free: 2.129 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002712/0.146, allocations: 1.571 MB / 439 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003843/0.1465, allocations: 27.88 kB / 439 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002599/0.1467, allocations: 79.33 kB / 439.1 MB, free: 456 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007355/0.1475, allocations: 266.7 kB / 439.3 MB, free: 188 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007237/0.1482, allocations: 235.6 kB / 439.6 MB, free: 15.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007637/0.149, allocations: 0.6743 MB / 440.2 MB, free: 15.28 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009076/0.1499, allocations: 0.5153 MB / 440.8 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004172/0.1503, allocations: 199.1 kB / 440.9 MB, free: 14.53 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006587/0.151, allocations: 363 kB / 441.3 MB, free: 14.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001043/0.1511, allocations: 24 kB / 441.3 MB, free: 14.15 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005466/0.1517, allocations: 175.7 kB / 441.5 MB, free: 13.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002775/0.152, allocations: 219.5 kB / 441.7 MB, free: 13.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001494/0.1521, allocations: 113.5 kB / 441.8 MB, free: 13.65 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005534/0.1527, allocations: 0.491 MB / 442.3 MB, free: 13.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.246e-06/0.1527, allocations: 0 / 442.3 MB, free: 13.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1527, allocations: 0 / 442.3 MB, free: 13.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.1527, allocations: 0 / 442.3 MB, free: 13.16 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001406/0.1542, allocations: 0.688 MB / 443 MB, free: 12.42 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.1542, allocations: 12.03 kB / 443 MB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001107/0.1543, allocations: 86.5 kB / 443.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005514/0.1549, allocations: 91.28 kB / 443.2 MB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006388/0.1555, allocations: 390.1 kB / 443.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.298e-05/0.1556, allocations: 33 kB / 443.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001404/0.1557, allocations: 47.94 kB / 443.6 MB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001015/0.1568, allocations: 0.6726 MB / 444.3 MB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.796e-05/0.1568, allocations: 11.94 kB / 444.3 MB, free: 11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.969e-05/0.1569, allocations: 23.92 kB / 444.4 MB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001664/0.157, allocations: 48.95 kB / 444.4 MB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009354/0.158, allocations: 0.6674 MB / 445.1 MB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003422/0.1614, allocations: 2.524 MB / 447.6 MB, free: 7.609 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005749/0.162, allocations: 337.3 kB / 447.9 MB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003168/0.1623, allocations: 225.7 kB / 448.1 MB, free: 7.035 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.391e-05/0.1624, allocations: 4 kB / 448.1 MB, free: 7.031 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.309e-05/0.1624, allocations: 42.55 kB / 448.2 MB, free: 6.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=42): time 2.204e-06/0.1625, allocations: 0 / 448.2 MB, free: 6.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=43): time 0.002191/0.1647, allocations: 1.356 MB / 449.5 MB, free: 5.566 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.022e-05/0.1647, allocations: 85.09 kB / 449.6 MB, free: 5.465 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003189/0.1651, allocations: 304.3 kB / 449.9 MB, free: 5.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.735e-05/0.1651, allocations: 29.7 kB / 450 MB, free: 5.125 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001601/0.1653, allocations: 255.5 kB / 450.2 MB, free: 4.867 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.1654, allocations: 153.8 kB / 450.4 MB, free: 4.715 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.437e-05/0.1654, allocations: 12 kB / 450.4 MB, free: 4.703 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.1656, allocations: 342.8 kB / 450.7 MB, free: 4.359 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002834/0.1659, allocations: 201 kB / 450.9 MB, free: 4.164 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004016/0.1663, allocations: 361.2 kB / 451.2 MB, free: 3.742 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003623/0.1666, allocations: 261.3 kB / 451.5 MB, free: 3.488 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.1666, allocations: 4 kB / 451.5 MB, free: 3.484 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009125/0.1676, allocations: 0.6306 MB / 452.1 MB, free: 2.848 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.1676, allocations: 12.09 kB / 452.2 MB, free: 2.836 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/0.1676, allocations: 11.98 kB / 452.2 MB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.1676, allocations: 8 kB / 452.2 MB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003999/0.168, allocations: 111.8 kB / 452.3 MB, free: 2.707 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.603e-05/0.1681, allocations: 8 kB / 452.3 MB, free: 2.699 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002046/0.1683, allocations: 27.98 kB / 452.3 MB, free: 2.672 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.63e-05/0.1683, allocations: 23.98 kB / 452.3 MB, free: 2.648 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 55 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002436/0.1686, allocations: 217.6 kB / 452.5 MB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.194e-05/0.1687, allocations: 31.62 kB / 452.6 MB, free: 2.395 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007835/0.1695, allocations: 0.4935 MB / 453.1 MB, free: 1.895 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-05/0.1695, allocations: 8 kB / 453.1 MB, free: 1.887 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.1695, allocations: 3.953 kB / 453.1 MB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.387e-06/0.1695, allocations: 11.97 kB / 453.1 MB, free: 1.871 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001648/0.1712, allocations: 1.085 MB / 454.2 MB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.1712, allocations: 4 kB / 454.2 MB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003354/0.1716, allocations: 71.89 kB / 454.3 MB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.223e-06/0.1716, allocations: 11.89 kB / 454.3 MB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.998e-05/0.1716, allocations: 8 kB / 454.3 MB, free: 0.6289 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.1716, allocations: 3.938 kB / 454.3 MB, free: 0.625 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.1716, allocations: 11.92 kB / 454.3 MB, free: 0.6133 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2717/0.4434, allocations: 0.8101 MB / 455.1 MB, free: 51.44 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001483/0.4436, allocations: 110.9 kB / 455.2 MB, free: 51.35 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.384e-05/0.4436, allocations: 14.72 kB / 455.2 MB, free: 51.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002637/0.4439, allocations: 17.52 kB / 455.2 MB, free: 51.35 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.713e-05/0.444, allocations: 19.94 kB / 455.3 MB, free: 51.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.729e-05/0.444, allocations: 13.97 kB / 455.3 MB, free: 51.35 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002277/0.4443, allocations: 213.4 kB / 455.5 MB, free: 51.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4443, allocations: 0 / 455.5 MB, free: 51.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006128/0.4449, allocations: 112.2 kB / 455.6 MB, free: 51.27 MB / 382.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 (33): * Single equations (assignments): 30 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001266/0.4462, allocations: 1.368 MB / 457 MB, free: 50.58 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006825/0.4469, allocations: 493.1 kB / 457.4 MB, free: 50.58 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.4469, allocations: 2.188 kB / 457.4 MB, free: 50.58 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002588/0.4471, allocations: 228.8 kB / 457.7 MB, free: 50.58 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000515/0.4477, allocations: 72.2 kB / 457.7 MB, free: 50.58 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003623/0.4513, allocations: 2.972 MB / 460.7 MB, free: 49.53 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003724/0.4517, allocations: 0.8698 MB / 461.6 MB, free: 48.83 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003291/0.452, allocations: 124.8 kB / 461.7 MB, free: 48.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001975/0.4522, allocations: 147 kB / 461.8 MB, free: 48.81 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4522, allocations: 1.422 kB / 461.8 MB, free: 48.81 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01861/0.4708, allocations: 7.371 MB / 469.2 MB, free: 48.23 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001852/0.4711, allocations: 191 kB / 469.4 MB, free: 47.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.858/2.329, allocations: 0 / 469.4 MB, free: 47.99 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1) Environment - environmentSimulation: