Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001515/0.001519, allocations: 184 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.015/2.015, allocations: 205.4 MB / 221.9 MB, free: 13.8 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001139/0.001139, allocations: 98.84 kB / 270.2 MB, free: 13.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2754/0.2754, allocations: 38.07 MB / 356.6 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000626/0.0006263, allocations: 16 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1196, allocations: 56.34 MB / 479.1 MB, free: 1.93 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.00733/0.127, allocations: 4.299 MB / 483.4 MB, free: 13.61 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003974/0.1311, allocations: 1.568 MB / 485 MB, free: 12.03 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004236/0.1315, allocations: 23.88 kB / 485 MB, free: 12.01 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002889/0.1318, allocations: 75.5 kB / 485.1 MB, free: 11.93 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009256/0.1328, allocations: 207.4 kB / 485.3 MB, free: 11.73 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001093/0.1339, allocations: 239.4 kB / 485.5 MB, free: 11.5 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007122/0.1346, allocations: 287.8 kB / 485.8 MB, free: 11.21 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001287/0.1359, allocations: 0.5036 MB / 486.3 MB, free: 10.69 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005045/0.1365, allocations: 179.4 kB / 486.5 MB, free: 10.51 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005021/0.137, allocations: 203.4 kB / 486.7 MB, free: 10.31 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.733e-05/0.1371, allocations: 16 kB / 486.7 MB, free: 10.3 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003705/0.1375, allocations: 91.8 kB / 486.8 MB, free: 10.21 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003147/0.1378, allocations: 183.6 kB / 487 MB, free: 10.03 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001595/0.138, allocations: 105.5 kB / 487.1 MB, free: 9.918 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007272/0.1387, allocations: 427 kB / 487.5 MB, free: 9.5 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.1387, allocations: 0 / 487.5 MB, free: 9.5 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1387, allocations: 0 / 487.5 MB, free: 9.5 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.879e-06/0.1388, allocations: 0 / 487.5 MB, free: 9.5 MB / 330.7 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.00164/0.1404, allocations: 0.6607 MB / 488.2 MB, free: 8.789 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.831e-05/0.1405, allocations: 16.02 kB / 488.2 MB, free: 8.773 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000141/0.1406, allocations: 82.53 kB / 488.3 MB, free: 8.684 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008237/0.1415, allocations: 87.38 kB / 488.3 MB, free: 8.598 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009483/0.1424, allocations: 378.1 kB / 488.7 MB, free: 8.188 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.365e-05/0.1425, allocations: 37 kB / 488.7 MB, free: 8.152 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001782/0.1427, allocations: 47.89 kB / 488.8 MB, free: 8.105 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001369/0.1441, allocations: 0.617 MB / 489.4 MB, free: 7.418 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.923e-05/0.1441, allocations: 0 / 489.4 MB, free: 7.418 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.856e-05/0.1442, allocations: 20 kB / 489.4 MB, free: 7.398 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000186/0.1444, allocations: 24.98 kB / 489.5 MB, free: 7.375 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001299/0.1457, allocations: 483.4 kB / 489.9 MB, free: 6.902 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005084/0.1508, allocations: 2.876 MB / 492.8 MB, free: 3.875 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006144/0.1515, allocations: 233 kB / 493 MB, free: 3.629 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.702e-05/0.1515, allocations: 8.016 kB / 493 MB, free: 3.621 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.85e-05/0.1516, allocations: 42.55 kB / 493.1 MB, free: 3.57 MB / 330.7 MB Notification: Performance of pre-optimization done (n=27): time 3.026e-06/0.1516, allocations: 0 / 493.1 MB, free: 3.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=28): time 0.002487/0.1541, allocations: 0.9498 MB / 494 MB, free: 2.566 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.209e-05/0.1542, allocations: 81.11 kB / 494.1 MB, free: 2.469 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000551/0.1548, allocations: 320.4 kB / 494.4 MB, free: 2.145 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.735e-05/0.1548, allocations: 33.7 kB / 494.5 MB, free: 2.105 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002599/0.1551, allocations: 329.7 kB / 494.8 MB, free: 1.781 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.1552, allocations: 102.6 kB / 494.9 MB, free: 1.68 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.999e-05/0.1553, allocations: 11.94 kB / 494.9 MB, free: 1.668 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.1555, allocations: 330.8 kB / 495.2 MB, free: 1.336 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003813/0.1559, allocations: 145.1 kB / 495.4 MB, free: 1.195 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005586/0.1564, allocations: 335.2 kB / 495.7 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005213/0.157, allocations: 203.9 kB / 495.9 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.157, allocations: 0 / 495.9 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001275/0.1583, allocations: 0.5092 MB / 496.4 MB, free: 64 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.922e-05/0.1583, allocations: 8 kB / 496.4 MB, free: 56 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.69e-05/0.1583, allocations: 11.94 kB / 496.4 MB, free: 44 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.911e-05/0.1584, allocations: 8 kB / 496.4 MB, free: 36 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008414/0.1592, allocations: 127.7 kB / 496.5 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.208e-05/0.1593, allocations: 8 kB / 496.6 MB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004378/0.1597, allocations: 31.97 kB / 496.6 MB, free: 15.87 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-05/0.1598, allocations: 20 kB / 496.6 MB, free: 15.85 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003785/0.1602, allocations: 213.7 kB / 496.8 MB, free: 15.63 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.166e-05/0.1603, allocations: 35.58 kB / 496.8 MB, free: 15.6 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001005/0.1613, allocations: 361.5 kB / 497.2 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.1613, allocations: 7.984 kB / 497.2 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.1613, allocations: 0 / 497.2 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/0.1614, allocations: 3.984 kB / 497.2 MB, free: 15.22 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002317/0.1637, allocations: 0.8798 MB / 498.1 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.1637, allocations: 0 / 498.1 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00064/0.1644, allocations: 67.89 kB / 498.2 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.088e-05/0.1644, allocations: 4 kB / 498.2 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.848e-05/0.1645, allocations: 8 kB / 498.2 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.311e-05/0.1645, allocations: 4 kB / 498.2 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.1645, allocations: 4 kB / 498.2 MB, free: 14.19 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001327/0.1658, allocations: 0.6229 MB / 498.8 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001361/0.166, allocations: 108.6 kB / 498.9 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.262e-05/0.1661, allocations: 11.95 kB / 498.9 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003157/0.1664, allocations: 11.98 kB / 498.9 MB, free: 13.37 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.826e-05/0.1665, allocations: 19.97 kB / 498.9 MB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.185e-05/0.1665, allocations: 8 kB / 499 MB, free: 13.34 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003561/0.1669, allocations: 219 kB / 499.2 MB, free: 13.12 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1669, allocations: 0 / 499.2 MB, free: 13.12 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006755/0.1676, allocations: 92 kB / 499.3 MB, free: 13.04 MB / 346.7 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 (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.001705/0.1693, allocations: 1.443 MB / 0.489 GB, free: 11.54 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009483/0.1703, allocations: 349.3 kB / 0.4893 GB, free: 11.2 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.1703, allocations: 4 kB / 0.4893 GB, free: 11.2 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003543/0.1707, allocations: 147.8 kB / 0.4894 GB, free: 11.05 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000615/0.1713, allocations: 68.84 kB / 0.4895 GB, free: 10.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007568/0.1789, allocations: 7.033 MB / 0.4964 GB, free: 3.762 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006438/0.1796, allocations: 0.878 MB / 0.4972 GB, free: 2.859 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003607/0.18, allocations: 147.4 kB / 0.4974 GB, free: 2.715 MB / 346.7 MB Notification: Performance of SimCode: time 9.82e-07/0.18, allocations: 0 / 0.4974 GB, free: 2.715 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.542/2.722, allocations: 6.8 MB / 0.504 GB, free: 11.9 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceInertial_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1)