Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 105 kB / 16.41 MB, free: 6.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 187 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.299/1.299, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6801/0.6801, allocations: 91.19 MB / 382.4 MB, free: 7.535 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001547/0.001547, allocations: 87.86 kB / 0.5175 GB, free: 4.129 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3061/0.3077, allocations: 67.67 MB / 0.5836 GB, free: 13.79 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.138/0.4457, allocations: 145.3 MB / 0.7255 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.004161/0.4499, allocations: 3.326 MB / 0.7288 GB, free: 8.934 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003824/0.4503, allocations: 15.88 kB / 0.7288 GB, free: 8.918 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000619/0.451, allocations: 222.6 kB / 0.729 GB, free: 8.699 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001003/0.452, allocations: 493.1 kB / 0.7295 GB, free: 8.215 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009181/0.453, allocations: 390.7 kB / 0.7299 GB, free: 7.832 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007043/0.4537, allocations: 0.7233 MB / 0.7306 GB, free: 7.105 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002041/0.4539, allocations: 116.8 kB / 0.7307 GB, free: 6.992 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006017/0.4545, allocations: 370.4 kB / 0.731 GB, free: 6.629 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004126/0.4549, allocations: 354.6 kB / 0.7314 GB, free: 6.281 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.175e-05/0.455, allocations: 32 kB / 0.7314 GB, free: 6.25 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00107/0.4561, allocations: 0.5693 MB / 0.7319 GB, free: 5.68 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.586e-05/0.4562, allocations: 99.56 kB / 0.732 GB, free: 5.582 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000219/0.4564, allocations: 234.7 kB / 0.7323 GB, free: 5.352 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0009916/0.4574, allocations: 0.7337 MB / 0.733 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.4574, allocations: 0 / 0.733 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.483e-06/0.4574, allocations: 0 / 0.733 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.248e-05/0.4574, allocations: 0 / 0.733 GB, free: 4.621 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001492/0.4589, allocations: 0.8404 MB / 0.7338 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.459, allocations: 11.97 kB / 0.7338 GB, free: 3.711 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.4591, allocations: 56.28 kB / 0.7339 GB, free: 3.656 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006104/0.4597, allocations: 422 kB / 0.7343 GB, free: 3.207 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.83e-05/0.4597, allocations: 21.38 kB / 0.7343 GB, free: 3.184 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.31e-05/0.4598, allocations: 36.38 kB / 0.7343 GB, free: 3.148 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007432/0.4606, allocations: 428.1 kB / 0.7347 GB, free: 2.707 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.4606, allocations: 0 / 0.7347 GB, free: 2.707 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.515e-05/0.4606, allocations: 16 kB / 0.7347 GB, free: 2.691 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.451e-05/0.4606, allocations: 8 kB / 0.7348 GB, free: 2.684 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000683/0.4613, allocations: 374.3 kB / 0.7351 GB, free: 2.32 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002068/0.4634, allocations: 1.849 MB / 0.7369 GB, free: 300 kB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2658/0.7293, allocations: 329.8 kB / 0.7372 GB, free: 154.9 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004759/0.7298, allocations: 170.8 kB / 0.7374 GB, free: 154.9 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00194/0.7317, allocations: 1.53 MB / 0.7389 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004676/0.7322, allocations: 207.7 kB / 0.7391 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=37): time 2.806e-06/0.7322, allocations: 0 / 0.7391 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=37): time 0.001433/0.7337, allocations: 0.6043 MB / 0.7397 GB, free: 153.2 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.634e-05/0.7337, allocations: 59.78 kB / 0.7397 GB, free: 153.2 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003883/0.7341, allocations: 360.1 kB / 0.7401 GB, free: 153 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.042e-05/0.7341, allocations: 32.66 kB / 0.7401 GB, free: 153 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/0.7343, allocations: 227.8 kB / 0.7403 GB, free: 152.8 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.431e-05/0.7344, allocations: 127.9 kB / 0.7404 GB, free: 152.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001123/0.7345, allocations: 72.27 kB / 0.7405 GB, free: 152.6 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.648e-05/0.7346, allocations: 354.4 kB / 0.7409 GB, free: 152.3 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003008/0.7349, allocations: 119.5 kB / 0.741 GB, free: 152.3 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003033/0.7352, allocations: 174.4 kB / 0.7411 GB, free: 152.2 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000589/0.7358, allocations: 339.7 kB / 0.7415 GB, free: 152 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.7358, allocations: 2.234 kB / 0.7415 GB, free: 152 MB / 0.5762 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009584/0.7368, allocations: 469.6 kB / 0.7419 GB, free: 151.8 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.095e-05/0.7368, allocations: 33.42 kB / 0.7419 GB, free: 151.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.7368, allocations: 1.25 kB / 0.7419 GB, free: 151.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002132/0.737, allocations: 44.59 kB / 0.742 GB, free: 151.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002985/0.7374, allocations: 82.75 kB / 0.7421 GB, free: 151.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001025/0.7384, allocations: 1.523 MB / 0.7436 GB, free: 150.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002711/0.7387, allocations: 47.02 kB / 0.7436 GB, free: 150.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.843e-05/0.7387, allocations: 17.09 kB / 0.7436 GB, free: 150.2 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001695/0.7389, allocations: 163.3 kB / 0.7438 GB, free: 150 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.927e-05/0.739, allocations: 40.66 kB / 0.7438 GB, free: 150 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001082/0.7401, allocations: 0.5166 MB / 0.7443 GB, free: 149.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.164e-06/0.7401, allocations: 9.578 kB / 0.7443 GB, free: 149.8 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.7401, allocations: 7.016 kB / 0.7443 GB, free: 149.8 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.7401, allocations: 2.625 kB / 0.7443 GB, free: 149.8 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001595/0.7417, allocations: 0.9617 MB / 0.7453 GB, free: 149.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.7417, allocations: 2.375 kB / 0.7453 GB, free: 149.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002629/0.742, allocations: 62.97 kB / 0.7453 GB, free: 149.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001557/0.7421, allocations: 47.3 kB / 0.7454 GB, free: 149.2 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.496e-05/0.7422, allocations: 10.59 kB / 0.7454 GB, free: 149.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009575/0.7432, allocations: 1.532 MB / 0.7469 GB, free: 147.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.7432, allocations: 0.5312 kB / 0.7469 GB, free: 147.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001276/0.7445, allocations: 0.6567 MB / 0.7475 GB, free: 147.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.872e-05/0.7445, allocations: 118.9 kB / 0.7476 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.338e-05/0.7446, allocations: 19.88 kB / 0.7477 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002446/0.7449, allocations: 15.72 kB / 0.7477 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.745, allocations: 36.03 kB / 0.7477 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.228e-05/0.745, allocations: 14.72 kB / 0.7477 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003173/0.7453, allocations: 268.8 kB / 0.748 GB, free: 147 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7453, allocations: 416 / 0.748 GB, free: 147 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00063/0.746, allocations: 167.2 kB / 0.7481 GB, free: 147 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (flowResistance.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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003934/0.7464, allocations: 244.5 kB / 0.7484 GB, free: 146.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009813/0.7474, allocations: 0.4911 MB / 0.7489 GB, free: 146.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.7474, allocations: 0 / 0.7489 GB, free: 146.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004827/0.7479, allocations: 297.7 kB / 0.7491 GB, free: 146.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007673/0.7487, allocations: 135.2 kB / 0.7493 GB, free: 146.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001493/0.7502, allocations: 0.8627 MB / 0.7501 GB, free: 145.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002096/0.7504, allocations: 0.8199 MB / 0.7509 GB, free: 145.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.7505, allocations: 50.69 kB / 0.751 GB, free: 145.2 MB / 0.5762 GB Notification: Performance of SimCode: time 9.32e-07/0.7505, allocations: 0 / 0.751 GB, free: 145.2 MB / 0.5762 GB Notification: Performance of Templates: time 0.009318/0.7598, allocations: 9.229 MB / 0.76 GB, free: 137 MB / 0.5762 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches