Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.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.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",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.001118/0.001118, allocations: 180.8 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.352/1.352, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008492/0.0008492, allocations: 93.31 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4435/0.4435, allocations: 48.78 MB / 367.9 MB, free: 47.41 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000313/0.0003132, allocations: 12 kB / 438.7 MB, free: 10.9 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1211, allocations: 60.24 MB / 499 MB, free: 14.52 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3218/0.443, allocations: 86.56 MB / 0.5718 GB, free: 12.03 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.4432, allocations: 79.95 kB / 0.5719 GB, free: 11.95 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009095/0.4523, allocations: 3.658 MB / 0.5755 GB, free: 8.352 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.4523, allocations: 0 / 0.5755 GB, free: 8.352 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.65e-05/0.4524, allocations: 4 kB / 0.5755 GB, free: 8.348 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006397/0.453, allocations: 0.515 MB / 0.576 GB, free: 7.789 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.4531, allocations: 12.03 kB / 0.576 GB, free: 7.777 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.589e-05/0.4531, allocations: 42.56 kB / 0.576 GB, free: 7.727 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.21e-05/0.4532, allocations: 27.72 kB / 0.5761 GB, free: 7.699 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002833/0.4535, allocations: 257.7 kB / 0.5763 GB, free: 7.41 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.328e-05/0.4535, allocations: 12 kB / 0.5763 GB, free: 7.398 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.342e-05/0.4535, allocations: 12 kB / 0.5763 GB, free: 7.387 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002551/0.4538, allocations: 158.9 kB / 0.5765 GB, free: 7.223 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.4538, allocations: 4 kB / 0.5765 GB, free: 7.219 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.593e-05/0.4538, allocations: 4 kB / 0.5765 GB, free: 7.215 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.4538, allocations: 7.984 kB / 0.5765 GB, free: 7.207 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002186/0.4541, allocations: 111.8 kB / 0.5766 GB, free: 7.098 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007104/0.4548, allocations: 0.6144 MB / 0.5772 GB, free: 6.43 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000225/0.455, allocations: 146.3 kB / 0.5773 GB, free: 6.281 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.77e-05/0.455, allocations: 0 / 0.5773 GB, free: 6.281 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.427e-05/0.4551, allocations: 30.56 kB / 0.5774 GB, free: 6.242 MB / 394.7 MB Notification: Performance of pre-optimization done (n=17): time 9.82e-07/0.4551, allocations: 0 / 0.5774 GB, free: 6.242 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.0009456/0.456, allocations: 0.6022 MB / 0.578 GB, free: 5.586 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.107e-05/0.4561, allocations: 51.41 kB / 0.578 GB, free: 5.523 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001608/0.4562, allocations: 196.2 kB / 0.5782 GB, free: 5.328 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.4563, allocations: 33.7 kB / 0.5782 GB, free: 5.289 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.385e-05/0.4563, allocations: 140.4 kB / 0.5784 GB, free: 5.148 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.608e-05/0.4564, allocations: 67 kB / 0.5784 GB, free: 5.082 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.506e-06/0.4564, allocations: 4 kB / 0.5784 GB, free: 5.078 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.464e-05/0.4564, allocations: 326.8 kB / 0.5787 GB, free: 4.75 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.4566, allocations: 55.97 kB / 0.5788 GB, free: 4.695 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001192/0.4567, allocations: 93.72 kB / 0.5789 GB, free: 4.598 MB / 394.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: $DER.generator.theta = generator.omega_e_nom (6.283185307179586 * grid.fnom = generator.omega_e_nom) Notification: Performance of analyzeInitialSystem (initialization): time 0.0009173/0.4576, allocations: 334 kB / 0.5792 GB, free: 4.262 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.4576, allocations: 0 / 0.5792 GB, free: 4.262 MB / 394.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003019/0.4579, allocations: 205.9 kB / 0.5794 GB, free: 4.055 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.458, allocations: 6.656 kB / 0.5794 GB, free: 4.051 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.458, allocations: 0 / 0.5794 GB, free: 4.051 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.458, allocations: 4.438 kB / 0.5794 GB, free: 4.047 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002873/0.4583, allocations: 67.94 kB / 0.5795 GB, free: 3.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.104e-06/0.4583, allocations: 3.984 kB / 0.5795 GB, free: 3.977 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001239/0.4584, allocations: 8 kB / 0.5795 GB, free: 3.969 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/0.4584, allocations: 11.94 kB / 0.5795 GB, free: 3.957 MB / 394.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.generator.theta = generator.omega_e_nom. 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 () * Number of clocked 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 9.002e-05/0.4585, allocations: 133 kB / 0.5796 GB, free: 3.82 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.997e-05/0.4586, allocations: 27.67 kB / 0.5796 GB, free: 3.793 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003328/0.4589, allocations: 200.9 kB / 0.5798 GB, free: 3.594 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.4589, allocations: 3.953 kB / 0.5798 GB, free: 3.59 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.4589, allocations: 0 / 0.5798 GB, free: 3.59 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.4589, allocations: 4 kB / 0.5798 GB, free: 3.586 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005699/0.4595, allocations: 0.5438 MB / 0.5804 GB, free: 2.988 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.4595, allocations: 0 / 0.5804 GB, free: 2.988 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002741/0.4598, allocations: 55.97 kB / 0.5804 GB, free: 2.934 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.4598, allocations: 3.953 kB / 0.5804 GB, free: 2.93 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.543e-05/0.4599, allocations: 8 kB / 0.5804 GB, free: 2.922 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.4599, allocations: 4 kB / 0.5804 GB, free: 2.918 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.4599, allocations: 0 / 0.5804 GB, free: 2.918 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004358/0.4603, allocations: 355.1 kB / 0.5808 GB, free: 2.555 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.513e-05/0.4604, allocations: 116.8 kB / 0.5809 GB, free: 2.422 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.115e-05/0.4604, allocations: 7.953 kB / 0.5809 GB, free: 2.414 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/0.4606, allocations: 9.375 kB / 0.5809 GB, free: 2.406 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.419e-05/0.4606, allocations: 15.97 kB / 0.5809 GB, free: 2.391 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.457e-06/0.4606, allocations: 8 kB / 0.5809 GB, free: 2.383 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001017/0.4608, allocations: 160.5 kB / 0.5811 GB, free: 2.223 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4608, allocations: 4 kB / 0.5811 GB, free: 2.219 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002691/0.461, allocations: 43.94 kB / 0.5811 GB, free: 2.176 MB / 394.7 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * 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.0005926/0.4616, allocations: 0.9016 MB / 0.582 GB, free: 1.25 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002884/0.4619, allocations: 156 kB / 0.5822 GB, free: 1.098 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.4619, allocations: 4 kB / 0.5822 GB, free: 1.094 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001213/0.4621, allocations: 83.97 kB / 0.5822 GB, free: 1.012 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002811/0.4624, allocations: 28.38 kB / 0.5823 GB, free: 0.9844 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001203/0.4636, allocations: 1.263 MB / 0.5835 GB, free: 15.68 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003211/0.4639, allocations: 0.7479 MB / 0.5842 GB, free: 14.9 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.337e-05/0.464, allocations: 21.94 kB / 0.5843 GB, free: 14.88 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.4641, allocations: 63.42 kB / 0.5843 GB, free: 14.82 MB / 410.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4641, allocations: 0 / 0.5843 GB, free: 14.82 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01568/0.4798, allocations: 3.89 MB / 0.5881 GB, free: 11.03 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001714/0.48, allocations: 184.3 kB / 0.5883 GB, free: 10.79 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.867/2.347, allocations: 0 / 0.5883 GB, free: 10.79 MB / 410.7 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe 2>&1)