Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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.001387/0.001387, allocations: 89.06 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.001522/0.001522, allocations: 177.3 kB / 23.02 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.9839/0.9839, allocations: 177.1 MB / 203.4 MB, free: 5.648 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 0.6361/0.6361, allocations: 118.7 MB / 378.6 MB, free: 1.512 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/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_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_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.836e-06/2.836e-06, allocations: 0 / 483.6 MB, free: 8.254 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.538e-05/3.821e-05, allocations: 6.141 kB / 483.6 MB, free: 8.25 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.01812/0.01816, allocations: 17.34 MB / 0.4892 GB, free: 12.5 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.01218/0.03034, allocations: 4.903 MB / 0.494 GB, free: 9.082 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004374/0.03471, allocations: 111.9 kB / 0.4941 GB, free: 9.02 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002583/0.0373, allocations: 0.5337 MB / 0.4946 GB, free: 8.727 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008398/0.04569, allocations: 1.943 MB / 0.4965 GB, free: 7.176 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003468/0.04916, allocations: 0.9611 MB / 0.4975 GB, free: 6.465 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.006945/0.05611, allocations: 4.392 MB / 0.5018 GB, free: 2.434 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007613/0.05687, allocations: 380.7 kB / 0.5021 GB, free: 2.07 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00319/0.06006, allocations: 2.207 MB / 0.5043 GB, free: 15.86 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001355/0.06141, allocations: 1.305 MB / 0.5056 GB, free: 14.55 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002247/0.06164, allocations: 192 kB / 0.5057 GB, free: 14.36 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008379/0.06248, allocations: 379.7 kB / 0.5061 GB, free: 13.99 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002776/0.06275, allocations: 0.5054 MB / 0.5066 GB, free: 13.48 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000754/0.06351, allocations: 0.9274 MB / 0.5075 GB, free: 12.55 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002023/0.06553, allocations: 2.292 MB / 0.5097 GB, free: 10.25 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.06554, allocations: 8 kB / 0.5098 GB, free: 10.25 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.06554, allocations: 4 kB / 0.5098 GB, free: 10.24 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.995e-05/0.06558, allocations: 0 / 0.5098 GB, free: 10.24 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.003158/0.06874, allocations: 2.998 MB / 0.5127 GB, free: 7.184 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.06877, allocations: 8.031 kB / 0.5127 GB, free: 7.176 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007197/0.06949, allocations: 0.5531 MB / 0.5132 GB, free: 6.621 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001541/0.07103, allocations: 1.491 MB / 0.5147 GB, free: 5.086 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.417e-05/0.07111, allocations: 152.1 kB / 0.5148 GB, free: 4.938 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001702/0.07128, allocations: 204.2 kB / 0.515 GB, free: 4.738 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001778/0.07306, allocations: 1.581 MB / 0.5166 GB, free: 3.094 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.936e-05/0.07309, allocations: 8.125 kB / 0.5166 GB, free: 3.086 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001009/0.07319, allocations: 80.12 kB / 0.5167 GB, free: 3.008 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.749e-05/0.07321, allocations: 44 kB / 0.5167 GB, free: 2.965 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001463/0.07468, allocations: 1.072 MB / 0.5177 GB, free: 1.891 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005198/0.07987, allocations: 5.086 MB / 0.5227 GB, free: 12.71 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001611/0.08149, allocations: 1.401 MB / 0.5241 GB, free: 11.3 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000641/0.08213, allocations: 0.5639 MB / 0.5246 GB, free: 10.73 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002997/0.08512, allocations: 2.468 MB / 0.527 GB, free: 8.234 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008912/0.08601, allocations: 0.8523 MB / 0.5279 GB, free: 7.336 MB / 458.7 MB Notification: Performance of pre-optimization done (n=200): time 3.176e-06/0.08602, allocations: 0 / 0.5279 GB, free: 7.336 MB / 458.7 MB Notification: Performance of matching and sorting (n=200): time 0.002749/0.08877, allocations: 1.997 MB / 0.5298 GB, free: 5.324 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.283e-05/0.08883, allocations: 150.5 kB / 0.53 GB, free: 5.145 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008811/0.08971, allocations: 1.179 MB / 0.5311 GB, free: 3.949 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.782e-05/0.08979, allocations: 61.7 kB / 0.5312 GB, free: 3.883 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004838/0.09027, allocations: 0.9509 MB / 0.5321 GB, free: 2.918 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004371/0.09071, allocations: 0.7048 MB / 0.5328 GB, free: 2.207 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003097/0.09102, allocations: 341.2 kB / 0.5331 GB, free: 1.867 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.09112, allocations: 476.8 kB / 0.5336 GB, free: 1.398 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000511/0.09163, allocations: 373.5 kB / 0.5339 GB, free: 1.027 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009198/0.09255, allocations: 0.9775 MB / 0.5349 GB, free: 15.86 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001295/0.09385, allocations: 1.147 MB / 0.536 GB, free: 14.62 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.677e-06/0.09385, allocations: 4 kB / 0.536 GB, free: 14.61 MB / 474.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.001937/0.09579, allocations: 1.662 MB / 0.5376 GB, free: 12.92 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.452e-05/0.09583, allocations: 37.69 kB / 0.5377 GB, free: 12.88 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.09584, allocations: 4 kB / 0.5377 GB, free: 12.87 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003968/0.09623, allocations: 162.9 kB / 0.5378 GB, free: 12.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007186/0.09695, allocations: 387.4 kB / 0.5382 GB, free: 12.32 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002456/0.09941, allocations: 5.627 MB / 0.5437 GB, free: 6.324 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005304/0.09994, allocations: 160.4 kB / 0.5438 GB, free: 6.168 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001002/0.1, allocations: 87.95 kB / 0.5439 GB, free: 6.082 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.0003313/0.1004, allocations: 260.3 kB / 0.5442 GB, free: 5.816 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002433/0.1006, allocations: 274.7 kB / 0.5444 GB, free: 5.547 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002839/0.1035, allocations: 2.469 MB / 0.5468 GB, free: 3.059 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/0.1035, allocations: 20 kB / 0.5469 GB, free: 3.039 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1035, allocations: 4 kB / 0.5469 GB, free: 3.035 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.435e-05/0.1035, allocations: 15.89 kB / 0.5469 GB, free: 3.02 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003582/0.1071, allocations: 3.257 MB / 0.5501 GB, free: 15.67 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.1071, allocations: 4 kB / 0.5501 GB, free: 15.66 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006256/0.1077, allocations: 335.6 kB / 0.5504 GB, free: 15.34 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003291/0.108, allocations: 178.9 kB / 0.5506 GB, free: 15.15 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-05/0.1081, allocations: 59.91 kB / 0.5506 GB, free: 15.09 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002303/0.1104, allocations: 5.625 MB / 0.5561 GB, free: 9.102 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1104, allocations: 0 / 0.5561 GB, free: 9.102 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002347/0.1128, allocations: 2.143 MB / 0.5582 GB, free: 6.902 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004248/0.1132, allocations: 413.8 kB / 0.5586 GB, free: 6.496 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001299/0.1133, allocations: 43.98 kB / 0.5586 GB, free: 6.453 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003708/0.1137, allocations: 48.17 kB / 0.5587 GB, free: 6.406 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002027/0.1139, allocations: 153.7 kB / 0.5588 GB, free: 6.254 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.87e-05/0.114, allocations: 71.97 kB / 0.5589 GB, free: 6.184 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0005903/0.1146, allocations: 0.7487 MB / 0.5596 GB, free: 5.441 MB / 490.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1146, allocations: 0 / 0.5596 GB, free: 5.441 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001056/0.1156, allocations: 0.6863 MB / 0.5603 GB, free: 4.754 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.0003877/0.116, allocations: 198.8 kB / 0.5605 GB, free: 4.547 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001792/0.1178, allocations: 1.777 MB / 0.5622 GB, free: 2.695 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.1178, allocations: 8.312 kB / 0.5622 GB, free: 2.688 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009762/0.1188, allocations: 1.211 MB / 0.5634 GB, free: 1.418 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001982/0.1208, allocations: 0.8808 MB / 0.5643 GB, free: 0.5625 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004837/0.1256, allocations: 3.832 MB / 0.568 GB, free: 12.65 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002385/0.1258, allocations: 365.6 kB / 0.5684 GB, free: 12.26 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0008969/0.1267, allocations: 453.2 kB / 0.5688 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000368/0.1271, allocations: 228.4 kB / 0.569 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of SimCode: time 6.51e-07/0.1271, allocations: 0 / 0.569 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of Templates: time 0.04309/0.1702, allocations: 38.29 MB / 0.6064 GB, free: 6.059 MB / 0.5261 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_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.644015481695533]