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.0009664/0.0009664, allocations: 92.28 kB / 16.65 MB, free: 6.594 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.0009979/0.0009982, allocations: 181.8 kB / 17.56 MB, free: 6.203 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.571/1.571, allocations: 205.4 MB / 223.7 MB, free: 12.99 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.17/0.17, allocations: 38.05 MB / 310.1 MB, free: 5.902 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.000515/0.000515, allocations: 19.12 kB / 377.3 MB, free: 2.609 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2699/0.2704, allocations: 56.32 MB / 433.6 MB, free: 18.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.004778/0.2753, allocations: 4.687 MB / 438.3 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002097/0.2774, allocations: 1.641 MB / 439.9 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002152/0.2776, allocations: 23.88 kB / 439.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001921/0.2778, allocations: 59.55 kB / 440 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004332/0.2783, allocations: 203.1 kB / 440.2 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004703/0.2787, allocations: 219.6 kB / 440.4 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005193/0.2793, allocations: 0.8186 MB / 441.2 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006851/0.28, allocations: 0.5437 MB / 441.8 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002243/0.2802, allocations: 195 kB / 442 MB, free: 10.22 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003457/0.2805, allocations: 291 kB / 442.2 MB, free: 9.934 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.928e-05/0.2806, allocations: 16 kB / 442.3 MB, free: 9.918 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002341/0.2808, allocations: 147.7 kB / 442.4 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001781/0.281, allocations: 207.4 kB / 442.6 MB, free: 9.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001896/0.2812, allocations: 240.6 kB / 442.8 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004496/0.2817, allocations: 0.5294 MB / 443.4 MB, free: 8.797 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.2817, allocations: 0 / 443.4 MB, free: 8.797 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.456e-06/0.2817, allocations: 0 / 443.4 MB, free: 8.797 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.086e-06/0.2817, allocations: 3.938 kB / 443.4 MB, free: 8.793 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.001092/0.2828, allocations: 0.6609 MB / 444 MB, free: 8.082 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.2829, allocations: 8.031 kB / 444 MB, free: 8.074 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.358e-05/0.283, allocations: 82.7 kB / 444.1 MB, free: 7.984 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005274/0.2835, allocations: 80.33 kB / 444.2 MB, free: 7.906 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004795/0.284, allocations: 387.3 kB / 444.6 MB, free: 7.488 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.826e-05/0.284, allocations: 29.38 kB / 444.6 MB, free: 7.461 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/0.2842, allocations: 51.92 kB / 444.7 MB, free: 7.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007134/0.2849, allocations: 0.6209 MB / 445.3 MB, free: 6.719 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.979e-05/0.2849, allocations: 7.938 kB / 445.3 MB, free: 6.711 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.096e-05/0.285, allocations: 16 kB / 445.3 MB, free: 6.695 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001011/0.2851, allocations: 32.98 kB / 445.3 MB, free: 6.664 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005617/0.2856, allocations: 483.4 kB / 445.8 MB, free: 6.191 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002148/0.2878, allocations: 2.891 MB / 448.7 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003046/0.2881, allocations: 236.9 kB / 448.9 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.2883, allocations: 145.7 kB / 449.1 MB, free: 2.754 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.486e-05/0.2883, allocations: 7.984 kB / 449.1 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.429e-05/0.2884, allocations: 38.56 kB / 449.1 MB, free: 2.699 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 1.743e-06/0.2884, allocations: 3.938 kB / 449.1 MB, free: 2.695 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.001312/0.2897, allocations: 0.97 MB / 450.1 MB, free: 1.672 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.147e-05/0.2897, allocations: 81.11 kB / 450.2 MB, free: 1.574 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002331/0.29, allocations: 320.4 kB / 450.5 MB, free: 1.254 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.29, allocations: 33.64 kB / 450.5 MB, free: 1.215 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.2901, allocations: 271.3 kB / 450.8 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.451e-05/0.2902, allocations: 102.6 kB / 450.9 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.799e-05/0.2902, allocations: 45.69 kB / 450.9 MB, free: 0.793 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.415e-05/0.2903, allocations: 346.8 kB / 451.3 MB, free: 456 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001797/0.2905, allocations: 149.1 kB / 451.4 MB, free: 308 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003116/0.2908, allocations: 347.2 kB / 451.8 MB, free: 15.87 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006458/0.2915, allocations: 0.5168 MB / 452.3 MB, free: 15.26 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.2915, allocations: 4 kB / 452.3 MB, free: 15.26 MB / 334.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0007691/0.2923, allocations: 0.528 MB / 452.8 MB, free: 14.72 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.2923, allocations: 11.94 kB / 452.8 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.2923, allocations: 8 kB / 452.8 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.326e-05/0.2923, allocations: 8.812 kB / 452.8 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003903/0.2927, allocations: 115.8 kB / 452.9 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.867e-05/0.2928, allocations: 19.92 kB / 453 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002217/0.293, allocations: 27.92 kB / 453 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.77e-05/0.293, allocations: 27.98 kB / 453 MB, free: 14.51 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.0002216/0.2933, allocations: 217.5 kB / 453.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.039e-05/0.2933, allocations: 31.62 kB / 453.3 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006114/0.294, allocations: 357.7 kB / 453.6 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.294, allocations: 4 kB / 453.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.294, allocations: 0 / 453.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.294, allocations: 0 / 453.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001353/0.2954, allocations: 0.895 MB / 454.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2954, allocations: 0 / 454.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003042/0.2957, allocations: 72 kB / 454.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.2957, allocations: 0 / 454.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.797e-05/0.2957, allocations: 15.92 kB / 454.6 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.2957, allocations: 4 kB / 454.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2957, allocations: 0 / 454.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007846/0.2965, allocations: 0.5887 MB / 455.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.608e-05/0.2966, allocations: 100.7 kB / 455.3 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.772e-05/0.2967, allocations: 11.94 kB / 455.3 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001683/0.2968, allocations: 15.92 kB / 455.3 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.695e-05/0.2969, allocations: 23.97 kB / 455.3 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.766e-05/0.2969, allocations: 4 kB / 455.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000215/0.2972, allocations: 223.1 kB / 455.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2972, allocations: 4 kB / 455.6 MB, free: 11.83 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004171/0.2976, allocations: 88 kB / 455.6 MB, free: 11.75 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.000958/0.2985, allocations: 1.134 MB / 456.8 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005122/0.2991, allocations: 360.8 kB / 457.1 MB, free: 10.22 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2991, allocations: 0.5 kB / 457.1 MB, free: 10.22 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002298/0.2993, allocations: 151.8 kB / 457.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005088/0.2998, allocations: 69.5 kB / 457.3 MB, free: 10.01 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004803/0.3046, allocations: 4.233 MB / 461.6 MB, free: 5.492 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004831/0.3051, allocations: 0.8504 MB / 462.4 MB, free: 4.617 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003209/0.3055, allocations: 131.1 kB / 462.6 MB, free: 4.492 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002408/0.3057, allocations: 139.4 kB / 462.7 MB, free: 4.355 MB / 334.1 MB Notification: Performance of SimCode: time 6.12e-07/0.3057, allocations: 4 kB / 462.7 MB, free: 4.352 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01847/0.3242, allocations: 6.6 MB / 469.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002378/0.3245, allocations: 194.3 kB / 469.5 MB, free: 13.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.922/2.246, allocations: 4 kB / 469.5 MB, free: 13.55 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)