Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Test.PMeterTest.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.Generic.Test.PMeterTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Test_PMeterTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.PMeterTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Test_PMeterTest",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.0009543/0.0009542, allocations: 172.2 kB / 16.07 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.284/1.284, allocations: 205.4 MB / 222.2 MB, free: 9.02 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.0007965/0.0007964, allocations: 88.25 kB / 270.6 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1724/0.1724, allocations: 38.07 MB / 356.9 MB, free: 1.738 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003309/0.0003309, allocations: 19.98 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2505, allocations: 56.33 MB / 479.7 MB, free: 9.215 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.003416/0.2539, allocations: 3.205 MB / 482.9 MB, free: 7.191 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001805/0.2558, allocations: 1.507 MB / 484.5 MB, free: 6.125 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001416/0.2559, allocations: 10.97 kB / 484.5 MB, free: 6.121 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00016/0.2561, allocations: 37.91 kB / 484.5 MB, free: 6.102 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006388/0.2568, allocations: 264.2 kB / 484.8 MB, free: 5.977 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003189/0.2571, allocations: 118.9 kB / 484.9 MB, free: 5.922 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004462/0.2575, allocations: 439.7 kB / 485.3 MB, free: 5.773 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006009/0.2581, allocations: 324.7 kB / 485.6 MB, free: 5.559 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002308/0.2584, allocations: 122.6 kB / 485.7 MB, free: 5.508 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002235/0.2586, allocations: 139.8 kB / 485.9 MB, free: 5.461 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.271e-05/0.2587, allocations: 7.125 kB / 485.9 MB, free: 5.461 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006789/0.2593, allocations: 402.8 kB / 486.3 MB, free: 5.316 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001213/0.2595, allocations: 102.2 kB / 486.4 MB, free: 5.285 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001121/0.2596, allocations: 113.8 kB / 486.5 MB, free: 5.207 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003873/0.26, allocations: 262 kB / 486.7 MB, free: 5.148 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.26, allocations: 1.406 kB / 486.7 MB, free: 5.148 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.26, allocations: 0 / 486.7 MB, free: 5.148 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.26, allocations: 0 / 486.7 MB, free: 5.148 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0005262/0.2605, allocations: 484.8 kB / 487.2 MB, free: 4.707 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.2606, allocations: 7.609 kB / 487.2 MB, free: 4.707 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.257e-05/0.2607, allocations: 57.5 kB / 487.3 MB, free: 4.656 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008483/0.2615, allocations: 110.6 kB / 487.4 MB, free: 4.633 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002837/0.2618, allocations: 257.3 kB / 487.6 MB, free: 4.395 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.958e-05/0.2618, allocations: 20.34 kB / 487.7 MB, free: 4.383 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.106e-05/0.2619, allocations: 15.16 kB / 487.7 MB, free: 4.379 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000496/0.2624, allocations: 329.5 kB / 488 MB, free: 4.203 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.2624, allocations: 0 / 488 MB, free: 4.203 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.581e-05/0.2624, allocations: 6.562 kB / 488 MB, free: 4.199 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.488e-05/0.2625, allocations: 17.94 kB / 488 MB, free: 4.195 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004601/0.2629, allocations: 302.1 kB / 488.3 MB, free: 4.105 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001464/0.2644, allocations: 1.293 MB / 489.6 MB, free: 3.109 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002705/0.2647, allocations: 194.6 kB / 489.8 MB, free: 2.945 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.997e-05/0.2648, allocations: 56.5 kB / 489.9 MB, free: 2.906 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.2648, allocations: 1.406 kB / 489.9 MB, free: 2.906 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.2648, allocations: 32.77 kB / 489.9 MB, free: 2.867 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 1.553e-06/0.2648, allocations: 0 / 489.9 MB, free: 2.867 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002813/0.2651, allocations: 136.6 kB / 490 MB, free: 2.797 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.917e-05/0.2652, allocations: 83.33 kB / 490.1 MB, free: 2.699 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001895/0.2654, allocations: 209.6 kB / 490.3 MB, free: 2.562 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.157e-05/0.2654, allocations: 34.83 kB / 490.3 MB, free: 2.523 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.542e-05/0.2655, allocations: 169.4 kB / 490.5 MB, free: 2.375 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.732e-05/0.2655, allocations: 36.59 kB / 490.5 MB, free: 2.348 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.965e-06/0.2655, allocations: 5.531 kB / 490.5 MB, free: 2.344 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.688e-05/0.2656, allocations: 328.2 kB / 490.9 MB, free: 2.023 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.469e-05/0.2657, allocations: 39.2 kB / 490.9 MB, free: 2.012 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001099/0.2658, allocations: 134.7 kB / 491 MB, free: 1.871 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002591/0.2661, allocations: 201.2 kB / 491.2 MB, free: 1.691 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.2661, allocations: 0 / 491.2 MB, free: 1.691 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003795/0.2665, allocations: 203.2 kB / 491.4 MB, free: 1.594 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.2665, allocations: 9.531 kB / 491.4 MB, free: 1.594 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.635e-06/0.2665, allocations: 3.5 kB / 491.4 MB, free: 1.594 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.2665, allocations: 5.5 kB / 491.5 MB, free: 1.594 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001672/0.2667, allocations: 45.88 kB / 491.5 MB, free: 1.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.357e-05/0.2667, allocations: 6.016 kB / 491.5 MB, free: 1.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001263/0.2669, allocations: 23 kB / 491.5 MB, free: 1.574 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.8e-05/0.2669, allocations: 17.98 kB / 491.5 MB, free: 1.566 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (23): * Single equations (assignments): 23 * 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.0001202/0.267, allocations: 156 kB / 491.7 MB, free: 1.43 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.928e-05/0.2671, allocations: 22.94 kB / 491.7 MB, free: 1.414 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002025/0.2673, allocations: 119.4 kB / 491.8 MB, free: 1.348 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.2673, allocations: 2.031 kB / 491.8 MB, free: 1.348 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.2673, allocations: 1.703 kB / 491.8 MB, free: 1.348 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.2673, allocations: 0.75 kB / 491.8 MB, free: 1.348 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006513/0.268, allocations: 0.5768 MB / 492.4 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.268, allocations: 2.75 kB / 492.4 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.016e-05/0.2681, allocations: 22.16 kB / 492.4 MB, free: 0.875 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.583e-06/0.2681, allocations: 8.375 kB / 492.4 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.2681, allocations: 6.938 kB / 492.5 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.292e-06/0.2681, allocations: 5.531 kB / 492.5 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.2681, allocations: 10.62 kB / 492.5 MB, free: 0.8594 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002105/0.2683, allocations: 281.4 kB / 492.7 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.572e-05/0.2684, allocations: 98.53 kB / 492.8 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.863e-05/0.2684, allocations: 8.906 kB / 492.8 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001082/0.2685, allocations: 8.875 kB / 492.9 MB, free: 500 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.171e-05/0.2686, allocations: 11.7 kB / 492.9 MB, free: 496 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.2686, allocations: 8.75 kB / 492.9 MB, free: 492 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001078/0.2687, allocations: 149.9 kB / 493 MB, free: 396 kB / 314.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2687, allocations: 1.312 kB / 493 MB, free: 396 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003367/0.269, allocations: 56.38 kB / 493.1 MB, free: 380 kB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 simulation (11): * Single equations (assignments): 10 * 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.0004512/0.2695, allocations: 0.8118 MB / 493.9 MB, free: 15.58 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002303/0.2697, allocations: 112.7 kB / 494 MB, free: 15.55 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2698, allocations: 192 / 494 MB, free: 15.55 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.699e-05/0.2698, allocations: 47.52 kB / 494 MB, free: 15.53 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004325/0.2703, allocations: 35.14 kB / 494.1 MB, free: 15.52 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001788/0.2721, allocations: 1.234 MB / 495.3 MB, free: 14.64 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003941/0.2725, allocations: 0.7522 MB / 496.1 MB, free: 13.94 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.2726, allocations: 68.22 kB / 496.1 MB, free: 13.89 MB / 330.7 MB Notification: Performance of SimCode: time 5.41e-07/0.2726, allocations: 3.938 kB / 496.1 MB, free: 13.89 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.716/2.989, allocations: 2.888 MB / 499 MB, free: 13.4 MB / 330.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Generic.Test.PMeterTest.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Generic.Test.PMeterTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Generic_Test_PMeterTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Generic_Test_PMeterTest.fmu > PowerSystems_cpp_PowerSystems.Examples.Generic.Test.PMeterTest.pipe 2>&1)