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.001103/0.001103, allocations: 177.1 kB / 8.35 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.494/1.494, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.001063/0.001063, allocations: 93.23 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4367/0.4367, allocations: 48.76 MB / 358.8 MB, free: 53.14 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.907e-05/1.931e-05, allocations: 4 kB / 425.4 MB, free: 8.141 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1204, allocations: 60.26 MB / 485.6 MB, free: 11.74 MB / 379.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3533/0.4737, allocations: 85.8 MB / 0.5581 GB, free: 15.18 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002384/0.474, allocations: 71.97 kB / 0.5581 GB, free: 15.11 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01044/0.4845, allocations: 3.629 MB / 0.5617 GB, free: 11.53 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.4845, allocations: 6.453 kB / 0.5617 GB, free: 11.53 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.4845, allocations: 4 kB / 0.5617 GB, free: 11.52 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.000576/0.4851, allocations: 473.5 kB / 0.5621 GB, free: 11.02 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.4852, allocations: 12.03 kB / 0.5621 GB, free: 11.01 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.256e-05/0.4852, allocations: 23.72 kB / 0.5622 GB, free: 10.98 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003385/0.4856, allocations: 257.6 kB / 0.5624 GB, free: 10.7 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.4856, allocations: 8 kB / 0.5624 GB, free: 10.69 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.4e-05/0.4856, allocations: 8 kB / 0.5624 GB, free: 10.68 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001656/0.4858, allocations: 74.95 kB / 0.5625 GB, free: 10.61 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002047/0.486, allocations: 121.8 kB / 0.5626 GB, free: 10.48 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.4861, allocations: 11.84 kB / 0.5626 GB, free: 10.47 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.4861, allocations: 0 / 0.5626 GB, free: 10.47 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.4861, allocations: 7.953 kB / 0.5626 GB, free: 10.46 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007956/0.4869, allocations: 0.5695 MB / 0.5632 GB, free: 9.844 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001874/0.4871, allocations: 114.6 kB / 0.5633 GB, free: 9.723 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.896e-05/0.4872, allocations: 60.73 kB / 0.5634 GB, free: 9.66 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.242e-05/0.4872, allocations: 4 kB / 0.5634 GB, free: 9.656 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.047e-05/0.4872, allocations: 30.56 kB / 0.5634 GB, free: 9.617 MB / 395.1 MB Notification: Performance of pre-optimization done (n=17): time 1.242e-06/0.4873, allocations: 0 / 0.5634 GB, free: 9.617 MB / 395.1 MB Notification: Performance of matching and sorting (n=19): time 0.0007967/0.4881, allocations: 467.2 kB / 0.5638 GB, free: 9.105 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.293e-05/0.4881, allocations: 51.41 kB / 0.5639 GB, free: 9.043 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002062/0.4883, allocations: 192.5 kB / 0.5641 GB, free: 8.852 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.81e-05/0.4883, allocations: 25.7 kB / 0.5641 GB, free: 8.82 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.4885, allocations: 136.4 kB / 0.5642 GB, free: 8.684 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.046e-05/0.4885, allocations: 70.94 kB / 0.5643 GB, free: 8.613 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.905e-06/0.4885, allocations: 0 / 0.5643 GB, free: 8.613 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.4886, allocations: 337.5 kB / 0.5646 GB, free: 8.277 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.004e-05/0.4887, allocations: 40 kB / 0.5646 GB, free: 8.238 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.738e-05/0.4888, allocations: 58.77 kB / 0.5647 GB, free: 8.172 MB / 395.1 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.0008018/0.4896, allocations: 271.5 kB / 0.565 GB, free: 7.891 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.4896, allocations: 0 / 0.565 GB, free: 7.891 MB / 395.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002533/0.4899, allocations: 165.8 kB / 0.5651 GB, free: 7.723 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.4899, allocations: 4 kB / 0.5651 GB, free: 7.719 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.4899, allocations: 5.125 kB / 0.5651 GB, free: 7.715 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.4899, allocations: 8.031 kB / 0.5651 GB, free: 7.707 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002793/0.4902, allocations: 55.91 kB / 0.5652 GB, free: 7.652 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.697e-06/0.4902, allocations: 4 kB / 0.5652 GB, free: 7.648 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001253/0.4904, allocations: 7.984 kB / 0.5652 GB, free: 7.641 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.081e-05/0.4904, allocations: 14.12 kB / 0.5652 GB, free: 7.629 MB / 395.1 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 () * 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 8.601e-05/0.4905, allocations: 108.9 kB / 0.5653 GB, free: 7.516 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002332/0.4907, allocations: 138.7 kB / 0.5655 GB, free: 7.375 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.945e-05/0.4908, allocations: 19.81 kB / 0.5655 GB, free: 7.355 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002762/0.4911, allocations: 162.2 kB / 0.5656 GB, free: 7.195 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.4911, allocations: 4 kB / 0.5656 GB, free: 7.191 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.4911, allocations: 0 / 0.5656 GB, free: 7.191 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.4911, allocations: 3.953 kB / 0.5656 GB, free: 7.188 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005809/0.4917, allocations: 478.9 kB / 0.5661 GB, free: 6.676 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.4917, allocations: 4 kB / 0.5661 GB, free: 6.672 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002834/0.492, allocations: 59.89 kB / 0.5662 GB, free: 6.613 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.492, allocations: 0 / 0.5662 GB, free: 6.613 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.492, allocations: 3.938 kB / 0.5662 GB, free: 6.609 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.492, allocations: 0 / 0.5662 GB, free: 6.609 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.492, allocations: 10.39 kB / 0.5662 GB, free: 6.602 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003766/0.4924, allocations: 300.1 kB / 0.5665 GB, free: 6.293 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.4925, allocations: 112.8 kB / 0.5666 GB, free: 6.164 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.135e-05/0.4926, allocations: 1.031 kB / 0.5666 GB, free: 6.164 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/0.4927, allocations: 11.98 kB / 0.5666 GB, free: 6.152 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.455e-05/0.4928, allocations: 15.88 kB / 0.5666 GB, free: 6.137 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.4928, allocations: 8 kB / 0.5666 GB, free: 6.129 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0001331/0.493, allocations: 152.5 kB / 0.5667 GB, free: 5.98 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.493, allocations: 0 / 0.5667 GB, free: 5.98 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0002683/0.4932, allocations: 40 kB / 0.5668 GB, free: 5.941 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 (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.0006943/0.4939, allocations: 0.8429 MB / 0.5676 GB, free: 5.074 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0002418/0.4942, allocations: 119.9 kB / 0.5677 GB, free: 4.957 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4942, allocations: 0 / 0.5677 GB, free: 4.957 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 9.337e-05/0.4943, allocations: 63.94 kB / 0.5678 GB, free: 4.895 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002912/0.4946, allocations: 34.58 kB / 0.5678 GB, free: 4.863 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.4957, allocations: 475.2 kB / 0.5683 GB, free: 4.371 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003532/0.4961, allocations: 0.7555 MB / 0.569 GB, free: 3.59 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.0001056/0.4962, allocations: 27.56 kB / 0.569 GB, free: 3.57 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.4963, allocations: 67.41 kB / 0.5691 GB, free: 3.504 MB / 395.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4963, allocations: 0 / 0.5691 GB, free: 3.504 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02525/0.5216, allocations: 3.531 MB / 0.5725 GB, free: 12 kB / 395.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002833/0.5219, allocations: 136.5 kB / 0.5727 GB, free: 15.82 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.687/2.209, allocations: 0 / 0.5727 GB, free: 15.82 MB / 411.1 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)