Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001229/0.001229, allocations: 181.6 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.782/1.782, allocations: 194.3 MB / 208.4 MB, free: 6.719 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001877/0.001877, allocations: 120.7 kB / 253.5 MB, free: 9.59 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.2581/0.2581, allocations: 37.91 MB / 336.4 MB, free: 14.27 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.549e-05/5.588e-05, allocations: 4 kB / 397.6 MB, free: 0.9531 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2937/0.2938, allocations: 53.22 MB / 450.8 MB, free: 13.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1359/0.4297, allocations: 89.29 MB / 0.5275 GB, free: 4.039 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/0.43, allocations: 91.75 kB / 0.5276 GB, free: 3.953 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3207/0.7508, allocations: 9.731 MB / 0.5371 GB, free: 87.21 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.7508, allocations: 0 / 0.5371 GB, free: 87.21 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.16e-05/0.7509, allocations: 8.469 kB / 0.5371 GB, free: 87.21 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0006934/0.7516, allocations: 483.4 kB / 0.5375 GB, free: 86.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/0.7516, allocations: 8.281 kB / 0.5375 GB, free: 86.77 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.112e-05/0.7517, allocations: 49.98 kB / 0.5376 GB, free: 86.72 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007283/0.7524, allocations: 90.89 kB / 0.5377 GB, free: 86.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003669/0.7528, allocations: 267.3 kB / 0.5379 GB, free: 86.47 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.827e-05/0.7528, allocations: 11.27 kB / 0.5379 GB, free: 86.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.783e-05/0.7529, allocations: 15.44 kB / 0.538 GB, free: 86.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004374/0.7533, allocations: 257.5 kB / 0.5382 GB, free: 86.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/0.7534, allocations: 11.89 kB / 0.5382 GB, free: 86.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.67e-05/0.7534, allocations: 7.781 kB / 0.5382 GB, free: 86.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.75e-05/0.7535, allocations: 14.23 kB / 0.5382 GB, free: 86.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003645/0.7538, allocations: 200.6 kB / 0.5384 GB, free: 86.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001524/0.7554, allocations: 1.213 MB / 0.5396 GB, free: 85.25 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002118/0.7556, allocations: 114 kB / 0.5397 GB, free: 85.18 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.427e-05/0.7557, allocations: 47.34 kB / 0.5398 GB, free: 85.14 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.999e-05/0.7557, allocations: 3.328 kB / 0.5398 GB, free: 85.14 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/0.7557, allocations: 39.58 kB / 0.5398 GB, free: 85.1 MB / 378.7 MB Notification: Performance of pre-optimization done (n=12): time 1.773e-06/0.7557, allocations: 0 / 0.5398 GB, free: 85.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003022/0.7561, allocations: 120.8 kB / 0.5399 GB, free: 85.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.558e-05/0.7561, allocations: 79.2 kB / 0.54 GB, free: 84.94 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001854/0.7563, allocations: 188.8 kB / 0.5402 GB, free: 84.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.629e-05/0.7563, allocations: 30.8 kB / 0.5402 GB, free: 84.78 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.689e-05/0.7564, allocations: 150.1 kB / 0.5404 GB, free: 84.65 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.09e-05/0.7565, allocations: 50.2 kB / 0.5404 GB, free: 84.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.715e-06/0.7565, allocations: 1.188 kB / 0.5404 GB, free: 84.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.349e-05/0.7566, allocations: 334 kB / 0.5407 GB, free: 84.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.359e-05/0.7566, allocations: 34.75 kB / 0.5408 GB, free: 84.27 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001153/0.7568, allocations: 119.3 kB / 0.5409 GB, free: 84.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000112/0.7569, allocations: 61.17 kB / 0.5409 GB, free: 84.13 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.7569, allocations: 5.031 kB / 0.5409 GB, free: 84.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003179/0.7572, allocations: 193.3 kB / 0.5411 GB, free: 84.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.022e-05/0.7572, allocations: 6.281 kB / 0.5411 GB, free: 84.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.7573, allocations: 2.781 kB / 0.5411 GB, free: 84.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.463e-05/0.7573, allocations: 3.969 kB / 0.5411 GB, free: 84.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002638/0.7576, allocations: 54.75 kB / 0.5412 GB, free: 84.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.067e-05/0.7576, allocations: 3.938 kB / 0.5412 GB, free: 84.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001251/0.7577, allocations: 18.5 kB / 0.5412 GB, free: 84.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.972e-05/0.7578, allocations: 11.47 kB / 0.5412 GB, free: 84.02 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete 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 8.161e-05/0.7579, allocations: 124.7 kB / 0.5413 GB, free: 83.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.969e-05/0.7579, allocations: 19.53 kB / 0.5413 GB, free: 83.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002965/0.7582, allocations: 138.7 kB / 0.5415 GB, free: 83.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.7582, allocations: 1.688 kB / 0.5415 GB, free: 83.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.7582, allocations: 0.5312 kB / 0.5415 GB, free: 83.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.7583, allocations: 4.922 kB / 0.5415 GB, free: 83.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008377/0.7591, allocations: 0.5263 MB / 0.542 GB, free: 83.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.7591, allocations: 2.25 kB / 0.542 GB, free: 83.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001976/0.7593, allocations: 32.73 kB / 0.542 GB, free: 83.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-05/0.7594, allocations: 3.156 kB / 0.542 GB, free: 83.37 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.374e-05/0.7594, allocations: 7.125 kB / 0.542 GB, free: 83.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.554e-06/0.7594, allocations: 2.625 kB / 0.542 GB, free: 83.37 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/0.7594, allocations: 6.156 kB / 0.5421 GB, free: 83.36 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005267/0.7599, allocations: 398.7 kB / 0.5424 GB, free: 82.99 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.121e-05/0.76, allocations: 99.11 kB / 0.5425 GB, free: 82.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.782e-05/0.7601, allocations: 7.281 kB / 0.5425 GB, free: 82.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.7602, allocations: 6.016 kB / 0.5425 GB, free: 82.88 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.541e-05/0.7602, allocations: 21.58 kB / 0.5426 GB, free: 82.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.136e-05/0.7603, allocations: 4.906 kB / 0.5426 GB, free: 82.87 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001949/0.7605, allocations: 146.3 kB / 0.5427 GB, free: 82.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.7605, allocations: 0.6875 kB / 0.5427 GB, free: 82.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004493/0.7609, allocations: 51.56 kB / 0.5428 GB, free: 82.76 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (inertia.w,constantTorque.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * 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.0006676/0.7616, allocations: 1.419 MB / 0.5441 GB, free: 81.38 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000252/0.7619, allocations: 115.4 kB / 0.5443 GB, free: 81.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.7619, allocations: 1.344 kB / 0.5443 GB, free: 81.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.722e-05/0.762, allocations: 52.84 kB / 0.5443 GB, free: 81.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003512/0.7623, allocations: 28.41 kB / 0.5443 GB, free: 81.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0012/0.7636, allocations: 481.2 kB / 0.5448 GB, free: 80.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002726/0.7638, allocations: 0.7502 MB / 0.5455 GB, free: 80.25 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001396/0.764, allocations: 34.27 kB / 0.5456 GB, free: 80.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.042e-05/0.7641, allocations: 61.11 kB / 0.5456 GB, free: 80.2 MB / 378.7 MB Notification: Performance of SimCode: time 7.81e-07/0.7641, allocations: 0.9688 kB / 0.5456 GB, free: 80.2 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01741/0.7815, allocations: 3.129 MB / 0.5487 GB, free: 78.94 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002001/0.7818, allocations: 157.6 kB / 0.5488 GB, free: 78.71 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.753/2.535, allocations: 0 / 0.5488 GB, free: 78.71 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1)