Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.Frequency.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.Frequency,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Frequency",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.001316/0.001316, allocations: 98.94 kB / 16.5 MB, free: 6.641 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.001348/0.001348, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.331/1.331, allocations: 205.1 MB / 223.3 MB, free: 12.39 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1671/0.1671, allocations: 37.99 MB / 308.6 MB, free: 6.227 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.001612/0.001612, allocations: 63.91 kB / 374.7 MB, free: 4.004 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.2425, allocations: 55.24 MB / 430 MB, free: 19.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.006409/0.2489, allocations: 6.909 MB / 436.9 MB, free: 12.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002495/0.2515, allocations: 1.587 MB / 438.5 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004165/0.2519, allocations: 51.62 kB / 438.5 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002777/0.2522, allocations: 63.53 kB / 438.6 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000728/0.253, allocations: 270.7 kB / 438.8 MB, free: 10.85 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003179/0.2534, allocations: 123.8 kB / 439 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006478/0.254, allocations: 0.958 MB / 439.9 MB, free: 9.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002306/0.2543, allocations: 156.1 kB / 440.1 MB, free: 9.605 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000285/0.2545, allocations: 254.8 kB / 440.3 MB, free: 9.355 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004123/0.255, allocations: 354.6 kB / 440.7 MB, free: 9.008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.124e-05/0.255, allocations: 20 kB / 440.7 MB, free: 8.988 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.703e-05/0.2551, allocations: 24 kB / 440.7 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001201/0.2552, allocations: 139.6 kB / 440.8 MB, free: 8.828 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001736/0.2554, allocations: 230.7 kB / 441.1 MB, free: 8.602 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003153/0.2557, allocations: 486.1 kB / 441.5 MB, free: 8.125 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2557, allocations: 0 / 441.5 MB, free: 8.125 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.31e-07/0.2558, allocations: 0 / 441.5 MB, free: 8.125 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.2558, allocations: 0 / 441.5 MB, free: 8.125 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.00114/0.2569, allocations: 0.7814 MB / 442.3 MB, free: 7.297 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.257, allocations: 8.031 kB / 442.3 MB, free: 7.289 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.809e-05/0.257, allocations: 82.7 kB / 442.4 MB, free: 7.199 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.103e-05/0.2571, allocations: 56.28 kB / 442.5 MB, free: 7.145 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000484/0.2576, allocations: 428 kB / 442.9 MB, free: 6.691 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.316e-05/0.2576, allocations: 29 kB / 442.9 MB, free: 6.664 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.482e-05/0.2577, allocations: 39.91 kB / 442.9 MB, free: 6.625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005283/0.2582, allocations: 459.6 kB / 443.4 MB, free: 6.137 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.2583, allocations: 4 kB / 443.4 MB, free: 6.133 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.988e-05/0.2583, allocations: 16 kB / 443.4 MB, free: 6.117 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.2583, allocations: 15.94 kB / 443.4 MB, free: 6.102 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003697/0.2587, allocations: 308.5 kB / 443.7 MB, free: 5.801 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001428/0.2601, allocations: 1.767 MB / 445.5 MB, free: 3.926 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001741/0.2603, allocations: 139.6 kB / 445.6 MB, free: 3.762 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.078e-05/0.2604, allocations: 58.66 kB / 445.7 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.8e-05/0.2604, allocations: 8 kB / 445.7 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.2604, allocations: 38.55 kB / 445.7 MB, free: 3.641 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.954e-06/0.2605, allocations: 3.938 kB / 445.7 MB, free: 3.637 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008375/0.2613, allocations: 0.5962 MB / 446.3 MB, free: 2.984 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/0.2614, allocations: 114.9 kB / 446.4 MB, free: 2.848 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002826/0.2616, allocations: 377.5 kB / 446.8 MB, free: 2.469 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.208e-05/0.2617, allocations: 33.64 kB / 446.9 MB, free: 2.43 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001299/0.2618, allocations: 275.4 kB / 447.1 MB, free: 2.156 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.248e-05/0.2618, allocations: 59.19 kB / 447.2 MB, free: 2.098 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.16e-05/0.2619, allocations: 57.61 kB / 447.2 MB, free: 2.035 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.342e-05/0.262, allocations: 350.8 kB / 447.6 MB, free: 1.684 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.544e-05/0.2621, allocations: 47.97 kB / 447.6 MB, free: 1.637 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001177/0.2622, allocations: 198.5 kB / 447.8 MB, free: 1.375 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002031/0.2624, allocations: 266.7 kB / 448.1 MB, free: 1.047 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2624, allocations: 0 / 448.1 MB, free: 1.047 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003107/0.2627, allocations: 292.6 kB / 448.4 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.2627, allocations: 8 kB / 448.4 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.2628, allocations: 4.625 kB / 448.4 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.2628, allocations: 12 kB / 448.4 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002131/0.263, allocations: 71.91 kB / 448.5 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.263, allocations: 7.938 kB / 448.5 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001469/0.2632, allocations: 23.83 kB / 448.5 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.727e-05/0.2632, allocations: 16 kB / 448.5 MB, free: 0.6133 MB / 318.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001295/0.2633, allocations: 181.6 kB / 448.7 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.753e-05/0.2634, allocations: 35.62 kB / 448.7 MB, free: 400 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002198/0.2636, allocations: 168.7 kB / 448.9 MB, free: 224 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.2636, allocations: 0 / 448.9 MB, free: 224 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.2636, allocations: 4 kB / 448.9 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.2636, allocations: 0 / 448.9 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005817/0.2642, allocations: 0.5346 MB / 449.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.2642, allocations: 0 / 449.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001765/0.2644, allocations: 39.98 kB / 449.5 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.2644, allocations: 0 / 449.5 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.2645, allocations: 7.984 kB / 449.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.165e-06/0.2645, allocations: 4.031 kB / 449.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.584e-06/0.2645, allocations: 7.938 kB / 449.5 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004106/0.2649, allocations: 391.9 kB / 449.9 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.588e-05/0.265, allocations: 112.7 kB / 450 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.578e-05/0.265, allocations: 4 kB / 450 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001561/0.2652, allocations: 15.88 kB / 450 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.958e-05/0.2652, allocations: 12.08 kB / 450 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.005e-05/0.2653, allocations: 7.938 kB / 450 MB, free: 14.99 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002429/0.2655, allocations: 255.2 kB / 450.3 MB, free: 14.74 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2655, allocations: 0 / 450.3 MB, free: 14.74 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003843/0.2659, allocations: 72 kB / 450.3 MB, free: 14.67 MB / 334.1 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 (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.0006271/0.2665, allocations: 0.9325 MB / 451.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002452/0.2668, allocations: 161.2 kB / 451.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.2668, allocations: 0 / 451.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.35e-05/0.2669, allocations: 55.92 kB / 451.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006511/0.2675, allocations: 89.47 kB / 451.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003889/0.2714, allocations: 3.591 MB / 455.2 MB, free: 9.602 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003911/0.2719, allocations: 0.8464 MB / 456 MB, free: 8.73 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001675/0.272, allocations: 43.45 kB / 456 MB, free: 8.688 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001624/0.2722, allocations: 147.3 kB / 456.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2722, allocations: 0 / 456.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0163/0.2885, allocations: 6.634 MB / 462.8 MB, free: 1.93 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001822/0.2887, allocations: 192.9 kB / 463 MB, free: 1.672 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.821/2.11, allocations: 3.938 kB / 463 MB, free: 1.668 MB / 334.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.Frequency.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_Frequency_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_Frequency.fmu > PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1)