Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.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.Frequency,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_Frequency",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.001028/0.001028, allocations: 174.8 kB / 16.07 MB, free: 5.719 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.22/1.22, allocations: 205.4 MB / 222.2 MB, free: 9.027 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.0006959/0.0006959, allocations: 92.86 kB / 270.6 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1616/0.1616, allocations: 38.07 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003336/0.0003337, allocations: 12 kB / 423.4 MB, free: 37.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.2501, allocations: 56.32 MB / 479.7 MB, free: 9.219 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.0059/0.256, allocations: 6.147 MB / 485.9 MB, free: 5.074 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002849/0.2589, allocations: 1.542 MB / 487.4 MB, free: 3.965 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006611/0.2596, allocations: 44.97 kB / 487.5 MB, free: 3.945 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003231/0.26, allocations: 102.7 kB / 487.6 MB, free: 3.895 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001104/0.2611, allocations: 385.4 kB / 487.9 MB, free: 3.672 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005866/0.2617, allocations: 206.1 kB / 488.1 MB, free: 3.57 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008492/0.2625, allocations: 0.7758 MB / 488.9 MB, free: 3.262 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000278/0.2628, allocations: 149.7 kB / 489.1 MB, free: 3.191 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004353/0.2633, allocations: 255.4 kB / 489.3 MB, free: 3.086 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005814/0.2639, allocations: 323.5 kB / 489.6 MB, free: 2.973 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.143e-05/0.2639, allocations: 18.84 kB / 489.6 MB, free: 2.973 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.777e-05/0.264, allocations: 22.28 kB / 489.7 MB, free: 2.969 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001616/0.2642, allocations: 142.6 kB / 489.8 MB, free: 2.922 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002208/0.2644, allocations: 238.6 kB / 490 MB, free: 2.777 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004255/0.2648, allocations: 360.8 kB / 490.4 MB, free: 2.684 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.533e-06/0.2648, allocations: 2.125 kB / 490.4 MB, free: 2.684 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2648, allocations: 0 / 490.4 MB, free: 2.684 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.2649, allocations: 4 kB / 490.4 MB, free: 2.68 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001123/0.266, allocations: 0.7035 MB / 491.1 MB, free: 2.148 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.266, allocations: 12.72 kB / 491.1 MB, free: 2.145 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.806e-05/0.2661, allocations: 77.86 kB / 491.2 MB, free: 2.082 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.715e-05/0.2662, allocations: 52.81 kB / 491.2 MB, free: 2.055 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005461/0.2668, allocations: 424.8 kB / 491.7 MB, free: 1.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.471e-05/0.2668, allocations: 28.44 kB / 491.7 MB, free: 1.738 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.007e-05/0.2669, allocations: 40.08 kB / 491.7 MB, free: 1.723 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006449/0.2675, allocations: 460.8 kB / 492.2 MB, free: 1.469 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.2675, allocations: 0 / 492.2 MB, free: 1.469 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.217e-05/0.2676, allocations: 16.12 kB / 492.2 MB, free: 1.457 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.2676, allocations: 10.19 kB / 492.2 MB, free: 1.457 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004645/0.2681, allocations: 305.6 kB / 492.5 MB, free: 1.359 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001745/0.2698, allocations: 1.772 MB / 494.3 MB, free: 15.96 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002067/0.27, allocations: 143.7 kB / 494.4 MB, free: 15.85 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.93e-05/0.2701, allocations: 57.75 kB / 494.5 MB, free: 15.81 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.897e-05/0.2702, allocations: 10.47 kB / 494.5 MB, free: 15.8 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.296e-05/0.2702, allocations: 36.78 kB / 494.5 MB, free: 15.76 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.803e-06/0.2702, allocations: 0 / 494.5 MB, free: 15.76 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009253/0.2711, allocations: 0.6027 MB / 495.1 MB, free: 15.27 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.46e-05/0.2712, allocations: 106 kB / 495.2 MB, free: 15.15 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00038/0.2716, allocations: 370.3 kB / 495.6 MB, free: 14.96 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.2716, allocations: 31.86 kB / 495.6 MB, free: 14.92 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001679/0.2718, allocations: 274.9 kB / 495.9 MB, free: 14.7 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.823e-05/0.2719, allocations: 59.77 kB / 495.9 MB, free: 14.65 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.077e-05/0.2719, allocations: 5.281 kB / 495.9 MB, free: 14.65 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.272, allocations: 352.1 kB / 496.3 MB, free: 14.32 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.62e-05/0.2721, allocations: 43.16 kB / 496.3 MB, free: 14.3 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001723/0.2723, allocations: 200.5 kB / 496.5 MB, free: 14.09 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002838/0.2726, allocations: 261.4 kB / 496.8 MB, free: 13.84 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2726, allocations: 6.219 kB / 496.8 MB, free: 13.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004071/0.273, allocations: 284 kB / 497.1 MB, free: 13.7 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.273, allocations: 11.09 kB / 497.1 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.956e-06/0.273, allocations: 4.859 kB / 497.1 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.2731, allocations: 7.969 kB / 497.1 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002627/0.2733, allocations: 73.41 kB / 497.2 MB, free: 13.69 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.597e-05/0.2733, allocations: 12.58 kB / 497.2 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001603/0.2735, allocations: 13.41 kB / 497.2 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.352e-05/0.2735, allocations: 18.44 kB / 497.2 MB, free: 13.67 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * 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.0002007/0.2737, allocations: 186.4 kB / 497.4 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.744e-05/0.2738, allocations: 37.16 kB / 497.4 MB, free: 13.5 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002831/0.2741, allocations: 167.5 kB / 497.6 MB, free: 13.41 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.2741, allocations: 2.844 kB / 497.6 MB, free: 13.41 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.2741, allocations: 2.312 kB / 497.6 MB, free: 13.41 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.2741, allocations: 1.734 kB / 497.6 MB, free: 13.41 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006954/0.2748, allocations: 0.534 MB / 498.1 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.471e-06/0.2749, allocations: 5.562 kB / 498.1 MB, free: 12.99 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001777/0.275, allocations: 38.55 kB / 498.2 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/0.2751, allocations: 2.906 kB / 498.2 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.539e-05/0.2751, allocations: 6.062 kB / 498.2 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.2751, allocations: 2.734 kB / 498.2 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/0.2751, allocations: 5.562 kB / 498.2 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004118/0.2755, allocations: 399.2 kB / 498.6 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.901e-05/0.2756, allocations: 112.5 kB / 498.7 MB, free: 12.56 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.261e-05/0.2757, allocations: 3.781 kB / 498.7 MB, free: 12.56 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001537/0.2758, allocations: 12.84 kB / 498.7 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.049e-05/0.2759, allocations: 10.73 kB / 498.7 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.388e-05/0.2759, allocations: 9.766 kB / 498.7 MB, free: 12.54 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002617/0.2761, allocations: 248 kB / 499 MB, free: 12.42 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2762, allocations: 0 / 499 MB, free: 12.42 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004079/0.2766, allocations: 73.28 kB / 499 MB, free: 12.41 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.i) * 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 (18): * Single equations (assignments): 17 * 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.0006593/0.2772, allocations: 0.9282 MB / 500 MB, free: 11.58 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002753/0.2775, allocations: 152.9 kB / 0.4884 GB, free: 11.53 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.2775, allocations: 1.438 kB / 0.4884 GB, free: 11.53 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.803e-05/0.2776, allocations: 58.56 kB / 0.4884 GB, free: 11.51 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006685/0.2783, allocations: 87.77 kB / 0.4885 GB, free: 11.48 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003264/0.2816, allocations: 2.343 MB / 0.4908 GB, free: 10.05 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000425/0.282, allocations: 0.8405 MB / 0.4916 GB, free: 9.344 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001836/0.2822, allocations: 147.2 kB / 0.4918 GB, free: 9.234 MB / 330.7 MB Notification: Performance of SimCode: time 3.31e-07/0.2822, allocations: 0 / 0.4918 GB, free: 9.234 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.085/3.367, allocations: 5.977 MB / 0.4976 GB, free: 6.441 MB / 330.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Introductory_Frequency_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Introductory_Frequency.fmu > PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1)