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.001038/0.001038, allocations: 180.1 kB / 16.38 MB, free: 5.766 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.324/1.324, allocations: 194.5 MB / 211.6 MB, free: 3.039 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.001623/0.001623, allocations: 112.8 kB / 256.9 MB, free: 4.348 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1673/0.1673, allocations: 38 MB / 340.1 MB, free: 1.344 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003907/0.0003908, allocations: 8 kB / 403.9 MB, free: 68.69 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09171/0.09211, allocations: 53.23 MB / 457.1 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3227/0.4149, allocations: 89.37 MB / 0.5337 GB, free: 6.176 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002224/0.4152, allocations: 90.19 kB / 0.5338 GB, free: 6.125 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02123/0.4364, allocations: 9.789 MB / 0.5433 GB, free: 13.96 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.235e-06/0.4364, allocations: 0 / 0.5433 GB, free: 13.96 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.278e-05/0.4365, allocations: 4 kB / 0.5433 GB, free: 13.96 MB / 362.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.0008657/0.4373, allocations: 499 kB / 0.5438 GB, free: 13.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.4374, allocations: 16.02 kB / 0.5438 GB, free: 13.42 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.287e-05/0.4375, allocations: 53.48 kB / 0.5439 GB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007629/0.4383, allocations: 91.61 kB / 0.5439 GB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004129/0.4387, allocations: 266.9 kB / 0.5442 GB, free: 13 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.762e-05/0.4387, allocations: 11.83 kB / 0.5442 GB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.879e-05/0.4388, allocations: 18.94 kB / 0.5442 GB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000406/0.4392, allocations: 257.9 kB / 0.5445 GB, free: 12.76 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.4392, allocations: 7.953 kB / 0.5445 GB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.091e-05/0.4392, allocations: 7.062 kB / 0.5445 GB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.018e-05/0.4393, allocations: 16.31 kB / 0.5445 GB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00032/0.4396, allocations: 202.7 kB / 0.5447 GB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00143/0.441, allocations: 1.22 MB / 0.5459 GB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001816/0.4412, allocations: 113.7 kB / 0.546 GB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.523e-05/0.4413, allocations: 8.094 kB / 0.546 GB, free: 11.32 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.4413, allocations: 38.5 kB / 0.546 GB, free: 11.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.493e-06/0.4413, allocations: 0 / 0.546 GB, free: 11.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003026/0.4416, allocations: 144.9 kB / 0.5462 GB, free: 11.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.571e-05/0.4417, allocations: 85.05 kB / 0.5463 GB, free: 11.06 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001497/0.4418, allocations: 184.3 kB / 0.5464 GB, free: 10.9 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.607e-05/0.4419, allocations: 29.92 kB / 0.5465 GB, free: 10.86 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.902e-05/0.4419, allocations: 155.3 kB / 0.5466 GB, free: 10.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.239e-05/0.442, allocations: 50.95 kB / 0.5467 GB, free: 10.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.813e-06/0.442, allocations: 7.625 kB / 0.5467 GB, free: 10.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.4421, allocations: 329.9 kB / 0.547 GB, free: 10.36 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.441e-05/0.4422, allocations: 38.73 kB / 0.547 GB, free: 10.33 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001106/0.4423, allocations: 120.6 kB / 0.5471 GB, free: 10.19 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.613e-05/0.4424, allocations: 65.61 kB / 0.5472 GB, free: 10.15 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.4424, allocations: 0 / 0.5472 GB, free: 10.15 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002638/0.4427, allocations: 189.5 kB / 0.5474 GB, free: 9.996 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.4427, allocations: 4 kB / 0.5474 GB, free: 9.992 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.4427, allocations: 11.92 kB / 0.5474 GB, free: 9.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.4427, allocations: 4 kB / 0.5474 GB, free: 9.977 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002006/0.4429, allocations: 52.27 kB / 0.5474 GB, free: 9.926 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.443, allocations: 4 kB / 0.5475 GB, free: 9.922 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001079/0.4431, allocations: 23.38 kB / 0.5475 GB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.605e-05/0.4431, allocations: 11.05 kB / 0.5475 GB, free: 9.895 MB / 362.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 () * 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.0001199/0.4432, allocations: 148.4 kB / 0.5476 GB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.984e-05/0.4433, allocations: 19.8 kB / 0.5476 GB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002127/0.4435, allocations: 129 kB / 0.5478 GB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.686e-06/0.4435, allocations: 3.984 kB / 0.5478 GB, free: 9.633 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.4435, allocations: 4 kB / 0.5478 GB, free: 9.629 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.4435, allocations: 0 / 0.5478 GB, free: 9.629 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006317/0.4442, allocations: 0.5249 MB / 0.5483 GB, free: 9.102 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.4442, allocations: 7.984 kB / 0.5483 GB, free: 9.094 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001448/0.4443, allocations: 35.61 kB / 0.5483 GB, free: 9.062 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.792e-06/0.4443, allocations: 4 kB / 0.5483 GB, free: 9.059 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.4444, allocations: 7.938 kB / 0.5483 GB, free: 9.051 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.4444, allocations: 4 kB / 0.5483 GB, free: 9.047 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.4444, allocations: 0 / 0.5483 GB, free: 9.047 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003827/0.4448, allocations: 418.6 kB / 0.5487 GB, free: 8.617 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.897e-05/0.4448, allocations: 96.17 kB / 0.5488 GB, free: 8.508 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.002e-05/0.4449, allocations: 8.062 kB / 0.5488 GB, free: 8.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.445, allocations: 7.625 kB / 0.5488 GB, free: 8.496 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.486e-05/0.445, allocations: 15.88 kB / 0.5489 GB, free: 8.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.928e-06/0.445, allocations: 4 kB / 0.5489 GB, free: 8.477 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001305/0.4452, allocations: 152.4 kB / 0.549 GB, free: 8.348 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4452, allocations: 4.062 kB / 0.549 GB, free: 8.344 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003227/0.4455, allocations: 47.75 kB / 0.5491 GB, free: 8.301 MB / 362.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 () * Number of clocked 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.0008423/0.4463, allocations: 1.424 MB / 0.5505 GB, free: 6.863 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002149/0.4466, allocations: 113.7 kB / 0.5506 GB, free: 6.777 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.4466, allocations: 3.438 kB / 0.5506 GB, free: 6.777 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.381e-05/0.4467, allocations: 43.92 kB / 0.5506 GB, free: 6.742 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000309/0.447, allocations: 50.45 kB / 0.5507 GB, free: 6.703 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002629/0.4496, allocations: 2.987 MB / 0.5536 GB, free: 3.738 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003485/0.45, allocations: 0.743 MB / 0.5543 GB, free: 2.973 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001117/0.4501, allocations: 33.52 kB / 0.5543 GB, free: 2.941 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.877e-05/0.4502, allocations: 60.11 kB / 0.5544 GB, free: 2.918 MB / 362.7 MB Notification: Performance of SimCode: time 4.61e-07/0.4502, allocations: 0 / 0.5544 GB, free: 2.918 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01518/0.4654, allocations: 3.173 MB / 0.5575 GB, free: 15.77 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002124/0.4656, allocations: 172 kB / 0.5576 GB, free: 15.53 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.698/2.164, allocations: 0 / 0.5576 GB, free: 15.53 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)