Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.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/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-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(ThermoPower.Test.ElectricalComponents.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",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.001436/0.001436, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.668/1.668, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008962/0.0008961, allocations: 83.08 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.472/0.472, allocations: 48.77 MB / 358.8 MB, free: 53.16 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.742e-05/1.745e-05, allocations: 0 / 425.4 MB, free: 8.141 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1384, allocations: 60.26 MB / 485.6 MB, free: 11.73 MB / 379.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3899/0.5284, allocations: 85.56 MB / 0.5578 GB, free: 15.39 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002306/0.5286, allocations: 76.8 kB / 0.5579 GB, free: 15.32 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.008402/0.5371, allocations: 3.059 MB / 0.5609 GB, free: 12.31 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.5371, allocations: 0 / 0.5609 GB, free: 12.31 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.493e-05/0.5371, allocations: 4 kB / 0.5609 GB, free: 12.3 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0004924/0.5376, allocations: 449.8 kB / 0.5613 GB, free: 11.82 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.5377, allocations: 8.031 kB / 0.5613 GB, free: 11.82 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.34e-05/0.5377, allocations: 27.7 kB / 0.5613 GB, free: 11.79 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003061/0.538, allocations: 246.6 kB / 0.5616 GB, free: 11.51 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.374e-06/0.5381, allocations: 0 / 0.5616 GB, free: 11.51 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.037e-05/0.5381, allocations: 8.562 kB / 0.5616 GB, free: 11.5 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001491/0.5382, allocations: 69.34 kB / 0.5617 GB, free: 11.43 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000173/0.5384, allocations: 107.4 kB / 0.5618 GB, free: 11.32 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.5384, allocations: 0 / 0.5618 GB, free: 11.32 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.5385, allocations: 0 / 0.5618 GB, free: 11.32 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.5385, allocations: 7.953 kB / 0.5618 GB, free: 11.31 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006693/0.5392, allocations: 0.5043 MB / 0.5623 GB, free: 10.76 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001473/0.5393, allocations: 94.52 kB / 0.5624 GB, free: 10.66 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.989e-05/0.5394, allocations: 42.64 kB / 0.5624 GB, free: 10.62 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.809e-05/0.5394, allocations: 0 / 0.5624 GB, free: 10.62 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.204e-05/0.5394, allocations: 34.56 kB / 0.5624 GB, free: 10.57 MB / 395.1 MB Notification: Performance of pre-optimization done (n=12): time 9.91e-07/0.5395, allocations: 0 / 0.5624 GB, free: 10.57 MB / 395.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006728/0.5401, allocations: 392.5 kB / 0.5628 GB, free: 10.14 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.948e-05/0.5402, allocations: 55.41 kB / 0.5629 GB, free: 10.07 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001658/0.5404, allocations: 174 kB / 0.563 GB, free: 9.898 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.526e-05/0.5404, allocations: 25.7 kB / 0.563 GB, free: 9.867 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.861e-05/0.5404, allocations: 136.2 kB / 0.5632 GB, free: 9.727 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.352e-05/0.5405, allocations: 43.36 kB / 0.5632 GB, free: 9.684 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.911e-06/0.5405, allocations: 0 / 0.5632 GB, free: 9.684 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 9.888e-05/0.5406, allocations: 330.8 kB / 0.5635 GB, free: 9.352 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.912e-05/0.5407, allocations: 27.83 kB / 0.5636 GB, free: 9.328 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.176e-05/0.5407, allocations: 50.56 kB / 0.5636 GB, free: 9.27 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.922e-05/0.5408, allocations: 35.92 kB / 0.5636 GB, free: 9.234 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.5408, allocations: 3.953 kB / 0.5636 GB, free: 9.23 MB / 395.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000192/0.541, allocations: 117.5 kB / 0.5638 GB, free: 9.109 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.5411, allocations: 12.06 kB / 0.5638 GB, free: 9.098 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.5411, allocations: 3.938 kB / 0.5638 GB, free: 9.094 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.5411, allocations: 0 / 0.5638 GB, free: 9.094 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000183/0.5413, allocations: 35.98 kB / 0.5638 GB, free: 9.059 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.5413, allocations: 0 / 0.5638 GB, free: 9.059 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001005/0.5414, allocations: 4 kB / 0.5638 GB, free: 9.055 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.5414, allocations: 7.984 kB / 0.5638 GB, free: 9.047 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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 7.17e-05/0.5415, allocations: 112.9 kB / 0.5639 GB, free: 8.93 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000172/0.5417, allocations: 116.5 kB / 0.564 GB, free: 8.812 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.539e-05/0.5417, allocations: 15.81 kB / 0.564 GB, free: 8.797 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002164/0.542, allocations: 119.6 kB / 0.5642 GB, free: 8.676 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.542, allocations: 6.438 kB / 0.5642 GB, free: 8.672 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.542, allocations: 3.938 kB / 0.5642 GB, free: 8.668 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.542, allocations: 0 / 0.5642 GB, free: 8.668 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004259/0.5424, allocations: 407.8 kB / 0.5646 GB, free: 8.227 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.5424, allocations: 0 / 0.5646 GB, free: 8.227 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000177/0.5426, allocations: 35.98 kB / 0.5646 GB, free: 8.191 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.5426, allocations: 0 / 0.5646 GB, free: 8.191 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.5427, allocations: 4 kB / 0.5646 GB, free: 8.188 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.5427, allocations: 3.938 kB / 0.5646 GB, free: 8.184 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.5427, allocations: 0 / 0.5646 GB, free: 8.184 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002842/0.543, allocations: 252.5 kB / 0.5648 GB, free: 7.922 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.736e-05/0.543, allocations: 104.9 kB / 0.5649 GB, free: 7.801 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.818e-05/0.5431, allocations: 0.5625 kB / 0.5649 GB, free: 7.801 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/0.5432, allocations: 8 kB / 0.565 GB, free: 7.793 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.672e-05/0.5433, allocations: 11.98 kB / 0.565 GB, free: 7.781 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.572e-06/0.5433, allocations: 0 / 0.565 GB, free: 7.781 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0001053/0.5434, allocations: 136.6 kB / 0.5651 GB, free: 7.648 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5434, allocations: 0 / 0.5651 GB, free: 7.648 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0002638/0.5437, allocations: 44.3 kB / 0.5651 GB, free: 7.605 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (generator.phi,generator.omega_m,generator.omega_e_filt) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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 Backend phase and start with SimCode phase: time 0.0005409/0.5442, allocations: 0.7889 MB / 0.5659 GB, free: 6.797 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0001615/0.5444, allocations: 79.97 kB / 0.566 GB, free: 6.719 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.5444, allocations: 0 / 0.566 GB, free: 6.719 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 6.284e-05/0.5445, allocations: 47.88 kB / 0.566 GB, free: 6.672 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003229/0.5448, allocations: 23.98 kB / 0.5661 GB, free: 6.648 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009464/0.5457, allocations: 446.8 kB / 0.5665 GB, free: 6.184 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000285/0.546, allocations: 0.7319 MB / 0.5672 GB, free: 5.426 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 7.481e-05/0.5461, allocations: 18.75 kB / 0.5672 GB, free: 5.41 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.665e-05/0.5462, allocations: 59.41 kB / 0.5673 GB, free: 5.352 MB / 395.1 MB Notification: Performance of SimCode: time 5.51e-07/0.5462, allocations: 0 / 0.5673 GB, free: 5.352 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02093/0.5672, allocations: 2.877 MB / 0.5701 GB, free: 2.516 MB / 395.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002249/0.5675, allocations: 134.2 kB / 0.5702 GB, free: 2.328 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.605/2.172, allocations: 0 / 0.5702 GB, free: 2.328 MB / 395.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe 2>&1)