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.001438/0.001438, allocations: 92.7 kB / 19.44 MB, free: 324 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.001765/0.001765, allocations: 161.3 kB / 22.75 MB, free: 1.656 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.493/1.493, allocations: 177.1 MB / 203.1 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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 1.065/1.065, allocations: 118.6 MB / 378.2 MB, free: 1.5 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 1.713e-06/1.713e-06, allocations: 0 / 482.9 MB, free: 8.273 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.06e-05/3.231e-05, allocations: 3.625 kB / 482.9 MB, free: 8.27 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.07689/0.07693, allocations: 60.78 MB / 0.5309 GB, free: 4.125 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.02788/0.1048, allocations: 16.27 MB / 0.5468 GB, free: 3.809 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003585/0.1084, allocations: 111 kB / 0.5469 GB, free: 3.699 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00394/0.1123, allocations: 1.113 MB / 0.548 GB, free: 2.578 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01052/0.1229, allocations: 3.127 MB / 0.5511 GB, free: 15.43 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006136/0.129, allocations: 1.646 MB / 0.5527 GB, free: 13.78 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.008196/0.1372, allocations: 4.39 MB / 0.557 GB, free: 9.367 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001472/0.1387, allocations: 387.3 kB / 0.5573 GB, free: 8.961 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006585/0.1452, allocations: 2.376 MB / 0.5597 GB, free: 6.578 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002944/0.1482, allocations: 1.301 MB / 0.5609 GB, free: 5.273 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007264/0.1489, allocations: 192 kB / 0.5611 GB, free: 5.086 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005304/0.1542, allocations: 1.512 MB / 0.5626 GB, free: 3.57 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008895/0.1551, allocations: 0.5054 MB / 0.5631 GB, free: 3.062 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002395/0.1575, allocations: 0.9274 MB / 0.564 GB, free: 2.133 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009969/0.1675, allocations: 3.971 MB / 0.5679 GB, free: 14.15 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1675, allocations: 0 / 0.5679 GB, free: 14.15 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.754e-06/0.1675, allocations: 0 / 0.5679 GB, free: 14.15 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001775/0.1677, allocations: 0 / 0.5679 GB, free: 14.15 MB / 0.4948 GB 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.008211/0.1759, allocations: 3.052 MB / 0.5708 GB, free: 11.04 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.1759, allocations: 12.03 kB / 0.5709 GB, free: 11.03 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001805/0.1777, allocations: 0.557 MB / 0.5714 GB, free: 10.47 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003623/0.1813, allocations: 1.496 MB / 0.5729 GB, free: 8.938 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001638/0.1815, allocations: 144.1 kB / 0.573 GB, free: 8.797 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003793/0.1819, allocations: 196.3 kB / 0.5732 GB, free: 8.605 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004743/0.1866, allocations: 2.239 MB / 0.5754 GB, free: 6.316 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.183e-05/0.1867, allocations: 4.188 kB / 0.5754 GB, free: 6.312 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002095/0.1869, allocations: 84.12 kB / 0.5755 GB, free: 6.23 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.567e-05/0.1869, allocations: 44 kB / 0.5755 GB, free: 6.188 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004731/0.1917, allocations: 2.294 MB / 0.5777 GB, free: 3.891 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0126/0.2043, allocations: 5.138 MB / 0.5828 GB, free: 14.67 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004294/0.2086, allocations: 1.789 MB / 0.5845 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001812/0.2104, allocations: 0.8815 MB / 0.5854 GB, free: 11.99 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007456/0.2178, allocations: 2.812 MB / 0.5881 GB, free: 9.152 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002266/0.2201, allocations: 1.113 MB / 0.5892 GB, free: 8 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=200): time 5.079e-06/0.2201, allocations: 4 kB / 0.5892 GB, free: 7.996 MB / 0.5105 GB Notification: Performance of matching and sorting (n=200): time 0.007268/0.2274, allocations: 2.812 MB / 0.5919 GB, free: 5.172 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001362/0.2275, allocations: 158.5 kB / 0.5921 GB, free: 4.984 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002022/0.2295, allocations: 1.205 MB / 0.5933 GB, free: 3.773 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001537/0.2297, allocations: 61.7 kB / 0.5933 GB, free: 3.707 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001127/0.2308, allocations: 0.9073 MB / 0.5942 GB, free: 2.789 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008017/0.2316, allocations: 0.697 MB / 0.5949 GB, free: 2.086 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005792/0.2322, allocations: 327.5 kB / 0.5952 GB, free: 1.762 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.00017/0.2324, allocations: 305.1 kB / 0.5955 GB, free: 1.461 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001509/0.2339, allocations: 0.6615 MB / 0.5961 GB, free: 0.793 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002137/0.236, allocations: 1.193 MB / 0.5973 GB, free: 15.45 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003345/0.2393, allocations: 1.66 MB / 0.5989 GB, free: 13.71 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/0.2394, allocations: 4 kB / 0.5989 GB, free: 13.71 MB / 0.5261 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005312/0.2447, allocations: 2.24 MB / 0.6011 GB, free: 11.44 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.412e-05/0.2447, allocations: 37.69 kB / 0.6012 GB, free: 11.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.763e-05/0.2447, allocations: 4 kB / 0.6012 GB, free: 11.39 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008741/0.2456, allocations: 182.4 kB / 0.6013 GB, free: 11.21 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001536/0.2472, allocations: 391.4 kB / 0.6017 GB, free: 10.82 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005425/0.2526, allocations: 4.447 MB / 0.6061 GB, free: 6.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001641/0.2542, allocations: 169.5 kB / 0.6062 GB, free: 5.906 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002314/0.2545, allocations: 83.97 kB / 0.6063 GB, free: 5.824 MB / 0.5261 GB 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.0009316/0.2554, allocations: 357.5 kB / 0.6066 GB, free: 5.465 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006712/0.2561, allocations: 282.7 kB / 0.6069 GB, free: 5.188 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006902/0.263, allocations: 3.101 MB / 0.6099 GB, free: 2.172 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.817e-05/0.263, allocations: 20 kB / 0.61 GB, free: 2.152 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.263, allocations: 4 kB / 0.61 GB, free: 2.148 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.882e-05/0.263, allocations: 15.89 kB / 0.61 GB, free: 2.133 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008859/0.2719, allocations: 4.06 MB / 0.6139 GB, free: 14 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.647e-06/0.2719, allocations: 0 / 0.6139 GB, free: 14 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001462/0.2734, allocations: 387.6 kB / 0.6143 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007639/0.2741, allocations: 186.3 kB / 0.6145 GB, free: 13.43 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001724/0.2743, allocations: 71.95 kB / 0.6146 GB, free: 13.36 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005401/0.2797, allocations: 4.44 MB / 0.6189 GB, free: 8.613 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.2797, allocations: 0 / 0.6189 GB, free: 8.613 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007194/0.2869, allocations: 3.299 MB / 0.6221 GB, free: 5.273 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001082/0.288, allocations: 445.8 kB / 0.6225 GB, free: 4.836 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002558/0.2882, allocations: 43.95 kB / 0.6226 GB, free: 4.793 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008681/0.2891, allocations: 59.97 kB / 0.6226 GB, free: 4.734 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003709/0.2895, allocations: 165.8 kB / 0.6228 GB, free: 4.57 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001875/0.2897, allocations: 83.94 kB / 0.6229 GB, free: 4.488 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001331/0.291, allocations: 0.827 MB / 0.6237 GB, free: 3.668 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1e-07/0.291, allocations: 0 / 0.6237 GB, free: 3.668 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.002428/0.2934, allocations: 0.8655 MB / 0.6245 GB, free: 2.801 MB / 0.5417 GB 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 (213): * Single equations (assignments): 208 * 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.001405/0.2948, allocations: 0.7816 MB / 0.6253 GB, free: 2.027 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004447/0.2993, allocations: 2.151 MB / 0.6274 GB, free: 15.82 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.2993, allocations: 0 / 0.6274 GB, free: 15.82 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002414/0.3017, allocations: 1.3 MB / 0.6287 GB, free: 14.48 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004345/0.306, allocations: 0.8864 MB / 0.6295 GB, free: 13.62 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0106/0.3166, allocations: 4.33 MB / 0.6338 GB, free: 9.211 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00117/0.3178, allocations: 0.9113 MB / 0.6346 GB, free: 8.258 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001843/0.3196, allocations: 495.4 kB / 0.6351 GB, free: 7.883 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006279/0.3203, allocations: 236.4 kB / 0.6353 GB, free: 7.652 MB / 0.5573 GB Notification: Performance of SimCode: time 1.303e-06/0.3203, allocations: 0 / 0.6353 GB, free: 7.652 MB / 0.5573 GB Notification: Performance of Templates: time 0.2454/0.5657, allocations: 44.43 MB / 0.6787 GB, free: 147.1 MB / 0.5573 GB " [Timeout remaining time 659] 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=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.923375135054812]