Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.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.001105/0.001105, allocations: 89.06 kB / 19.65 MB, free: 272 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.001176/0.001176, allocations: 169 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 1.052/1.052, allocations: 177.1 MB / 203.4 MB, free: 5.609 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.6688/0.6688, allocations: 118.6 MB / 378.6 MB, free: 1.516 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.SpecificValveType,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.164e-06/2.164e-06, allocations: 0 / 483.6 MB, free: 8.234 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.67e-05/2.886e-05, allocations: 3.578 kB / 483.6 MB, free: 8.23 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType): time 0.01334/0.01337, allocations: 13.49 MB / 497.1 MB, free: 15.13 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.006913/0.02028, allocations: 4.285 MB / 0.4896 GB, free: 12.2 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001142/0.02142, allocations: 77.03 kB / 0.4897 GB, free: 12.16 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001358/0.02278, allocations: 0.7237 MB / 0.4904 GB, free: 11.91 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002905/0.02569, allocations: 1.56 MB / 0.4919 GB, free: 10.93 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00188/0.02756, allocations: 0.809 MB / 0.4927 GB, free: 10.49 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.003764/0.03133, allocations: 3.184 MB / 0.4958 GB, free: 7.996 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005109/0.03184, allocations: 279.8 kB / 0.4961 GB, free: 7.719 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002435/0.03427, allocations: 1.843 MB / 0.4979 GB, free: 6.254 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009539/0.03523, allocations: 0.937 MB / 0.4988 GB, free: 5.453 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001726/0.0354, allocations: 140 kB / 0.499 GB, free: 5.316 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006457/0.03605, allocations: 323.6 kB / 0.4993 GB, free: 5 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002945/0.03634, allocations: 450 kB / 0.4997 GB, free: 4.559 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005273/0.03687, allocations: 0.6739 MB / 0.5003 GB, free: 3.883 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00156/0.03843, allocations: 1.805 MB / 0.5021 GB, free: 2.07 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.03843, allocations: 0 / 0.5021 GB, free: 2.07 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.03843, allocations: 0 / 0.5021 GB, free: 2.07 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.835e-05/0.03845, allocations: 0 / 0.5021 GB, free: 2.07 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 329 * Number of variables: 329 Notification: Performance of Generate backend data structure: time 0.002605/0.04106, allocations: 2.543 MB / 0.5046 GB, free: 15.47 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.0411, allocations: 8.031 kB / 0.5046 GB, free: 15.46 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005608/0.04166, allocations: 434.9 kB / 0.505 GB, free: 15.04 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001414/0.04307, allocations: 1.33 MB / 0.5063 GB, free: 13.66 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.668e-05/0.04313, allocations: 98.97 kB / 0.5064 GB, free: 13.56 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001271/0.04325, allocations: 140.3 kB / 0.5065 GB, free: 13.43 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001286/0.04454, allocations: 1.102 MB / 0.5076 GB, free: 12.26 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/0.04456, allocations: 4 kB / 0.5076 GB, free: 12.26 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.705e-05/0.04463, allocations: 56 kB / 0.5077 GB, free: 12.2 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.263e-05/0.04465, allocations: 32 kB / 0.5077 GB, free: 12.17 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.04566, allocations: 0.7253 MB / 0.5084 GB, free: 11.44 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003811/0.04947, allocations: 3.708 MB / 0.512 GB, free: 7.656 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001283/0.05076, allocations: 0.9307 MB / 0.5129 GB, free: 6.719 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005174/0.05127, allocations: 398.5 kB / 0.5133 GB, free: 6.324 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002377/0.05365, allocations: 1.794 MB / 0.5151 GB, free: 4.504 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007351/0.05439, allocations: 0.5977 MB / 0.5157 GB, free: 3.867 MB / 442.7 MB Notification: Performance of pre-optimization done (n=139): time 4.278e-06/0.05439, allocations: 3.984 kB / 0.5157 GB, free: 3.863 MB / 442.7 MB Notification: Performance of matching and sorting (n=139): time 0.002061/0.05645, allocations: 1.414 MB / 0.517 GB, free: 2.438 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.926e-05/0.05651, allocations: 116.1 kB / 0.5172 GB, free: 2.301 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001002/0.05751, allocations: 1.239 MB / 0.5184 GB, free: 1.039 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.701e-05/0.05757, allocations: 49.7 kB / 0.5184 GB, free: 0.9844 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004692/0.05804, allocations: 0.793 MB / 0.5192 GB, free: 180 kB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002748/0.05831, allocations: 495.8 kB / 0.5197 GB, free: 15.68 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002576/0.05857, allocations: 268.5 kB / 0.5199 GB, free: 15.41 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001822/0.05875, allocations: 0.5199 MB / 0.5204 GB, free: 14.88 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003745/0.05913, allocations: 264.2 kB / 0.5207 GB, free: 14.62 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005562/0.05968, allocations: 0.6714 MB / 0.5213 GB, free: 13.82 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000929/0.06061, allocations: 0.7919 MB / 0.5221 GB, free: 12.96 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.06062, allocations: 4 kB / 0.5221 GB, free: 12.95 MB / 458.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.001452/0.06207, allocations: 1.189 MB / 0.5233 GB, free: 11.73 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.706e-05/0.06212, allocations: 37.69 kB / 0.5233 GB, free: 11.69 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.06213, allocations: 4 kB / 0.5233 GB, free: 11.69 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003427/0.06247, allocations: 107.6 kB / 0.5234 GB, free: 11.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005266/0.063, allocations: 267.6 kB / 0.5237 GB, free: 11.31 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001984/0.06498, allocations: 3.758 MB / 0.5273 GB, free: 7.305 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004043/0.06538, allocations: 123.3 kB / 0.5275 GB, free: 7.184 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.828e-05/0.06545, allocations: 55.98 kB / 0.5275 GB, free: 7.129 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (149): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.0003184/0.06577, allocations: 232.2 kB / 0.5277 GB, free: 6.891 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002017/0.06597, allocations: 230.8 kB / 0.528 GB, free: 6.664 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002131/0.0681, allocations: 1.648 MB / 0.5296 GB, free: 5.004 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.829e-06/0.06811, allocations: 12 kB / 0.5296 GB, free: 4.992 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.06812, allocations: 4 kB / 0.5296 GB, free: 4.988 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.06813, allocations: 11.97 kB / 0.5296 GB, free: 4.977 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002797/0.07093, allocations: 2.452 MB / 0.532 GB, free: 2.449 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.07093, allocations: 128 / 0.532 GB, free: 2.449 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004585/0.07139, allocations: 243.7 kB / 0.5322 GB, free: 2.211 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002495/0.07164, allocations: 119.2 kB / 0.5323 GB, free: 2.086 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.742e-05/0.0717, allocations: 43.98 kB / 0.5324 GB, free: 2.043 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001885/0.07358, allocations: 3.735 MB / 0.536 GB, free: 14.07 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.07358, allocations: 7.938 kB / 0.536 GB, free: 14.06 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001786/0.07537, allocations: 1.564 MB / 0.5376 GB, free: 12.45 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003867/0.07576, allocations: 364.2 kB / 0.5379 GB, free: 12.09 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.026e-05/0.07585, allocations: 31.88 kB / 0.5379 GB, free: 12.06 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002958/0.07614, allocations: 48.03 kB / 0.538 GB, free: 12.01 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001441/0.07629, allocations: 109.1 kB / 0.5381 GB, free: 11.91 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.713e-05/0.07634, allocations: 51.97 kB / 0.5381 GB, free: 11.86 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0006459/0.07699, allocations: 0.7473 MB / 0.5389 GB, free: 11.11 MB / 474.7 MB Notification: Performance of sort global known variables: time 4e-08/0.07699, allocations: 0 / 0.5389 GB, free: 11.11 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0008199/0.07781, allocations: 0.4914 MB / 0.5393 GB, free: 10.62 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance6.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 (137): * Single equations (assignments): 133 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.0008942/0.0787, allocations: 426.3 kB / 0.5397 GB, free: 10.31 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001477/0.08018, allocations: 1.241 MB / 0.541 GB, free: 9.016 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.08018, allocations: 0 / 0.541 GB, free: 9.016 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006894/0.08087, allocations: 0.8185 MB / 0.5418 GB, free: 8.16 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001472/0.08234, allocations: 0.6538 MB / 0.5424 GB, free: 7.527 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003973/0.08632, allocations: 3.058 MB / 0.5454 GB, free: 4.406 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002051/0.08652, allocations: 312 kB / 0.5457 GB, free: 4.074 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0006713/0.08719, allocations: 352.2 kB / 0.546 GB, free: 3.742 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002964/0.08749, allocations: 184.4 kB / 0.5462 GB, free: 3.562 MB / 474.7 MB Notification: Performance of SimCode: time 7.11e-07/0.08749, allocations: 0 / 0.5462 GB, free: 3.562 MB / 474.7 MB Notification: Performance of Templates: time 0.03463/0.1221, allocations: 25.65 MB / 0.5712 GB, free: 10.39 MB / 0.4948 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_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.405640516895801]