Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009024/0.0009024, allocations: 178.9 kB / 15.43 MB, free: 6.215 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.199/1.199, allocations: 225.7 MB / 241.9 MB, free: 14.46 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008033/0.0008033, allocations: 100 kB / 293 MB, free: 4.793 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.6266/0.6266, allocations: 90.98 MB / 435.2 MB, free: 32.86 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002832/0.0002833, allocations: 8 kB / 0.503 GB, free: 4.953 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2924, allocations: 69.11 MB / 0.5704 GB, free: 34.06 MB / 442.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.1313/0.4237, allocations: 138.4 MB / 0.7056 GB, free: 2.75 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.005831/0.4296, allocations: 6.472 MB / 0.7119 GB, free: 11.77 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003698/0.4299, allocations: 11.94 kB / 0.7119 GB, free: 11.76 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0006405/0.4306, allocations: 242.7 kB / 0.7122 GB, free: 11.52 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.001221/0.4318, allocations: 0.614 MB / 0.7128 GB, free: 10.91 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008746/0.4327, allocations: 454.5 kB / 0.7132 GB, free: 10.46 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.0009943/0.4337, allocations: 1.245 MB / 0.7144 GB, free: 9.211 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002155/0.434, allocations: 129.7 kB / 0.7145 GB, free: 9.09 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007359/0.4347, allocations: 442.1 kB / 0.715 GB, free: 8.656 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005065/0.4352, allocations: 454.3 kB / 0.7154 GB, free: 8.211 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 4.42e-05/0.4353, allocations: 20 kB / 0.7154 GB, free: 8.191 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001453/0.4367, allocations: 0.8901 MB / 0.7163 GB, free: 7.301 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 7.59e-05/0.4368, allocations: 83.55 kB / 0.7164 GB, free: 7.219 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0002296/0.4371, allocations: 280.3 kB / 0.7166 GB, free: 6.938 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.001076/0.4381, allocations: 0.9367 MB / 0.7176 GB, free: 6 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.4382, allocations: 0 / 0.7176 GB, free: 6 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.152e-06/0.4382, allocations: 3.938 kB / 0.7176 GB, free: 5.996 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.023e-06/0.4382, allocations: 0 / 0.7176 GB, free: 5.996 MB / 0.5105 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.001221/0.4394, allocations: 0.7875 MB / 0.7183 GB, free: 5.164 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.4394, allocations: 11.98 kB / 0.7183 GB, free: 5.152 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.888e-05/0.4395, allocations: 56.28 kB / 0.7184 GB, free: 5.098 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000394/0.4399, allocations: 383.7 kB / 0.7188 GB, free: 4.684 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.056e-05/0.44, allocations: 29.38 kB / 0.7188 GB, free: 4.656 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.457e-05/0.4401, allocations: 48.27 kB / 0.7188 GB, free: 4.609 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006777/0.4407, allocations: 462.5 kB / 0.7193 GB, free: 4.148 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.4408, allocations: 4 kB / 0.7193 GB, free: 4.145 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.542e-05/0.4408, allocations: 17.41 kB / 0.7193 GB, free: 4.129 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/0.4408, allocations: 15.94 kB / 0.7193 GB, free: 4.113 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006918/0.4415, allocations: 491.8 kB / 0.7198 GB, free: 3.633 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002157/0.4437, allocations: 2.172 MB / 0.7219 GB, free: 1.219 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008089/0.4445, allocations: 0.5449 MB / 0.7224 GB, free: 0.6641 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003693/0.4449, allocations: 270.5 kB / 0.7227 GB, free: 408 kB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008368/0.4457, allocations: 0.6006 MB / 0.7233 GB, free: 15.69 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.086e-05/0.4458, allocations: 39.12 kB / 0.7233 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=59): time 2.314e-06/0.4458, allocations: 0 / 0.7233 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of matching and sorting (n=59): time 0.001658/0.4474, allocations: 0.9864 MB / 0.7243 GB, free: 14.61 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.297e-05/0.4475, allocations: 63.97 kB / 0.7243 GB, free: 14.53 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002937/0.4478, allocations: 321.7 kB / 0.7246 GB, free: 14.21 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.099e-05/0.4478, allocations: 33.7 kB / 0.7247 GB, free: 14.17 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.4479, allocations: 204.9 kB / 0.7249 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001292/0.4481, allocations: 197 kB / 0.7251 GB, free: 13.77 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.233e-05/0.4481, allocations: 11.94 kB / 0.7251 GB, free: 13.76 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.4482, allocations: 358.8 kB / 0.7254 GB, free: 13.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003015/0.4485, allocations: 189 kB / 0.7256 GB, free: 13.21 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002901/0.4488, allocations: 197 kB / 0.7258 GB, free: 13.02 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006505/0.4495, allocations: 452 kB / 0.7262 GB, free: 12.58 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.4495, allocations: 3.938 kB / 0.7262 GB, free: 12.57 MB / 0.5261 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009233/0.4504, allocations: 0.6017 MB / 0.7268 GB, free: 11.96 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.4505, allocations: 4 kB / 0.7268 GB, free: 11.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.4505, allocations: 3.938 kB / 0.7268 GB, free: 11.95 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002692/0.4508, allocations: 61.67 kB / 0.7269 GB, free: 11.88 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002884/0.4511, allocations: 87.89 kB / 0.727 GB, free: 11.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001826/0.4529, allocations: 2.72 MB / 0.7296 GB, free: 8.809 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002262/0.4531, allocations: 35.72 kB / 0.7296 GB, free: 8.773 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.715e-05/0.4532, allocations: 20.88 kB / 0.7297 GB, free: 8.754 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (53): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0001768/0.4534, allocations: 169.7 kB / 0.7298 GB, free: 8.578 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.346e-05/0.4534, allocations: 51.38 kB / 0.7299 GB, free: 8.527 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00134/0.4548, allocations: 0.7719 MB / 0.7306 GB, free: 7.758 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.139e-05/0.4548, allocations: 15.98 kB / 0.7306 GB, free: 7.742 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.4548, allocations: 0 / 0.7306 GB, free: 7.742 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.4548, allocations: 0 / 0.7306 GB, free: 7.742 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00199/0.4568, allocations: 1.462 MB / 0.7321 GB, free: 6.215 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.4569, allocations: 7.984 kB / 0.7321 GB, free: 6.207 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002945/0.4572, allocations: 91.89 kB / 0.7322 GB, free: 6.117 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000201/0.4574, allocations: 69.72 kB / 0.7322 GB, free: 6.043 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.217e-05/0.4574, allocations: 19.98 kB / 0.7323 GB, free: 6.023 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001756/0.4592, allocations: 2.721 MB / 0.7349 GB, free: 3.027 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.4592, allocations: 0 / 0.7349 GB, free: 3.027 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001445/0.4606, allocations: 1.05 MB / 0.7359 GB, free: 1.953 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 9.307e-05/0.4607, allocations: 132.5 kB / 0.7361 GB, free: 1.805 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.953e-05/0.4608, allocations: 16 kB / 0.7361 GB, free: 1.789 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002279/0.461, allocations: 19.84 kB / 0.7361 GB, free: 1.77 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.747e-05/0.4612, allocations: 56.36 kB / 0.7361 GB, free: 1.711 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-05/0.4612, allocations: 24 kB / 0.7362 GB, free: 1.688 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002058/0.4614, allocations: 231.2 kB / 0.7364 GB, free: 1.465 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.1e-07/0.4614, allocations: 4 kB / 0.7364 GB, free: 1.461 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0005628/0.462, allocations: 211.8 kB / 0.7366 GB, free: 1.254 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (59): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0003725/0.4624, allocations: 287.6 kB / 0.7369 GB, free: 0.9688 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001127/0.4635, allocations: 0.8188 MB / 0.7377 GB, free: 116 kB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.4635, allocations: 0 / 0.7377 GB, free: 116 kB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0006988/0.4642, allocations: 0.6054 MB / 0.7383 GB, free: 15.47 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008028/0.465, allocations: 150.8 kB / 0.7384 GB, free: 15.32 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001519/0.4666, allocations: 1.291 MB / 0.7397 GB, free: 14 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003592/0.4669, allocations: 0.8557 MB / 0.7405 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0003062/0.4673, allocations: 108.5 kB / 0.7406 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/0.4674, allocations: 63.36 kB / 0.7407 GB, free: 12.96 MB / 0.5417 GB Notification: Performance of SimCode: time 4.31e-07/0.4674, allocations: 0 / 0.7407 GB, free: 12.96 MB / 0.5417 GB Notification: Performance of Templates: time 0.01588/0.4833, allocations: 10.87 MB / 0.7513 GB, free: 2.172 MB / 0.5417 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches