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.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.ReferenceInertial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial",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.001025/0.001025, allocations: 97.09 kB / 16.3 MB, free: 5.656 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.001247/0.001248, allocations: 183.6 kB / 17.2 MB, free: 5.59 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.769/1.769, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1931/0.1931, allocations: 38.04 MB / 309.7 MB, free: 6.145 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.000829/0.0008293, allocations: 19.98 kB / 376.6 MB, free: 3.117 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3511/0.3519, allocations: 56.32 MB / 432.9 MB, free: 18.84 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.004156/0.3562, allocations: 4.31 MB / 437.2 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002107/0.3583, allocations: 1.572 MB / 438.8 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002324/0.3586, allocations: 23.88 kB / 438.8 MB, free: 12.91 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002031/0.3588, allocations: 67.52 kB / 438.9 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005352/0.3593, allocations: 215.3 kB / 439.1 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005326/0.3599, allocations: 223.5 kB / 439.3 MB, free: 12.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002995/0.3602, allocations: 291.8 kB / 439.6 MB, free: 12.13 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007144/0.3609, allocations: 0.5114 MB / 440.1 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000233/0.3611, allocations: 171.4 kB / 440.3 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002737/0.3614, allocations: 199.4 kB / 440.5 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.339e-05/0.3615, allocations: 20 kB / 440.5 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001911/0.3617, allocations: 95.78 kB / 440.6 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001457/0.3618, allocations: 183.6 kB / 440.8 MB, free: 10.94 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.747e-05/0.3619, allocations: 101.5 kB / 440.9 MB, free: 10.83 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003314/0.3623, allocations: 431 kB / 441.3 MB, free: 10.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.3623, allocations: 0 / 441.3 MB, free: 10.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3623, allocations: 4 kB / 441.3 MB, free: 10.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.555e-06/0.3623, allocations: 0 / 441.3 MB, free: 10.41 MB / 318.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.0009699/0.3633, allocations: 0.6529 MB / 441.9 MB, free: 9.703 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.3633, allocations: 15.97 kB / 441.9 MB, free: 9.688 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.309e-05/0.3634, allocations: 90.52 kB / 442 MB, free: 9.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005171/0.3639, allocations: 83.38 kB / 442.1 MB, free: 9.508 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005245/0.3645, allocations: 382.1 kB / 442.5 MB, free: 9.094 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/0.3645, allocations: 32.98 kB / 442.5 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001195/0.3646, allocations: 40 kB / 442.6 MB, free: 9.023 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006764/0.3653, allocations: 0.6248 MB / 443.2 MB, free: 8.328 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.3653, allocations: 0 / 443.2 MB, free: 8.328 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.989e-05/0.3654, allocations: 19.94 kB / 443.2 MB, free: 8.309 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001048/0.3655, allocations: 32.98 kB / 443.2 MB, free: 8.277 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005875/0.3661, allocations: 471.5 kB / 443.7 MB, free: 7.816 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00241/0.3685, allocations: 2.888 MB / 446.6 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003064/0.3688, allocations: 228.9 kB / 446.8 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.076e-05/0.3689, allocations: 12 kB / 446.8 MB, free: 4.523 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/0.3689, allocations: 42.56 kB / 446.9 MB, free: 4.473 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 1.824e-06/0.3689, allocations: 0 / 446.9 MB, free: 4.473 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.001227/0.3701, allocations: 0.9536 MB / 447.8 MB, free: 3.465 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/0.3702, allocations: 77.11 kB / 447.9 MB, free: 3.371 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002367/0.3704, allocations: 320.4 kB / 448.2 MB, free: 3.047 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.009e-05/0.3705, allocations: 33.83 kB / 448.2 MB, free: 3.008 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.3706, allocations: 271.3 kB / 448.5 MB, free: 2.738 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.598e-05/0.3706, allocations: 106.5 kB / 448.6 MB, free: 2.633 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.701e-05/0.3707, allocations: 8 kB / 448.6 MB, free: 2.625 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.613e-05/0.3707, allocations: 342.8 kB / 448.9 MB, free: 2.281 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001702/0.3709, allocations: 141 kB / 449.1 MB, free: 2.145 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002408/0.3712, allocations: 339.2 kB / 449.4 MB, free: 1.727 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000241/0.3714, allocations: 203.9 kB / 449.6 MB, free: 1.527 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.3714, allocations: 0 / 449.6 MB, free: 1.527 MB / 318.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005835/0.372, allocations: 0.5201 MB / 450.1 MB, free: 1 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.372, allocations: 8 kB / 450.1 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.3721, allocations: 11.94 kB / 450.2 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.3721, allocations: 12.78 kB / 450.2 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003703/0.3725, allocations: 123.8 kB / 450.3 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.442e-05/0.3725, allocations: 12 kB / 450.3 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002364/0.3727, allocations: 27.91 kB / 450.3 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.005e-05/0.3728, allocations: 24 kB / 450.3 MB, free: 0.7852 MB / 318.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001785/0.3729, allocations: 213.5 kB / 450.6 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.72e-05/0.373, allocations: 35.58 kB / 450.6 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000479/0.3735, allocations: 353.5 kB / 450.9 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.3735, allocations: 8 kB / 450.9 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.3735, allocations: 0 / 450.9 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.3735, allocations: 11.98 kB / 451 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001352/0.3749, allocations: 0.8759 MB / 451.8 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.3749, allocations: 0 / 451.8 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003121/0.3752, allocations: 75.98 kB / 451.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.3752, allocations: 0 / 451.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.547e-05/0.3753, allocations: 8 kB / 451.9 MB, free: 15.13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-06/0.3753, allocations: 4 kB / 451.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/0.3753, allocations: 0 / 451.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007639/0.376, allocations: 0.6266 MB / 452.5 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.998e-05/0.3761, allocations: 108.8 kB / 452.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.143e-05/0.3762, allocations: 11.95 kB / 452.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001728/0.3764, allocations: 12.03 kB / 452.7 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.502e-05/0.3764, allocations: 23.97 kB / 452.7 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.3765, allocations: 8 kB / 452.7 MB, free: 14.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002298/0.3767, allocations: 219 kB / 452.9 MB, free: 14.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3767, allocations: 0 / 452.9 MB, free: 14.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004405/0.3772, allocations: 96 kB / 453 MB, free: 13.96 MB / 334.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 (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.001035/0.3782, allocations: 1.439 MB / 454.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005149/0.3787, allocations: 347.5 kB / 454.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3787, allocations: 1.812 kB / 454.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001906/0.3789, allocations: 147.8 kB / 454.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003961/0.3793, allocations: 69.67 kB / 455 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004713/0.3841, allocations: 6.995 MB / 462 MB, free: 4.738 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004599/0.3845, allocations: 0.8663 MB / 462.9 MB, free: 3.848 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003705/0.3849, allocations: 131.1 kB / 463 MB, free: 3.715 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001822/0.3851, allocations: 139.4 kB / 463.1 MB, free: 3.578 MB / 334.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3851, allocations: 0 / 463.1 MB, free: 3.578 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01817/0.4033, allocations: 6.628 MB / 469.8 MB, free: 13 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001688/0.4035, allocations: 184.2 kB / 469.9 MB, free: 12.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.789/2.193, allocations: 3.938 kB / 469.9 MB, free: 12.76 MB / 350.1 MB (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/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1) Environment - environmentSimulation: