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.001238/0.001238, allocations: 108 kB / 16.51 MB, free: 6.699 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.001323/0.001323, allocations: 194.4 kB / 17.42 MB, free: 6.09 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.325/1.325, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1701/0.1701, allocations: 37.99 MB / 308.6 MB, free: 6.242 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.002345/0.002345, allocations: 67.91 kB / 374.7 MB, free: 4.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2568, allocations: 55.24 MB / 430 MB, free: 19.76 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.004563/0.2614, allocations: 5.072 MB / 435 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002131/0.2636, allocations: 1.668 MB / 436.7 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002567/0.2639, allocations: 27.81 kB / 436.7 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009856/0.2649, allocations: 350.8 kB / 437.1 MB, free: 12.62 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004277/0.2653, allocations: 215.1 kB / 437.3 MB, free: 12.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005489/0.2659, allocations: 211.6 kB / 437.5 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005213/0.2664, allocations: 0.8186 MB / 438.3 MB, free: 11.38 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004095/0.2668, allocations: 276.6 kB / 438.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000229/0.2671, allocations: 207.1 kB / 438.8 MB, free: 10.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003792/0.2674, allocations: 319 kB / 439.1 MB, free: 10.6 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.917e-05/0.2675, allocations: 28 kB / 439.1 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000252/0.2678, allocations: 135.8 kB / 439.2 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001518/0.2679, allocations: 211.5 kB / 439.5 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.2681, allocations: 226.8 kB / 439.7 MB, free: 10.01 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003884/0.2685, allocations: 0.5529 MB / 440.2 MB, free: 9.453 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2685, allocations: 0 / 440.2 MB, free: 9.453 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.2685, allocations: 0 / 440.2 MB, free: 9.453 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.2685, allocations: 0 / 440.2 MB, free: 9.453 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.001019/0.2695, allocations: 0.7388 MB / 441 MB, free: 8.664 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.2696, allocations: 8.031 kB / 441 MB, free: 8.656 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.427e-05/0.2697, allocations: 86.7 kB / 441.1 MB, free: 8.562 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004761/0.2702, allocations: 84.31 kB / 441.1 MB, free: 8.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000467/0.2706, allocations: 383.3 kB / 441.5 MB, free: 8.066 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.323e-05/0.2707, allocations: 29.38 kB / 441.5 MB, free: 8.039 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.2708, allocations: 55.86 kB / 441.6 MB, free: 7.984 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000686/0.2715, allocations: 0.6209 MB / 442.2 MB, free: 7.293 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.885e-05/0.2715, allocations: 0 / 442.2 MB, free: 7.293 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.094e-05/0.2715, allocations: 20 kB / 442.2 MB, free: 7.273 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001085/0.2717, allocations: 28.98 kB / 442.3 MB, free: 7.246 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005564/0.2722, allocations: 487.4 kB / 442.7 MB, free: 6.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002114/0.2743, allocations: 2.891 MB / 445.6 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002755/0.2746, allocations: 236.9 kB / 445.9 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001532/0.2748, allocations: 141.7 kB / 446 MB, free: 3.336 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.326e-05/0.2748, allocations: 11.97 kB / 446 MB, free: 3.324 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.738e-05/0.2749, allocations: 34.56 kB / 446.1 MB, free: 3.281 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 1.393e-06/0.2749, allocations: 0 / 446.1 MB, free: 3.281 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.001177/0.2761, allocations: 0.9713 MB / 447 MB, free: 2.258 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4e-05/0.2761, allocations: 81.11 kB / 447.1 MB, free: 2.16 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002202/0.2763, allocations: 328.3 kB / 447.4 MB, free: 1.832 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.809e-05/0.2764, allocations: 33.7 kB / 447.5 MB, free: 1.793 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.2765, allocations: 267.3 kB / 447.7 MB, free: 1.527 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.424e-05/0.2765, allocations: 106.6 kB / 447.8 MB, free: 1.422 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.465e-05/0.2766, allocations: 90.16 kB / 447.9 MB, free: 1.328 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.538e-05/0.2767, allocations: 350.7 kB / 448.3 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001669/0.2769, allocations: 145.1 kB / 448.4 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002245/0.2771, allocations: 351.2 kB / 448.7 MB, free: 412 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004923/0.2776, allocations: 0.513 MB / 449.3 MB, free: 15.8 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.2776, allocations: 7.938 kB / 449.3 MB, free: 15.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0006766/0.2783, allocations: 0.5238 MB / 449.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.2783, allocations: 8 kB / 449.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.2783, allocations: 8.859 kB / 449.8 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.2784, allocations: 12 kB / 449.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003719/0.2787, allocations: 123.8 kB / 449.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.509e-05/0.2788, allocations: 12 kB / 449.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000217/0.279, allocations: 31.91 kB / 450 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.249e-05/0.279, allocations: 27.94 kB / 450 MB, free: 15.04 MB / 334.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.00019/0.2792, allocations: 213.5 kB / 450.2 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.562e-05/0.2793, allocations: 31.62 kB / 450.2 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005275/0.2798, allocations: 358.2 kB / 450.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.2798, allocations: 4 kB / 450.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.2798, allocations: 0 / 450.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.2799, allocations: 3.984 kB / 450.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001203/0.2811, allocations: 0.8952 MB / 451.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2811, allocations: 96 / 451.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002951/0.2814, allocations: 71.89 kB / 451.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-06/0.2814, allocations: 4 kB / 451.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.474e-05/0.2814, allocations: 11.94 kB / 451.6 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.2814, allocations: 4 kB / 451.6 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.2814, allocations: 0 / 451.6 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006633/0.2821, allocations: 0.5847 MB / 452.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.693e-05/0.2822, allocations: 104.7 kB / 452.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.083e-05/0.2822, allocations: 15.97 kB / 452.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001717/0.2824, allocations: 8 kB / 452.3 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.545e-05/0.2825, allocations: 19.97 kB / 452.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.877e-05/0.2825, allocations: 8 kB / 452.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001794/0.2827, allocations: 223 kB / 452.5 MB, free: 12.37 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2827, allocations: 4 kB / 452.5 MB, free: 12.36 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004058/0.2831, allocations: 92 kB / 452.6 MB, free: 12.27 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 (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.000861/0.284, allocations: 1.134 MB / 453.8 MB, free: 11.1 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004975/0.2845, allocations: 356.8 kB / 454.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2845, allocations: 0.5625 kB / 454.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001854/0.2847, allocations: 155.8 kB / 454.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004737/0.2852, allocations: 61.58 kB / 454.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004114/0.2893, allocations: 4.155 MB / 458.5 MB, free: 6.109 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000362/0.2897, allocations: 0.8542 MB / 459.3 MB, free: 5.23 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003252/0.29, allocations: 131.1 kB / 459.5 MB, free: 5.102 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000181/0.2902, allocations: 143.4 kB / 459.6 MB, free: 4.961 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2902, allocations: 0 / 459.6 MB, free: 4.961 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01651/0.3067, allocations: 6.702 MB / 466.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002061/0.3069, allocations: 203 kB / 466.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.777/2.084, allocations: 0 / 466.5 MB, free: 14.02 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/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)