Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.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.001529/0.001529, allocations: 102.1 kB / 19.7 MB, free: 2.254 MB / 14.72 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.001673/0.001673, allocations: 219.3 kB / 23.01 MB, free: 4.609 MB / 14.72 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.339/1.339, allocations: 230.6 MB / 256.8 MB, free: 8.051 MB / 206.1 MB " [Timeout remaining time 178] 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.7127/0.7127, allocations: 100.3 MB / 413.5 MB, free: 3.691 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.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.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002387/0.002387, allocations: 87.62 kB / 0.5645 GB, free: 35.61 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1132, allocations: 74.46 MB / 0.6372 GB, free: 7.191 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.4342/0.5474, allocations: 150.3 MB / 0.7839 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.004704/0.5521, allocations: 4.673 MB / 0.7885 GB, free: 15.43 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004756/0.5526, allocations: 40.66 kB / 0.7885 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0007598/0.5533, allocations: 295.4 kB / 0.7888 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001398/0.5547, allocations: 0.6823 MB / 0.7895 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001121/0.5558, allocations: 0.512 MB / 0.79 GB, free: 15 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001046/0.5569, allocations: 0.9995 MB / 0.791 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002086/0.5571, allocations: 104.8 kB / 0.7911 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008966/0.558, allocations: 0.5499 MB / 0.7916 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005106/0.5585, allocations: 470.1 kB / 0.792 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 6.238e-05/0.5586, allocations: 42.88 kB / 0.7921 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0014/0.56, allocations: 0.7927 MB / 0.7929 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.5601, allocations: 122.7 kB / 0.793 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002443/0.5603, allocations: 315.6 kB / 0.7933 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001132/0.5614, allocations: 0.9661 MB / 0.7942 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.5615, allocations: 0 / 0.7942 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.463e-06/0.5615, allocations: 1.094 kB / 0.7942 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 8.746e-06/0.5615, allocations: 0 / 0.7942 GB, free: 14.52 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.001389/0.5629, allocations: 0.9199 MB / 0.7951 GB, free: 13.97 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 2.95e-05/0.5629, allocations: 8.469 kB / 0.7951 GB, free: 13.97 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001131/0.563, allocations: 80.47 kB / 0.7952 GB, free: 13.93 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007834/0.5638, allocations: 485 kB / 0.7957 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/0.5638, allocations: 30.69 kB / 0.7957 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.686e-05/0.5639, allocations: 41.53 kB / 0.7957 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006621/0.5645, allocations: 0.5188 MB / 0.7962 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.5645, allocations: 0 / 0.7962 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.226e-05/0.5646, allocations: 19.62 kB / 0.7963 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/0.5646, allocations: 10.06 kB / 0.7963 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006284/0.5652, allocations: 497 kB / 0.7967 GB, free: 13.6 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002276/0.5675, allocations: 2.145 MB / 0.7988 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006619/0.5681, allocations: 335.6 kB / 0.7992 GB, free: 12.26 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002518/0.5684, allocations: 179.7 kB / 0.7993 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001673/0.5701, allocations: 0.9247 MB / 0.8002 GB, free: 11.97 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.042e-05/0.5701, allocations: 42.14 kB / 0.8003 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 1.322e-06/0.5701, allocations: 1.375 kB / 0.8003 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.0013/0.5714, allocations: 0.6427 MB / 0.8009 GB, free: 11.82 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.299e-05/0.5714, allocations: 61.25 kB / 0.801 GB, free: 11.75 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004246/0.5719, allocations: 482.9 kB / 0.8014 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.312e-05/0.5719, allocations: 35.3 kB / 0.8015 GB, free: 11.61 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001695/0.5721, allocations: 272.3 kB / 0.8017 GB, free: 11.49 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/0.5722, allocations: 169.4 kB / 0.8019 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.684e-05/0.5723, allocations: 82.42 kB / 0.802 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001627/0.5724, allocations: 371.7 kB / 0.8023 GB, free: 11.05 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001996/0.5726, allocations: 127 kB / 0.8024 GB, free: 11.05 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002457/0.5729, allocations: 186.4 kB / 0.8026 GB, free: 11 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004671/0.5734, allocations: 339.3 kB / 0.8029 GB, free: 10.95 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.5734, allocations: 3 kB / 0.8029 GB, free: 10.95 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007528/0.5741, allocations: 0.5047 MB / 0.8034 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.5741, allocations: 8.844 kB / 0.8034 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.5741, allocations: 0 / 0.8034 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002581/0.5744, allocations: 67.8 kB / 0.8035 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002646/0.5747, allocations: 87.72 kB / 0.8036 GB, free: 10.81 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002205/0.5769, allocations: 2.727 MB / 0.8062 GB, free: 8.34 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002217/0.5771, allocations: 39.92 kB / 0.8063 GB, free: 8.316 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.32e-05/0.5771, allocations: 19.14 kB / 0.8063 GB, free: 8.316 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * 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,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000198/0.5773, allocations: 174.8 kB / 0.8065 GB, free: 8.191 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.5774, allocations: 68.77 kB / 0.8065 GB, free: 8.152 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001069/0.5785, allocations: 0.7024 MB / 0.8072 GB, free: 8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/0.5785, allocations: 11.58 kB / 0.8072 GB, free: 7.996 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.5785, allocations: 0 / 0.8072 GB, free: 7.996 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.5785, allocations: 1.828 kB / 0.8072 GB, free: 7.996 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001579/0.5801, allocations: 1.166 MB / 0.8084 GB, free: 7.633 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.5801, allocations: 0 / 0.8084 GB, free: 7.633 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002241/0.5803, allocations: 73.98 kB / 0.8084 GB, free: 7.629 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001901/0.5805, allocations: 68.69 kB / 0.8085 GB, free: 7.609 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.85e-05/0.5805, allocations: 15.94 kB / 0.8085 GB, free: 7.609 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002079/0.5826, allocations: 2.731 MB / 0.8112 GB, free: 5.137 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.5826, allocations: 1.016 kB / 0.8112 GB, free: 5.137 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001026/0.5836, allocations: 0.7696 MB / 0.8119 GB, free: 4.883 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.403e-05/0.5837, allocations: 64 kB / 0.812 GB, free: 4.844 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.401e-05/0.5838, allocations: 18.47 kB / 0.812 GB, free: 4.84 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001996/0.584, allocations: 8.188 kB / 0.812 GB, free: 4.84 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.514e-05/0.5841, allocations: 41.52 kB / 0.8121 GB, free: 4.836 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.556e-05/0.5841, allocations: 18.47 kB / 0.8121 GB, free: 4.836 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003442/0.5844, allocations: 366.7 kB / 0.8124 GB, free: 4.75 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1e-07/0.5844, allocations: 1.203 kB / 0.8124 GB, free: 4.75 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0005733/0.585, allocations: 194.6 kB / 0.8126 GB, free: 4.727 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance.rear.m_flow,flowResistance1.rear.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * 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,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003682/0.5854, allocations: 279 kB / 0.8129 GB, free: 4.586 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0008493/0.5862, allocations: 0.5732 MB / 0.8134 GB, free: 4.309 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.5862, allocations: 2.812 kB / 0.8135 GB, free: 4.309 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005203/0.5867, allocations: 423.1 kB / 0.8139 GB, free: 4.043 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008462/0.5876, allocations: 191.4 kB / 0.814 GB, free: 3.98 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001863/0.5895, allocations: 1.179 MB / 0.8152 GB, free: 3.289 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004641/0.5899, allocations: 0.872 MB / 0.816 GB, free: 2.512 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/0.5901, allocations: 71.03 kB / 0.8161 GB, free: 2.496 MB / 0.5919 GB Notification: Performance of SimCode: time 3.5e-07/0.5901, allocations: 6.656 kB / 0.8161 GB, free: 2.492 MB / 0.5919 GB Notification: Performance of Templates: time 0.01634/0.6064, allocations: 14.59 MB / 0.8304 GB, free: 10.75 MB / 0.6075 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.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: 9.134807548951358]