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.001545/0.001546, allocations: 179.6 kB / 8.351 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.827/1.827, allocations: 194.4 MB / 203.1 MB, free: 13.03 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.001659/0.001659, allocations: 123.1 kB / 248.1 MB, free: 32 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1627/0.1627, allocations: 37.94 MB / 330.9 MB, free: 2.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.155e-05/2.157e-05, allocations: 0 / 390.5 MB, free: 6.996 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3491/0.3491, allocations: 53.22 MB / 443.7 MB, free: 17.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1352/0.4843, allocations: 88.62 MB / 0.5198 GB, free: 9.016 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003019/0.4847, allocations: 83.94 kB / 0.5199 GB, free: 8.934 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3379/0.8227, allocations: 9.678 MB / 0.5294 GB, free: 87.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.8227, allocations: 0 / 0.5294 GB, free: 87.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.403e-05/0.8228, allocations: 4.781 kB / 0.5294 GB, free: 87.98 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.0009029/0.8237, allocations: 475.8 kB / 0.5298 GB, free: 87.58 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.098e-05/0.8237, allocations: 9.469 kB / 0.5298 GB, free: 87.58 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008486/0.8246, allocations: 94.27 kB / 0.5299 GB, free: 87.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004481/0.8251, allocations: 269.7 kB / 0.5302 GB, free: 87.35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.053e-05/0.8251, allocations: 9.578 kB / 0.5302 GB, free: 87.35 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.24e-05/0.8251, allocations: 9.438 kB / 0.5302 GB, free: 87.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003315/0.8255, allocations: 133.8 kB / 0.5303 GB, free: 87.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004095/0.8259, allocations: 241.5 kB / 0.5305 GB, free: 87.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.8259, allocations: 1.828 kB / 0.5305 GB, free: 87.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.296e-05/0.826, allocations: 0.9375 kB / 0.5306 GB, free: 87.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.269e-05/0.826, allocations: 11.95 kB / 0.5306 GB, free: 87.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001626/0.8276, allocations: 1.222 MB / 0.5318 GB, free: 86.49 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000323/0.828, allocations: 144 kB / 0.5319 GB, free: 86.45 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.708e-05/0.8281, allocations: 50.47 kB / 0.5319 GB, free: 86.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.63e-05/0.8281, allocations: 2.969 kB / 0.5319 GB, free: 86.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.8281, allocations: 32.98 kB / 0.532 GB, free: 86.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.874e-06/0.8281, allocations: 3.5 kB / 0.532 GB, free: 86.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002888/0.8284, allocations: 124.4 kB / 0.5321 GB, free: 86.35 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.8285, allocations: 79.16 kB / 0.5322 GB, free: 86.25 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.8286, allocations: 154.3 kB / 0.5323 GB, free: 86.15 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.306e-05/0.8286, allocations: 27.39 kB / 0.5323 GB, free: 86.12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.844e-05/0.8287, allocations: 154 kB / 0.5325 GB, free: 86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.705e-05/0.8288, allocations: 50.78 kB / 0.5325 GB, free: 85.97 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.073e-06/0.8288, allocations: 0 / 0.5325 GB, free: 85.97 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.332e-05/0.8288, allocations: 327.9 kB / 0.5329 GB, free: 85.66 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.61e-05/0.8289, allocations: 35.19 kB / 0.5329 GB, free: 85.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001132/0.829, allocations: 116.3 kB / 0.533 GB, free: 85.56 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001029/0.8291, allocations: 59.53 kB / 0.5331 GB, free: 85.56 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.8292, allocations: 1 kB / 0.5331 GB, free: 85.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002786/0.8294, allocations: 183.4 kB / 0.5332 GB, free: 85.51 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.8295, allocations: 10.39 kB / 0.5332 GB, free: 85.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.8295, allocations: 2.969 kB / 0.5332 GB, free: 85.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.8295, allocations: 7.625 kB / 0.5333 GB, free: 85.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002043/0.8297, allocations: 54.75 kB / 0.5333 GB, free: 85.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.8297, allocations: 4.844 kB / 0.5333 GB, free: 85.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.8299, allocations: 13 kB / 0.5333 GB, free: 85.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.8299, allocations: 12.02 kB / 0.5333 GB, free: 85.5 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 (24): * Single equations (assignments): 24 * 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 6.588e-05/0.83, allocations: 108.9 kB / 0.5334 GB, free: 85.39 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002048/0.8302, allocations: 136.8 kB / 0.5336 GB, free: 85.33 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.609e-05/0.8302, allocations: 18.95 kB / 0.5336 GB, free: 85.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00026/0.8305, allocations: 133.2 kB / 0.5337 GB, free: 85.29 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.8305, allocations: 2.094 kB / 0.5337 GB, free: 85.29 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.8305, allocations: 1.25 kB / 0.5337 GB, free: 85.29 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.8305, allocations: 0.9375 kB / 0.5337 GB, free: 85.29 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005561/0.8311, allocations: 471.9 kB / 0.5342 GB, free: 84.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.8311, allocations: 2.969 kB / 0.5342 GB, free: 84.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001737/0.8313, allocations: 29.53 kB / 0.5342 GB, free: 84.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.8313, allocations: 6.094 kB / 0.5342 GB, free: 84.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.8313, allocations: 6.5 kB / 0.5342 GB, free: 84.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.8313, allocations: 2.094 kB / 0.5342 GB, free: 84.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.8313, allocations: 3.047 kB / 0.5342 GB, free: 84.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000355/0.8317, allocations: 357 kB / 0.5346 GB, free: 84.74 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.27e-05/0.8317, allocations: 98.88 kB / 0.5346 GB, free: 84.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.026e-05/0.8318, allocations: 13.61 kB / 0.5347 GB, free: 84.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.301e-05/0.8319, allocations: 1.219 kB / 0.5347 GB, free: 84.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.407e-05/0.8319, allocations: 12.53 kB / 0.5347 GB, free: 84.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/0.8319, allocations: 7.938 kB / 0.5347 GB, free: 84.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.945e-05/0.832, allocations: 118.6 kB / 0.5348 GB, free: 84.54 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.832, allocations: 3.938 kB / 0.5348 GB, free: 84.54 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003565/0.8324, allocations: 53.78 kB / 0.5348 GB, free: 84.53 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (15): * Single equations (assignments): 14 * 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.0005833/0.833, allocations: 1.156 MB / 0.536 GB, free: 83.49 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002479/0.8332, allocations: 109.5 kB / 0.5361 GB, free: 83.48 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.8333, allocations: 0 / 0.5361 GB, free: 83.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.663e-05/0.8334, allocations: 48.33 kB / 0.5361 GB, free: 83.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003264/0.8337, allocations: 32.16 kB / 0.5362 GB, free: 83.47 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/0.8348, allocations: 452 kB / 0.5366 GB, free: 83.19 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002947/0.8351, allocations: 0.7532 MB / 0.5373 GB, free: 82.48 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001234/0.8352, allocations: 30.42 kB / 0.5374 GB, free: 82.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001001/0.8354, allocations: 61.58 kB / 0.5374 GB, free: 82.47 MB / 378.7 MB Notification: Performance of SimCode: time 5.11e-07/0.8354, allocations: 0 / 0.5374 GB, free: 82.47 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02332/0.8587, allocations: 2.716 MB / 0.5401 GB, free: 82.31 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001619/0.8589, allocations: 133 kB / 0.5402 GB, free: 82.12 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.78/2.639, allocations: 0 / 0.5402 GB, free: 82.12 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)