Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001799/0.001799, allocations: 120 kB / 17.17 MB, free: 5.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002169/0.002169, allocations: 214.3 kB / 20.13 MB, free: 3.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.542/1.542, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.6595/0.6595, allocations: 100.3 MB / 409.8 MB, free: 5.395 MB / 334.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002524/0.002524, allocations: 79.89 kB / 0.5589 GB, free: 13.97 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4936/0.4961, allocations: 74.42 MB / 0.6316 GB, free: 2.41 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.2444/0.7405, allocations: 173.9 MB / 0.8014 GB, free: 4.953 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.01981/0.7603, allocations: 11.03 MB / 0.8122 GB, free: 9.887 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002247/0.7626, allocations: 63.44 kB / 0.8122 GB, free: 9.824 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.00332/0.7659, allocations: 0.8076 MB / 0.813 GB, free: 9.012 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.006656/0.7725, allocations: 1.69 MB / 0.8147 GB, free: 7.312 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.004649/0.7772, allocations: 1.117 MB / 0.8158 GB, free: 6.195 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.0054/0.7826, allocations: 2.534 MB / 0.8182 GB, free: 3.652 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001165/0.7837, allocations: 297.8 kB / 0.8185 GB, free: 3.32 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003212/0.787, allocations: 1.086 MB / 0.8196 GB, free: 2.23 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003068/0.79, allocations: 1.386 MB / 0.8209 GB, free: 0.8398 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0007494/0.7908, allocations: 144 kB / 0.8211 GB, free: 0.6992 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00675/0.7975, allocations: 1.969 MB / 0.823 GB, free: 14.73 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.001069/0.7986, allocations: 370.6 kB / 0.8233 GB, free: 14.36 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.00229/0.8009, allocations: 0.8008 MB / 0.8241 GB, free: 13.56 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.008116/0.809, allocations: 2.618 MB / 0.8267 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 9.979e-06/0.809, allocations: 0 / 0.8267 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of FrontEnd: time 3.166e-06/0.809, allocations: 0 / 0.8267 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 0.0001254/0.8091, allocations: 0 / 0.8267 GB, free: 10.93 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.006911/0.8161, allocations: 2.081 MB / 0.8287 GB, free: 8.789 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.555e-05/0.8161, allocations: 12.03 kB / 0.8287 GB, free: 8.777 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.532e-05/0.8162, allocations: 30.59 kB / 0.8288 GB, free: 8.746 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002845/0.8165, allocations: 177.8 kB / 0.8289 GB, free: 8.562 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000497/0.817, allocations: 175.9 kB / 0.8291 GB, free: 8.391 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002092/0.819, allocations: 0.9913 MB / 0.8301 GB, free: 7.359 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000108/0.8192, allocations: 90.53 kB / 0.8301 GB, free: 7.27 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002524/0.8194, allocations: 131.9 kB / 0.8303 GB, free: 7.141 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003183/0.8226, allocations: 1.524 MB / 0.8318 GB, free: 5.574 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.825e-05/0.8226, allocations: 0 / 0.8318 GB, free: 5.574 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001217/0.8227, allocations: 48 kB / 0.8318 GB, free: 5.527 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.771e-05/0.8228, allocations: 28 kB / 0.8318 GB, free: 5.5 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00329/0.8261, allocations: 1.665 MB / 0.8335 GB, free: 3.828 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4314/1.257, allocations: 6.232 MB / 0.8395 GB, free: 200.8 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00296/1.26, allocations: 1.182 MB / 0.8407 GB, free: 200.4 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001081/1.262, allocations: 0.6283 MB / 0.8413 GB, free: 200.1 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004411/1.266, allocations: 4.03 MB / 0.8452 GB, free: 196.9 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001196/1.267, allocations: 0.7318 MB / 0.846 GB, free: 196.6 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=128): time 3.917e-06/1.267, allocations: 0 / 0.846 GB, free: 196.6 MB / 0.6544 GB Notification: Performance of matching and sorting (n=129): time 0.006725/1.274, allocations: 3.986 MB / 0.8499 GB, free: 194.3 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.329e-05/1.274, allocations: 64.59 kB / 0.8499 GB, free: 194.2 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007244/1.275, allocations: 0.7113 MB / 0.8506 GB, free: 193.9 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 7.775e-05/1.275, allocations: 49.67 kB / 0.8507 GB, free: 193.8 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003634/1.275, allocations: 0.5321 MB / 0.8512 GB, free: 193.3 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003352/1.275, allocations: 462.6 kB / 0.8516 GB, free: 192.9 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003569/1.276, allocations: 206.4 kB / 0.8518 GB, free: 192.8 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 9.905e-05/1.276, allocations: 347.4 kB / 0.8521 GB, free: 192.5 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008211/1.277, allocations: 0.5176 MB / 0.8527 GB, free: 192.2 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009379/1.278, allocations: 0.6162 MB / 0.8533 GB, free: 191.9 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001972/1.28, allocations: 1.255 MB / 0.8545 GB, free: 191.2 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/1.28, allocations: 0 / 0.8545 GB, free: 191.2 MB / 0.6544 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002657/1.282, allocations: 1.601 MB / 0.856 GB, free: 189.6 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.799e-05/1.282, allocations: 29.7 kB / 0.8561 GB, free: 189.6 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/1.282, allocations: 4 kB / 0.8561 GB, free: 189.5 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004986/1.283, allocations: 152.3 kB / 0.8562 GB, free: 189.4 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008775/1.284, allocations: 247.7 kB / 0.8565 GB, free: 189.2 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003265/1.287, allocations: 2.716 MB / 0.8591 GB, free: 186.3 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007236/1.288, allocations: 59.88 kB / 0.8592 GB, free: 186.3 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001191/1.288, allocations: 55.92 kB / 0.8592 GB, free: 186.2 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000507/1.288, allocations: 285.6 kB / 0.8595 GB, free: 185.9 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000195/1.288, allocations: 123.2 kB / 0.8596 GB, free: 185.8 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003655/1.292, allocations: 2.316 MB / 0.8619 GB, free: 183.5 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.25e-05/1.292, allocations: 12 kB / 0.8619 GB, free: 183.5 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/1.292, allocations: 4 kB / 0.8619 GB, free: 183.5 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.519e-05/1.292, allocations: 9.406 kB / 0.8619 GB, free: 183.5 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004805/1.297, allocations: 3.408 MB / 0.8652 GB, free: 180 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.203e-06/1.297, allocations: 10.7 kB / 0.8652 GB, free: 180 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000874/1.298, allocations: 259.7 kB / 0.8655 GB, free: 179.8 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004241/1.298, allocations: 149.6 kB / 0.8656 GB, free: 179.6 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.683e-05/1.298, allocations: 39.98 kB / 0.8657 GB, free: 179.6 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002124/1.3, allocations: 2.447 MB / 0.8681 GB, free: 177 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/1.3, allocations: 0 / 0.8681 GB, free: 177 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003784/1.304, allocations: 2.6 MB / 0.8706 GB, free: 174.4 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003222/1.305, allocations: 196.2 kB / 0.8708 GB, free: 174.2 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001455/1.305, allocations: 34.56 kB / 0.8708 GB, free: 174.2 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005781/1.305, allocations: 51.95 kB / 0.8709 GB, free: 174.1 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002179/1.306, allocations: 113.1 kB / 0.871 GB, free: 174 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001062/1.306, allocations: 51.98 kB / 0.871 GB, free: 173.9 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0006685/1.306, allocations: 0.5263 MB / 0.8715 GB, free: 173.4 MB / 0.6544 GB Notification: Performance of sort global known variables: time 8e-08/1.306, allocations: 0 / 0.8715 GB, free: 173.4 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001647/1.308, allocations: 0.5111 MB / 0.872 GB, free: 172.9 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance1.rear.m_flow,flowResistance2.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005074/1.313, allocations: 3.616 MB / 0.8756 GB, free: 169.3 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002956/1.316, allocations: 1.55 MB / 0.8771 GB, free: 167.7 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 7.213e-06/1.316, allocations: 4.375 kB / 0.8771 GB, free: 167.7 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001613/1.318, allocations: 0.9196 MB / 0.878 GB, free: 166.8 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002204/1.32, allocations: 403.1 kB / 0.8784 GB, free: 166.4 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01756/1.337, allocations: 10.16 MB / 0.8883 GB, free: 156.1 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007355/1.338, allocations: 1.191 MB / 0.8895 GB, free: 154.9 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001232/1.339, allocations: 352.2 kB / 0.8898 GB, free: 154.6 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008089/1.34, allocations: 0.5813 MB / 0.8904 GB, free: 154 MB / 0.6544 GB Notification: Performance of SimCode: time 1.563e-06/1.34, allocations: 4 kB / 0.8904 GB, free: 154 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07414/1.414, allocations: 38.67 MB / 0.9281 GB, free: 115.6 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.36/14.77, allocations: 6.922 kB / 0.9281 GB, free: 115.6 MB / 0.6544 GB " [Timeout remaining time 645] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --stepSize=0.1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 18.35876043199096] Failed to read output from testmodel.py, exit status != 0: 14.933305605023634 14.949672682 14.136606364 Calling exit ...