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.001762/0.001762, allocations: 181.1 kB / 16.39 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.58/1.58, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0009644/0.0009645, allocations: 93.25 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.465/0.465, allocations: 48.77 MB / 367.9 MB, free: 47.43 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004069/0.0004066, allocations: 8 kB / 438.7 MB, free: 10.9 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1381, allocations: 60.25 MB / 499 MB, free: 14.51 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3773/0.5155, allocations: 86.32 MB / 0.5716 GB, free: 12.26 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000237/0.5158, allocations: 75.97 kB / 0.5717 GB, free: 12.18 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007734/0.5235, allocations: 3.094 MB / 0.5747 GB, free: 9.141 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.5235, allocations: 0 / 0.5747 GB, free: 9.141 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.5236, allocations: 4 kB / 0.5747 GB, free: 9.137 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0005401/0.5241, allocations: 481.5 kB / 0.5751 GB, free: 8.621 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.5242, allocations: 8.031 kB / 0.5751 GB, free: 8.613 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.506e-05/0.5242, allocations: 38.56 kB / 0.5752 GB, free: 8.566 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.115e-05/0.5243, allocations: 31.7 kB / 0.5752 GB, free: 8.535 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000268/0.5245, allocations: 245 kB / 0.5754 GB, free: 8.258 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.5246, allocations: 11.94 kB / 0.5755 GB, free: 8.25 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.769e-05/0.5246, allocations: 12 kB / 0.5755 GB, free: 8.238 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002098/0.5248, allocations: 138 kB / 0.5756 GB, free: 8.094 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.5248, allocations: 4 kB / 0.5756 GB, free: 8.09 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/0.5248, allocations: 4 kB / 0.5756 GB, free: 8.086 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.229e-06/0.5249, allocations: 0 / 0.5756 GB, free: 8.086 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001795/0.525, allocations: 83.91 kB / 0.5757 GB, free: 8.004 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006139/0.5257, allocations: 0.5541 MB / 0.5762 GB, free: 7.391 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000171/0.5259, allocations: 102.5 kB / 0.5763 GB, free: 7.281 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.626e-05/0.5259, allocations: 4 kB / 0.5763 GB, free: 7.277 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.768e-05/0.5259, allocations: 33.52 kB / 0.5764 GB, free: 7.238 MB / 394.7 MB Notification: Performance of pre-optimization done (n=12): time 1.162e-06/0.5259, allocations: 0 / 0.5764 GB, free: 7.238 MB / 394.7 MB Notification: Performance of matching and sorting (n=13): time 0.0007689/0.5267, allocations: 470.3 kB / 0.5768 GB, free: 6.73 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.71e-05/0.5267, allocations: 55.41 kB / 0.5769 GB, free: 6.664 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001593/0.5269, allocations: 186.3 kB / 0.577 GB, free: 6.477 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.438e-05/0.5269, allocations: 33.7 kB / 0.5771 GB, free: 6.438 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.234e-05/0.527, allocations: 131.9 kB / 0.5772 GB, free: 6.305 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.789e-05/0.527, allocations: 51.94 kB / 0.5773 GB, free: 6.254 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.431e-06/0.527, allocations: 0 / 0.5773 GB, free: 6.254 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.473e-05/0.5271, allocations: 334.8 kB / 0.5776 GB, free: 5.918 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.32e-05/0.5272, allocations: 35.98 kB / 0.5776 GB, free: 5.883 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.58e-05/0.5272, allocations: 62.45 kB / 0.5777 GB, free: 5.812 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.932e-05/0.5273, allocations: 43.98 kB / 0.5777 GB, free: 5.77 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.5273, allocations: 4 kB / 0.5777 GB, free: 5.766 MB / 394.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000209/0.5276, allocations: 147.7 kB / 0.5779 GB, free: 5.617 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.5276, allocations: 6.812 kB / 0.5779 GB, free: 5.613 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.5276, allocations: 0 / 0.5779 GB, free: 5.613 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.5276, allocations: 4 kB / 0.5779 GB, free: 5.609 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001747/0.5278, allocations: 43.91 kB / 0.5779 GB, free: 5.566 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.5278, allocations: 8.062 kB / 0.5779 GB, free: 5.559 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001007/0.5279, allocations: 4 kB / 0.5779 GB, free: 5.555 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.827e-06/0.5279, allocations: 0 / 0.5779 GB, free: 5.555 MB / 394.7 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 () * Number of clocked 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.504e-05/0.528, allocations: 134.6 kB / 0.578 GB, free: 5.414 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.542e-05/0.5281, allocations: 15.81 kB / 0.5781 GB, free: 5.398 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002584/0.5283, allocations: 155.1 kB / 0.5782 GB, free: 5.246 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.5283, allocations: 3.984 kB / 0.5782 GB, free: 5.242 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.5283, allocations: 0 / 0.5782 GB, free: 5.242 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.5283, allocations: 0 / 0.5782 GB, free: 5.242 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004302/0.5288, allocations: 470.6 kB / 0.5787 GB, free: 4.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.5288, allocations: 0 / 0.5787 GB, free: 4.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000195/0.529, allocations: 36.36 kB / 0.5787 GB, free: 4.695 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.529, allocations: 2.812 kB / 0.5787 GB, free: 4.695 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.529, allocations: 4 kB / 0.5787 GB, free: 4.691 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.529, allocations: 0 / 0.5787 GB, free: 4.691 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.529, allocations: 5.016 kB / 0.5787 GB, free: 4.688 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003158/0.5294, allocations: 283.2 kB / 0.579 GB, free: 4.395 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.784e-05/0.5294, allocations: 100.9 kB / 0.5791 GB, free: 4.277 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.812e-05/0.5295, allocations: 12 kB / 0.5791 GB, free: 4.266 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001236/0.5296, allocations: 4 kB / 0.5791 GB, free: 4.262 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.664e-05/0.5296, allocations: 18.8 kB / 0.5791 GB, free: 4.246 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-06/0.5297, allocations: 0 / 0.5791 GB, free: 4.246 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001032/0.5298, allocations: 159.9 kB / 0.5793 GB, free: 4.09 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5298, allocations: 0 / 0.5793 GB, free: 4.09 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002571/0.53, allocations: 43.94 kB / 0.5793 GB, free: 4.047 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 (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.0005031/0.5305, allocations: 0.8148 MB / 0.5801 GB, free: 3.207 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002004/0.5308, allocations: 101.2 kB / 0.5802 GB, free: 3.109 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.5308, allocations: 4.125 kB / 0.5802 GB, free: 3.105 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 7.752e-05/0.5308, allocations: 51.92 kB / 0.5802 GB, free: 3.055 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003203/0.5312, allocations: 28.81 kB / 0.5803 GB, free: 3.027 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001628/0.5328, allocations: 1.579 MB / 0.5818 GB, free: 1.395 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001787/0.533, allocations: 0.7399 MB / 0.5825 GB, free: 0.6289 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 7.101e-05/0.5331, allocations: 19.23 kB / 0.5826 GB, free: 0.6133 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.688e-05/0.5332, allocations: 55.42 kB / 0.5826 GB, free: 0.5586 MB / 394.7 MB Notification: Performance of SimCode: time 3.31e-07/0.5332, allocations: 7.562 kB / 0.5826 GB, free: 0.5547 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01539/0.5486, allocations: 3.361 MB / 0.5859 GB, free: 13.3 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001873/0.5488, allocations: 185.5 kB / 0.5861 GB, free: 13.05 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.68/2.229, allocations: 0 / 0.5861 GB, free: 13.05 MB / 410.7 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)