Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008711/0.0008713, allocations: 178.9 kB / 15.43 MB, free: 5.773 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.215/1.215, allocations: 225.7 MB / 241.9 MB, free: 14.64 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.0007473/0.0007473, allocations: 99.73 kB / 293.1 MB, free: 4.836 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.624/0.624, allocations: 90.98 MB / 435.2 MB, free: 32.79 MB / 346.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002747/0.0002748, allocations: 8 kB / 0.503 GB, free: 4.945 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2971/0.2974, allocations: 69.1 MB / 0.5704 GB, free: 33.94 MB / 442.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.1483/0.4458, allocations: 162.6 MB / 0.7293 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.0136/0.4594, allocations: 15.35 MB / 0.7443 GB, free: 9.543 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001174/0.4606, allocations: 23.88 kB / 0.7443 GB, free: 9.52 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.001866/0.4625, allocations: 0.7036 MB / 0.745 GB, free: 8.812 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.003602/0.4661, allocations: 1.535 MB / 0.7465 GB, free: 7.27 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.002444/0.4686, allocations: 0.9588 MB / 0.7474 GB, free: 6.309 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.003251/0.4719, allocations: 3.306 MB / 0.7506 GB, free: 2.992 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006018/0.4725, allocations: 408.5 kB / 0.751 GB, free: 2.605 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00141/0.4739, allocations: 0.8519 MB / 0.7518 GB, free: 1.75 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00172/0.4756, allocations: 1.281 MB / 0.7531 GB, free: 476 kB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0002626/0.4759, allocations: 63.94 kB / 0.7532 GB, free: 412 kB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003832/0.4797, allocations: 1.93 MB / 0.755 GB, free: 14.47 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0003523/0.4801, allocations: 254.8 kB / 0.7553 GB, free: 14.22 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0008896/0.481, allocations: 0.7052 MB / 0.756 GB, free: 13.5 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.003493/0.4845, allocations: 2.407 MB / 0.7583 GB, free: 11.09 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.4845, allocations: 4 kB / 0.7583 GB, free: 11.09 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.613e-06/0.4845, allocations: 0 / 0.7583 GB, free: 11.09 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 6.495e-05/0.4846, allocations: 0 / 0.7583 GB, free: 11.09 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.003367/0.488, allocations: 1.66 MB / 0.76 GB, free: 9.371 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.488, allocations: 19.98 kB / 0.76 GB, free: 9.352 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003294/0.4884, allocations: 151.2 kB / 0.7601 GB, free: 9.203 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.4895, allocations: 0.7251 MB / 0.7608 GB, free: 8.438 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.381e-05/0.4895, allocations: 86.75 kB / 0.7609 GB, free: 8.352 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002031/0.4898, allocations: 124.3 kB / 0.761 GB, free: 8.23 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002313/0.4921, allocations: 1.398 MB / 0.7624 GB, free: 6.805 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.12e-05/0.4921, allocations: 0 / 0.7624 GB, free: 6.805 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.679e-05/0.4922, allocations: 52 kB / 0.7624 GB, free: 6.754 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.257e-05/0.4922, allocations: 28 kB / 0.7625 GB, free: 6.727 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002535/0.4948, allocations: 1.684 MB / 0.7641 GB, free: 5.035 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006338/0.5011, allocations: 6.31 MB / 0.7703 GB, free: 14.07 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002316/0.5035, allocations: 1.467 MB / 0.7717 GB, free: 12.59 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001072/0.5045, allocations: 0.7464 MB / 0.7724 GB, free: 11.84 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004439/0.509, allocations: 4.116 MB / 0.7765 GB, free: 7.273 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001231/0.5102, allocations: 0.7707 MB / 0.7772 GB, free: 6.492 MB / 0.573 GB Notification: Performance of pre-optimization done (n=134): time 2.735e-06/0.5103, allocations: 0 / 0.7772 GB, free: 6.492 MB / 0.573 GB Notification: Performance of matching and sorting (n=135): time 0.006993/0.5173, allocations: 4.103 MB / 0.7812 GB, free: 2.297 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/0.5173, allocations: 76.66 kB / 0.7813 GB, free: 2.211 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005707/0.5179, allocations: 0.5355 MB / 0.7818 GB, free: 1.668 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 7.012e-05/0.518, allocations: 49.7 kB / 0.7819 GB, free: 1.613 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002885/0.5183, allocations: 468.6 kB / 0.7823 GB, free: 1.148 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003045/0.5186, allocations: 457.2 kB / 0.7827 GB, free: 0.6953 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.769e-05/0.5187, allocations: 20 kB / 0.7828 GB, free: 0.6758 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001541/0.5188, allocations: 406.7 kB / 0.7831 GB, free: 276 kB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2/0.7188, allocations: 0.5458 MB / 0.7837 GB, free: 169.5 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001223/0.72, allocations: 0.659 MB / 0.7843 GB, free: 169.5 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002097/0.7222, allocations: 1.327 MB / 0.7856 GB, free: 169.4 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.7222, allocations: 5.969 kB / 0.7856 GB, free: 169.4 MB / 0.573 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002974/0.7252, allocations: 1.64 MB / 0.7872 GB, free: 169.2 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 3.635e-05/0.7252, allocations: 33.8 kB / 0.7873 GB, free: 169.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.7252, allocations: 4.188 kB / 0.7873 GB, free: 169.2 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005185/0.7258, allocations: 165.8 kB / 0.7874 GB, free: 169.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009374/0.7267, allocations: 247.5 kB / 0.7877 GB, free: 169.2 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003223/0.73, allocations: 2.538 MB / 0.7901 GB, free: 167.9 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008143/0.7308, allocations: 97.03 kB / 0.7902 GB, free: 167.9 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001438/0.7309, allocations: 50.06 kB / 0.7903 GB, free: 167.9 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 3 * 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 {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004583/0.7314, allocations: 276.5 kB / 0.7905 GB, free: 167.7 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001588/0.7316, allocations: 98.88 kB / 0.7906 GB, free: 167.7 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003729/0.7353, allocations: 2.17 MB / 0.7928 GB, free: 167.6 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-05/0.7353, allocations: 16.72 kB / 0.7928 GB, free: 167.6 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.7354, allocations: 6.062 kB / 0.7928 GB, free: 167.6 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.598e-05/0.7354, allocations: 11.62 kB / 0.7928 GB, free: 167.5 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005316/0.7407, allocations: 3.566 MB / 0.7963 GB, free: 167.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.7407, allocations: 0.6094 kB / 0.7963 GB, free: 167.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009772/0.7417, allocations: 284.7 kB / 0.7965 GB, free: 167.2 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004177/0.7421, allocations: 140.8 kB / 0.7967 GB, free: 167.1 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000138/0.7423, allocations: 55.92 kB / 0.7967 GB, free: 167.1 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002364/0.7447, allocations: 2.231 MB / 0.7989 GB, free: 165.8 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.7447, allocations: 0.7812 kB / 0.7989 GB, free: 165.8 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004794/0.7495, allocations: 2.782 MB / 0.8016 GB, free: 164.8 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000331/0.7498, allocations: 174.7 kB / 0.8018 GB, free: 164.7 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001846/0.75, allocations: 28.19 kB / 0.8018 GB, free: 164.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008816/0.7509, allocations: 98.53 kB / 0.8019 GB, free: 164.6 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003325/0.7513, allocations: 124.2 kB / 0.802 GB, free: 164.6 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001546/0.7514, allocations: 56.31 kB / 0.8021 GB, free: 164.6 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0006148/0.752, allocations: 377.5 kB / 0.8024 GB, free: 164.4 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.5e-07/0.7521, allocations: 1.719 kB / 0.8024 GB, free: 164.4 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001732/0.7538, allocations: 0.5231 MB / 0.803 GB, free: 164.4 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (flowResistance1.rear.m_flow,flowResistance2.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 (152): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008138/0.7546, allocations: 0.5886 MB / 0.8035 GB, free: 164.2 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.002655/0.7573, allocations: 1.779 MB / 0.8053 GB, free: 163.4 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.7573, allocations: 2.438 kB / 0.8053 GB, free: 163.4 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001441/0.7587, allocations: 1.102 MB / 0.8063 GB, free: 162.9 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001499/0.7603, allocations: 327.5 kB / 0.8067 GB, free: 162.8 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003329/0.7636, allocations: 3.085 MB / 0.8097 GB, free: 161.1 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005243/0.7641, allocations: 1.142 MB / 0.8108 GB, free: 160.4 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0009226/0.7651, allocations: 334.4 kB / 0.8111 GB, free: 160.3 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003133/0.7654, allocations: 137 kB / 0.8112 GB, free: 160.2 MB / 0.573 GB Notification: Performance of SimCode: time 7.52e-07/0.7654, allocations: 0 / 0.8112 GB, free: 160.2 MB / 0.573 GB Notification: Performance of Templates: time 0.03511/0.8005, allocations: 25.06 MB / 0.8357 GB, free: 156.1 MB / 0.573 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches