Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.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.0009019/0.0009019, allocations: 73.97 kB / 20.66 MB, free: 3.844 MB / 18.57 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.001292/0.001292, allocations: 169.4 kB / 24.06 MB, free: 456 kB / 18.57 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.005/1.005, allocations: 177.1 MB / 204.5 MB, free: 5.516 MB / 186.7 MB " [Timeout remaining time 179] 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.6786/0.6786, allocations: 118.6 MB / 379.7 MB, free: 1.352 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.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: translateModel(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.153e-06/1.153e-06, allocations: 0 / 484.8 MB, free: 8.145 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.538e-05/1.653e-05, allocations: 10.08 kB / 484.9 MB, free: 8.137 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.01857/0.01859, allocations: 17.12 MB / 0.4902 GB, free: 12.4 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.00833/0.02692, allocations: 4.885 MB / 0.495 GB, free: 8.973 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001589/0.02851, allocations: 112.1 kB / 0.4951 GB, free: 8.91 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001024/0.02953, allocations: 0.5342 MB / 0.4956 GB, free: 8.617 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003695/0.03323, allocations: 1.944 MB / 0.4975 GB, free: 7.176 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002324/0.03555, allocations: 0.9616 MB / 0.4984 GB, free: 6.465 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.004767/0.04032, allocations: 4.391 MB / 0.5027 GB, free: 2.414 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006061/0.04092, allocations: 383.3 kB / 0.5031 GB, free: 2.012 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002742/0.04366, allocations: 2.201 MB / 0.5052 GB, free: 15.8 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001164/0.04483, allocations: 1.308 MB / 0.5065 GB, free: 14.49 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002013/0.04503, allocations: 192 kB / 0.5067 GB, free: 14.3 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008121/0.04584, allocations: 387.6 kB / 0.5071 GB, free: 13.93 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002896/0.04613, allocations: 0.5016 MB / 0.5076 GB, free: 13.42 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009123/0.04704, allocations: 0.9274 MB / 0.5085 GB, free: 12.49 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001815/0.04886, allocations: 2.292 MB / 0.5107 GB, free: 10.19 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.04886, allocations: 0 / 0.5107 GB, free: 10.19 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.04886, allocations: 3.938 kB / 0.5107 GB, free: 10.19 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.04e-05/0.04888, allocations: 4 kB / 0.5107 GB, free: 10.18 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 479 * Number of variables: 479 Notification: Performance of Generate backend data structure: time 0.002861/0.05174, allocations: 3.032 MB / 0.5137 GB, free: 7.09 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.041e-05/0.05177, allocations: 8.031 kB / 0.5137 GB, free: 7.082 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007012/0.05248, allocations: 0.5493 MB / 0.5142 GB, free: 6.531 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001584/0.05406, allocations: 1.487 MB / 0.5157 GB, free: 5 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.973e-05/0.05413, allocations: 140.1 kB / 0.5158 GB, free: 4.863 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001648/0.05429, allocations: 204.3 kB / 0.516 GB, free: 4.664 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.05563, allocations: 1.437 MB / 0.5174 GB, free: 3.164 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.738e-05/0.05565, allocations: 192 / 0.5174 GB, free: 3.164 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.052e-05/0.05574, allocations: 84.06 kB / 0.5175 GB, free: 3.082 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.334e-05/0.05577, allocations: 48 kB / 0.5175 GB, free: 3.035 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000925/0.05669, allocations: 0.8292 MB / 0.5183 GB, free: 2.203 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004793/0.06149, allocations: 4.862 MB / 0.5231 GB, free: 13.25 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001191/0.06268, allocations: 1.283 MB / 0.5243 GB, free: 11.96 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004432/0.06312, allocations: 481.5 kB / 0.5248 GB, free: 11.49 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002824/0.06594, allocations: 2.476 MB / 0.5272 GB, free: 8.984 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007125/0.06666, allocations: 0.7895 MB / 0.528 GB, free: 8.148 MB / 458.7 MB Notification: Performance of pre-optimization done (n=200): time 3.436e-06/0.06666, allocations: 0 / 0.528 GB, free: 8.148 MB / 458.7 MB Notification: Performance of matching and sorting (n=200): time 0.002221/0.06888, allocations: 1.762 MB / 0.5297 GB, free: 6.371 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.894e-05/0.06894, allocations: 158.5 kB / 0.5299 GB, free: 6.184 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007187/0.06966, allocations: 1.158 MB / 0.531 GB, free: 5.008 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.696e-05/0.06974, allocations: 61.7 kB / 0.5311 GB, free: 4.941 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000476/0.07021, allocations: 0.9663 MB / 0.532 GB, free: 3.961 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003455/0.07056, allocations: 0.7047 MB / 0.5327 GB, free: 3.25 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003073/0.07086, allocations: 349 kB / 0.533 GB, free: 2.902 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.567e-05/0.07096, allocations: 484.7 kB / 0.5335 GB, free: 2.426 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003223/0.07128, allocations: 293.5 kB / 0.5338 GB, free: 2.133 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005733/0.07186, allocations: 0.907 MB / 0.5346 GB, free: 1.035 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000925/0.07278, allocations: 1.006 MB / 0.5356 GB, free: 15.93 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.07279, allocations: 0 / 0.5356 GB, free: 15.93 MB / 474.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.001782/0.07457, allocations: 1.498 MB / 0.5371 GB, free: 14.4 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.359e-05/0.0746, allocations: 33.7 kB / 0.5371 GB, free: 14.36 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.07461, allocations: 4 kB / 0.5371 GB, free: 14.36 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003359/0.07495, allocations: 158.9 kB / 0.5373 GB, free: 14.19 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006964/0.07564, allocations: 387.4 kB / 0.5376 GB, free: 13.81 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002423/0.07807, allocations: 5.532 MB / 0.5431 GB, free: 7.938 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006002/0.07867, allocations: 161.8 kB / 0.5432 GB, free: 7.781 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.545e-05/0.07875, allocations: 71.91 kB / 0.5433 GB, free: 7.711 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (214): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003445/0.0791, allocations: 270.7 kB / 0.5435 GB, free: 7.438 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002589/0.07935, allocations: 270.7 kB / 0.5438 GB, free: 7.172 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00249/0.08184, allocations: 2.355 MB / 0.5461 GB, free: 4.797 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.08185, allocations: 20 kB / 0.5461 GB, free: 4.777 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.08186, allocations: 4 kB / 0.5461 GB, free: 4.773 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.641e-05/0.08188, allocations: 11.95 kB / 0.5461 GB, free: 4.762 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003065/0.08494, allocations: 2.889 MB / 0.5489 GB, free: 1.789 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.209e-06/0.08495, allocations: 7.938 kB / 0.549 GB, free: 1.781 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006181/0.08556, allocations: 335.6 kB / 0.5493 GB, free: 1.453 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003143/0.08588, allocations: 163 kB / 0.5494 GB, free: 1.281 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.782e-05/0.08596, allocations: 63.95 kB / 0.5495 GB, free: 1.219 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002766/0.08872, allocations: 5.541 MB / 0.5549 GB, free: 11.34 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.08873, allocations: 4 kB / 0.5549 GB, free: 11.34 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002048/0.09077, allocations: 1.916 MB / 0.5568 GB, free: 9.363 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005435/0.09132, allocations: 405.9 kB / 0.5572 GB, free: 8.965 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001387/0.09146, allocations: 40 kB / 0.5572 GB, free: 8.926 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003739/0.09183, allocations: 47.92 kB / 0.5572 GB, free: 8.879 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001834/0.09201, allocations: 161.6 kB / 0.5574 GB, free: 8.719 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.2e-05/0.09208, allocations: 59.95 kB / 0.5575 GB, free: 8.66 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.000463/0.09255, allocations: 0.686 MB / 0.5581 GB, free: 7.98 MB / 490.7 MB Notification: Performance of sort global known variables: time 7e-08/0.09255, allocations: 0 / 0.5581 GB, free: 7.98 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001072/0.09362, allocations: 0.6902 MB / 0.5588 GB, free: 7.289 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.rear.m_flow,flowResistance2.rear.m_flow,flowResistance4.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 (195): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000266/0.09389, allocations: 202.7 kB / 0.559 GB, free: 7.078 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001431/0.09532, allocations: 1.621 MB / 0.5606 GB, free: 5.383 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.09532, allocations: 0 / 0.5606 GB, free: 5.383 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008403/0.09616, allocations: 1.149 MB / 0.5617 GB, free: 4.176 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001943/0.0981, allocations: 0.8822 MB / 0.5626 GB, free: 3.316 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004997/0.1031, allocations: 3.805 MB / 0.5663 GB, free: 15.43 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000262/0.1034, allocations: 369.5 kB / 0.5666 GB, free: 15.04 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001019/0.1044, allocations: 451.9 kB / 0.5671 GB, free: 14.62 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001178/0.1056, allocations: 0.7555 MB / 0.5678 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of SimCode: time 7.41e-07/0.1056, allocations: 0 / 0.5678 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of Templates: time 0.04151/0.1471, allocations: 39.58 MB / 0.6064 GB, free: 7.059 MB / 0.5261 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.631604962050915]