Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.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.Processes.Tests.Flow_Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.m_flow|flowResistance1.m_flow|flowResistance2.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance") translateModel(ThermofluidStream.Processes.Tests.Flow_Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.m_flow|flowResistance1.m_flow|flowResistance2.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008862/0.0008863, allocations: 178.5 kB / 15.43 MB, free: 6.203 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.238/1.238, allocations: 225.7 MB / 241.9 MB, free: 400 kB / 186.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.0007734/0.0007734, allocations: 90.06 kB / 293.1 MB, free: 12.9 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.6134/0.6134, allocations: 90.98 MB / 435.2 MB, free: 24.4 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002857/0.0002858, allocations: 11.98 kB / 0.503 GB, free: 9.406 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2825/0.2828, allocations: 69.09 MB / 0.5704 GB, free: 45.68 MB / 442.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Flow_Resistance): time 0.134/0.4169, allocations: 148.8 MB / 0.7157 GB, free: 6.543 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.008397/0.4253, allocations: 9.6 MB / 0.7251 GB, free: 12.34 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000443/0.4258, allocations: 8 kB / 0.7251 GB, free: 12.33 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.001027/0.4268, allocations: 430 kB / 0.7255 GB, free: 11.91 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.001396/0.4282, allocations: 0.649 MB / 0.7262 GB, free: 11.25 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001103/0.4293, allocations: 458.5 kB / 0.7266 GB, free: 10.8 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.00118/0.4305, allocations: 1.308 MB / 0.7279 GB, free: 9.492 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003961/0.4309, allocations: 304.1 kB / 0.7282 GB, free: 9.195 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005437/0.4315, allocations: 366.6 kB / 0.7285 GB, free: 8.836 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007882/0.4323, allocations: 0.5723 MB / 0.7291 GB, free: 8.262 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 8.619e-05/0.4324, allocations: 32 kB / 0.7291 GB, free: 8.23 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001655/0.434, allocations: 0.9005 MB / 0.73 GB, free: 7.328 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0001327/0.4342, allocations: 131.4 kB / 0.7301 GB, free: 7.199 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0003535/0.4345, allocations: 360.1 kB / 0.7305 GB, free: 6.84 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.001423/0.436, allocations: 1.168 MB / 0.7316 GB, free: 5.668 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.436, allocations: 0 / 0.7316 GB, free: 5.668 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.193e-06/0.436, allocations: 0 / 0.7316 GB, free: 5.668 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.583e-05/0.436, allocations: 0 / 0.7316 GB, free: 5.668 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001784/0.4378, allocations: 0.959 MB / 0.7325 GB, free: 4.656 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.4379, allocations: 15.98 kB / 0.7325 GB, free: 4.641 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001285/0.438, allocations: 68.09 kB / 0.7326 GB, free: 4.574 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005247/0.4385, allocations: 443 kB / 0.733 GB, free: 4.102 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.409e-05/0.4386, allocations: 37.69 kB / 0.7331 GB, free: 4.066 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.4387, allocations: 64.28 kB / 0.7331 GB, free: 4.004 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0011/0.4398, allocations: 0.7561 MB / 0.7339 GB, free: 3.242 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.4398, allocations: 3.938 kB / 0.7339 GB, free: 3.238 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.266e-05/0.4399, allocations: 24 kB / 0.7339 GB, free: 3.215 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.75e-05/0.4399, allocations: 33.31 kB / 0.7339 GB, free: 3.184 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001209/0.4411, allocations: 0.8561 MB / 0.7348 GB, free: 2.324 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003431/0.4446, allocations: 3.252 MB / 0.7379 GB, free: 14.72 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/0.4456, allocations: 0.7022 MB / 0.7386 GB, free: 14.01 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005675/0.4462, allocations: 414.8 kB / 0.739 GB, free: 13.6 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002175/0.4484, allocations: 2.196 MB / 0.7412 GB, free: 11.13 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.294e-05/0.4484, allocations: 39.12 kB / 0.7412 GB, free: 11.09 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=60): time 1.834e-06/0.4484, allocations: 0 / 0.7412 GB, free: 11.09 MB / 0.5417 GB Notification: Performance of matching and sorting (n=61): time 0.003741/0.4522, allocations: 2.319 MB / 0.7435 GB, free: 8.656 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.674e-05/0.4522, allocations: 63.91 kB / 0.7435 GB, free: 8.582 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002753/0.4525, allocations: 284.6 kB / 0.7438 GB, free: 8.301 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.022e-05/0.4526, allocations: 37.7 kB / 0.7438 GB, free: 8.258 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.4527, allocations: 260.5 kB / 0.7441 GB, free: 7.996 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001449/0.4529, allocations: 212.9 kB / 0.7443 GB, free: 7.785 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.014e-05/0.4529, allocations: 8 kB / 0.7443 GB, free: 7.777 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001265/0.453, allocations: 350.8 kB / 0.7446 GB, free: 7.426 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003816/0.4534, allocations: 257 kB / 0.7449 GB, free: 7.176 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004098/0.4538, allocations: 325.5 kB / 0.7452 GB, free: 6.844 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008566/0.4547, allocations: 0.6079 MB / 0.7458 GB, free: 6.223 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.4547, allocations: 3.938 kB / 0.7458 GB, free: 6.219 MB / 0.5417 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001331/0.456, allocations: 0.878 MB / 0.7466 GB, free: 5.332 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.4561, allocations: 4 kB / 0.7466 GB, free: 5.328 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.4561, allocations: 4 kB / 0.7466 GB, free: 5.324 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001591/0.4577, allocations: 402.8 kB / 0.747 GB, free: 4.93 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002707/0.458, allocations: 71.88 kB / 0.7471 GB, free: 4.859 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001172/0.4592, allocations: 1.084 MB / 0.7482 GB, free: 3.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003072/0.4595, allocations: 40.02 kB / 0.7482 GB, free: 3.711 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.947e-05/0.4595, allocations: 23.98 kB / 0.7482 GB, free: 3.688 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,26)} Notification: Performance of prepare postOptimizeDAE: time 0.0002355/0.4598, allocations: 201.8 kB / 0.7484 GB, free: 3.48 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.316e-05/0.4598, allocations: 39.53 kB / 0.7484 GB, free: 3.441 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001743/0.4616, allocations: 1.023 MB / 0.7494 GB, free: 2.414 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.566e-05/0.4616, allocations: 11.98 kB / 0.7495 GB, free: 2.402 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.4616, allocations: 0 / 0.7495 GB, free: 2.402 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.4616, allocations: 0 / 0.7495 GB, free: 2.402 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002581/0.4642, allocations: 1.842 MB / 0.7513 GB, free: 0.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.4643, allocations: 0 / 0.7513 GB, free: 0.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003746/0.4646, allocations: 95.88 kB / 0.7513 GB, free: 416 kB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004804/0.4651, allocations: 197.6 kB / 0.7515 GB, free: 216 kB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.009e-05/0.4652, allocations: 15.98 kB / 0.7516 GB, free: 200 kB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002738/0.4679, allocations: 2.492 MB / 0.754 GB, free: 13.57 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.4679, allocations: 0 / 0.754 GB, free: 13.57 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001909/0.4699, allocations: 1.37 MB / 0.7553 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 9.677e-05/0.47, allocations: 112.6 kB / 0.7554 GB, free: 12.05 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.645e-05/0.47, allocations: 12 kB / 0.7554 GB, free: 12.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003274/0.4704, allocations: 39.92 kB / 0.7555 GB, free: 12 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.4705, allocations: 56.47 kB / 0.7555 GB, free: 11.94 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.912e-05/0.4705, allocations: 19.98 kB / 0.7556 GB, free: 11.92 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0001916/0.4707, allocations: 218.9 kB / 0.7558 GB, free: 11.71 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.3e-07/0.4708, allocations: 4 kB / 0.7558 GB, free: 11.7 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0006446/0.4714, allocations: 251.9 kB / 0.756 GB, free: 11.46 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (flowResistance.m_flow,flowResistance1.m_flow,flowResistance2.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 (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,13,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004528/0.4719, allocations: 344 kB / 0.7563 GB, free: 11.11 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001314/0.4732, allocations: 0.7503 MB / 0.7571 GB, free: 10.36 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4732, allocations: 0 / 0.7571 GB, free: 10.36 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0009753/0.4742, allocations: 0.6374 MB / 0.7577 GB, free: 9.703 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007337/0.4749, allocations: 138.7 kB / 0.7578 GB, free: 9.57 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002038/0.477, allocations: 1.651 MB / 0.7594 GB, free: 7.895 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004255/0.4774, allocations: 0.922 MB / 0.7603 GB, free: 6.949 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0003753/0.4778, allocations: 132.1 kB / 0.7605 GB, free: 6.816 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001408/0.4779, allocations: 51.41 kB / 0.7605 GB, free: 6.766 MB / 0.5573 GB Notification: Performance of SimCode: time 4.9e-07/0.478, allocations: 0 / 0.7605 GB, free: 6.766 MB / 0.5573 GB Notification: Performance of Templates: time 0.1913/0.6692, allocations: 13.06 MB / 0.7733 GB, free: 165.7 MB / 0.5573 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Processes.Tests.Flow_Resistance_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches