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.0009809/0.0009809, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 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.0009212/0.0009212, allocations: 173 kB / 23.03 MB, free: 1.543 MB / 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 0.943/0.943, allocations: 177.1 MB / 203.4 MB, free: 5.637 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.6537/0.6537, allocations: 118.6 MB / 378.6 MB, free: 1.488 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.322e-06/1.322e-06, allocations: 0 / 483.6 MB, free: 8.227 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.774e-05/1.907e-05, allocations: 2.312 kB / 483.6 MB, free: 8.223 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.01177/0.01179, allocations: 17.34 MB / 0.4892 GB, free: 12.48 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.007737/0.01953, allocations: 4.918 MB / 0.494 GB, free: 9.047 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001351/0.02088, allocations: 111.6 kB / 0.4941 GB, free: 8.984 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009759/0.02186, allocations: 0.5267 MB / 0.4946 GB, free: 8.699 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002972/0.02483, allocations: 1.938 MB / 0.4965 GB, free: 7.129 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00191/0.02674, allocations: 0.9729 MB / 0.4975 GB, free: 6.406 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.003904/0.03064, allocations: 4.384 MB / 0.5018 GB, free: 2.383 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006171/0.03126, allocations: 380.9 kB / 0.5021 GB, free: 2.02 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002599/0.03386, allocations: 2.2 MB / 0.5043 GB, free: 15.82 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001273/0.03513, allocations: 1.309 MB / 0.5056 GB, free: 14.51 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002635/0.0354, allocations: 195.9 kB / 0.5057 GB, free: 14.32 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007396/0.03614, allocations: 383.6 kB / 0.5061 GB, free: 13.94 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002872/0.03642, allocations: 0.5093 MB / 0.5066 GB, free: 13.43 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006827/0.03711, allocations: 0.9196 MB / 0.5075 GB, free: 12.51 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001824/0.03893, allocations: 2.3 MB / 0.5097 GB, free: 10.2 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.03893, allocations: 0 / 0.5097 GB, free: 10.2 MB / 442.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.03893, allocations: 0 / 0.5097 GB, free: 10.2 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.077e-05/0.03895, allocations: 0 / 0.5097 GB, free: 10.2 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.003052/0.04201, allocations: 3.009 MB / 0.5127 GB, free: 7.129 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.04204, allocations: 12.03 kB / 0.5127 GB, free: 7.117 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009428/0.04299, allocations: 0.5453 MB / 0.5132 GB, free: 6.57 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002041/0.04503, allocations: 1.491 MB / 0.5147 GB, free: 5.035 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.941e-05/0.04513, allocations: 144.1 kB / 0.5148 GB, free: 4.895 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002271/0.04535, allocations: 200.3 kB / 0.515 GB, free: 4.699 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002299/0.04765, allocations: 1.593 MB / 0.5166 GB, free: 3.043 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.232e-05/0.04769, allocations: 192 / 0.5166 GB, free: 3.043 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001209/0.04781, allocations: 76.12 kB / 0.5166 GB, free: 2.969 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-05/0.04784, allocations: 44 kB / 0.5167 GB, free: 2.926 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001887/0.04973, allocations: 1.079 MB / 0.5177 GB, free: 1.844 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006358/0.05609, allocations: 5.09 MB / 0.5227 GB, free: 12.66 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001955/0.05804, allocations: 1.393 MB / 0.5241 GB, free: 11.26 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008498/0.05889, allocations: 0.564 MB / 0.5246 GB, free: 10.69 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003905/0.0628, allocations: 2.476 MB / 0.527 GB, free: 8.184 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001123/0.06392, allocations: 0.8484 MB / 0.5279 GB, free: 7.289 MB / 458.7 MB Notification: Performance of pre-optimization done (n=200): time 3.827e-06/0.06393, allocations: 0 / 0.5279 GB, free: 7.289 MB / 458.7 MB Notification: Performance of matching and sorting (n=200): time 0.003549/0.06748, allocations: 1.993 MB / 0.5298 GB, free: 5.281 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.565e-05/0.06755, allocations: 150.5 kB / 0.53 GB, free: 5.102 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001137/0.06869, allocations: 1.179 MB / 0.5311 GB, free: 3.906 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 9.365e-05/0.06878, allocations: 65.7 kB / 0.5312 GB, free: 3.836 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005897/0.06937, allocations: 0.9587 MB / 0.5321 GB, free: 2.863 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004618/0.06983, allocations: 0.7009 MB / 0.5328 GB, free: 2.156 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004125/0.07025, allocations: 337.2 kB / 0.5331 GB, free: 1.82 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.07035, allocations: 480.8 kB / 0.5336 GB, free: 1.348 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00067/0.07102, allocations: 377.5 kB / 0.5339 GB, free: 0.9727 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009866/0.07201, allocations: 0.9697 MB / 0.5349 GB, free: 15.81 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004657/0.07667, allocations: 1.151 MB / 0.536 GB, free: 14.57 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.147e-06/0.07668, allocations: 8 kB / 0.536 GB, free: 14.56 MB / 474.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.002532/0.07921, allocations: 1.658 MB / 0.5376 GB, free: 12.87 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.892e-05/0.07925, allocations: 37.69 kB / 0.5377 GB, free: 12.82 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.07926, allocations: 8 kB / 0.5377 GB, free: 12.82 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003484/0.08274, allocations: 154.9 kB / 0.5378 GB, free: 12.65 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000982/0.08373, allocations: 387.4 kB / 0.5382 GB, free: 12.27 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006104/0.08983, allocations: 5.623 MB / 0.5437 GB, free: 6.281 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007394/0.09057, allocations: 164.2 kB / 0.5438 GB, free: 6.125 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001267/0.09069, allocations: 87.95 kB / 0.5439 GB, free: 6.039 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.0003925/0.09109, allocations: 256.1 kB / 0.5442 GB, free: 5.777 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003274/0.09141, allocations: 274.7 kB / 0.5444 GB, free: 5.508 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009606/0.101, allocations: 2.472 MB / 0.5468 GB, free: 3.023 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-05/0.101, allocations: 20 kB / 0.5469 GB, free: 3.004 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.101, allocations: 4 kB / 0.5469 GB, free: 3 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-05/0.1011, allocations: 15.89 kB / 0.5469 GB, free: 2.984 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006836/0.1079, allocations: 3.249 MB / 0.5501 GB, free: 15.64 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-05/0.1079, allocations: 4 kB / 0.5501 GB, free: 15.64 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.1089, allocations: 343.7 kB / 0.5504 GB, free: 15.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000593/0.1095, allocations: 182.8 kB / 0.5506 GB, free: 15.11 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001595/0.1097, allocations: 59.91 kB / 0.5506 GB, free: 15.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006433/0.1161, allocations: 5.621 MB / 0.5561 GB, free: 9.066 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.1161, allocations: 8.031 kB / 0.5561 GB, free: 9.059 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003653/0.1198, allocations: 2.143 MB / 0.5582 GB, free: 6.859 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006879/0.1205, allocations: 409.8 kB / 0.5586 GB, free: 6.457 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002004/0.1207, allocations: 44.03 kB / 0.5586 GB, free: 6.414 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006162/0.1213, allocations: 55.97 kB / 0.5587 GB, free: 6.359 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002852/0.1216, allocations: 157.6 kB / 0.5588 GB, free: 6.203 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001274/0.1217, allocations: 71.97 kB / 0.5589 GB, free: 6.133 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0008989/0.1226, allocations: 0.7448 MB / 0.5596 GB, free: 5.395 MB / 490.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1226, allocations: 0 / 0.5596 GB, free: 5.395 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001579/0.1242, allocations: 0.6863 MB / 0.5603 GB, free: 4.707 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.0003625/0.1245, allocations: 202.8 kB / 0.5605 GB, free: 4.496 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002422/0.1269, allocations: 1.772 MB / 0.5622 GB, free: 2.648 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1269, allocations: 0 / 0.5622 GB, free: 2.648 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009992/0.1279, allocations: 1.209 MB / 0.5634 GB, free: 1.383 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00195/0.1299, allocations: 0.8791 MB / 0.5643 GB, free: 0.5234 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004982/0.1349, allocations: 3.839 MB / 0.568 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002554/0.1351, allocations: 365.6 kB / 0.5684 GB, free: 12.22 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0009552/0.1361, allocations: 446.4 kB / 0.5688 GB, free: 11.8 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003703/0.1365, allocations: 232.4 kB / 0.569 GB, free: 11.58 MB / 0.4948 GB Notification: Performance of SimCode: time 7.61e-07/0.1365, allocations: 0 / 0.569 GB, free: 11.58 MB / 0.4948 GB Notification: Performance of Templates: time 0.04339/0.1798, allocations: 38.28 MB / 0.6064 GB, free: 6.055 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.3712687767110765]