Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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.001604/0.001604, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001842/0.001842, allocations: 212.2 kB / 22.24 MB, free: 5.258 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.483/1.483, allocations: 230.6 MB / 256 MB, free: 7.812 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.7958/0.7958, allocations: 100.9 MB / 413.3 MB, free: 2.934 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.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") [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.002761/0.002761, allocations: 91.98 kB / 0.5646 GB, free: 35.5 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1275, allocations: 74.61 MB / 0.6374 GB, free: 6.008 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.5391/0.6666, allocations: 150.9 MB / 0.7848 GB, free: 3.027 MB / 0.5763 GB Notification: Performance of NFInst.instExpressions: time 0.01218/0.6788, allocations: 10.06 MB / 0.7946 GB, free: 2.879 MB / 0.5763 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001784/0.6806, allocations: 68.38 kB / 0.7947 GB, free: 2.879 MB / 0.5763 GB Notification: Performance of NFTyping.typeComponents: time 0.001977/0.6825, allocations: 0.716 MB / 0.7954 GB, free: 2.859 MB / 0.5763 GB Notification: Performance of NFTyping.typeBindings: time 0.004321/0.6869, allocations: 1.685 MB / 0.797 GB, free: 2.801 MB / 0.5763 GB Notification: Performance of NFTyping.typeClassSections: time 0.003317/0.6902, allocations: 1.134 MB / 0.7982 GB, free: 2.777 MB / 0.5763 GB Notification: Performance of NFFlatten.flatten: time 0.003863/0.694, allocations: 2.546 MB / 0.8006 GB, free: 2.773 MB / 0.5763 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006909/0.6947, allocations: 281.4 kB / 0.8009 GB, free: 2.68 MB / 0.5763 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002593/0.6973, allocations: 1.085 MB / 0.802 GB, free: 2.648 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00217/0.6995, allocations: 1.312 MB / 0.8032 GB, free: 2.461 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 0.0002199/0.6997, allocations: 142.6 kB / 0.8034 GB, free: 2.461 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003834/0.7036, allocations: 1.677 MB / 0.805 GB, free: 2.426 MB / 0.5763 GB Notification: Performance of NFScalarize.scalarize: time 0.0004138/0.704, allocations: 364.5 kB / 0.8054 GB, free: 2.363 MB / 0.5763 GB Notification: Performance of NFVerifyModel.verify: time 0.001062/0.705, allocations: 0.6719 MB / 0.806 GB, free: 2.188 MB / 0.5763 GB Notification: Performance of NFConvertDAE.convert: time 0.003727/0.7088, allocations: 2.587 MB / 0.8086 GB, free: 1.359 MB / 0.5763 GB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.7088, allocations: 0 / 0.8086 GB, free: 1.359 MB / 0.5763 GB Notification: Performance of FrontEnd: time 1.853e-06/0.7088, allocations: 0.9062 kB / 0.8086 GB, free: 1.359 MB / 0.5763 GB Notification: Performance of Transformations before backend: time 3.392e-05/0.7088, allocations: 0 / 0.8086 GB, free: 1.359 MB / 0.5763 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.003559/0.7124, allocations: 1.998 MB / 0.8105 GB, free: 16.2 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.7124, allocations: 13.19 kB / 0.8105 GB, free: 16.2 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003918/0.7128, allocations: 188.5 kB / 0.8107 GB, free: 16.1 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001548/0.7143, allocations: 0.9039 MB / 0.8116 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.379e-05/0.7144, allocations: 88.12 kB / 0.8117 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001742/0.7146, allocations: 124.8 kB / 0.8118 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00249/0.7171, allocations: 1.551 MB / 0.8133 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.875e-05/0.7171, allocations: 3.188 kB / 0.8133 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001083/0.7172, allocations: 51.81 kB / 0.8133 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.7172, allocations: 27.88 kB / 0.8134 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002498/0.7197, allocations: 1.699 MB / 0.815 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006379/0.7261, allocations: 3.524 MB / 0.8185 GB, free: 12.5 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002194/0.7283, allocations: 1.192 MB / 0.8196 GB, free: 12 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001029/0.7293, allocations: 0.6348 MB / 0.8203 GB, free: 11.75 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004054/0.7334, allocations: 2.063 MB / 0.8223 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001222/0.7346, allocations: 0.737 MB / 0.823 GB, free: 10.4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=128): time 3.276e-06/0.7346, allocations: 0 / 0.823 GB, free: 10.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=129): time 0.00716/0.7418, allocations: 3.784 MB / 0.8267 GB, free: 8.441 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.84e-05/0.7418, allocations: 70.73 kB / 0.8268 GB, free: 8.371 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000745/0.7426, allocations: 0.6538 MB / 0.8274 GB, free: 8 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 8.675e-05/0.7427, allocations: 46.61 kB / 0.8274 GB, free: 7.953 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004805/0.7432, allocations: 0.5476 MB / 0.828 GB, free: 7.465 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003882/0.7435, allocations: 461.5 kB / 0.8284 GB, free: 7.07 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003207/0.7439, allocations: 206.7 kB / 0.8286 GB, free: 6.953 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001721/0.744, allocations: 350.6 kB / 0.8289 GB, free: 6.617 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009239/0.745, allocations: 0.5447 MB / 0.8295 GB, free: 6.32 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/0.746, allocations: 0.6605 MB / 0.8301 GB, free: 5.93 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002105/0.7481, allocations: 1.25 MB / 0.8313 GB, free: 5.234 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.7481, allocations: 0.9062 kB / 0.8313 GB, free: 5.234 MB / 0.5919 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003053/0.7512, allocations: 1.634 MB / 0.8329 GB, free: 4.379 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.139e-05/0.7512, allocations: 37.95 kB / 0.833 GB, free: 4.344 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.7512, allocations: 2.25 kB / 0.833 GB, free: 4.344 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005228/0.7517, allocations: 159.4 kB / 0.8331 GB, free: 4.273 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008723/0.7526, allocations: 250.2 kB / 0.8334 GB, free: 4.219 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003906/0.7565, allocations: 2.562 MB / 0.8359 GB, free: 2.156 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006538/0.7572, allocations: 55.88 kB / 0.8359 GB, free: 2.125 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001045/0.7573, allocations: 49.34 kB / 0.836 GB, free: 2.109 MB / 0.5919 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 (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 (126): * Single equations (assignments): 124 * 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 {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005387/0.7578, allocations: 288.5 kB / 0.8362 GB, free: 1.895 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002897/0.7581, allocations: 121.8 kB / 0.8364 GB, free: 1.832 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004034/0.7621, allocations: 2.328 MB / 0.8386 GB, free: 0.5195 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-06/0.7621, allocations: 14.06 kB / 0.8387 GB, free: 0.5195 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.7621, allocations: 3 kB / 0.8387 GB, free: 0.5195 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.729e-05/0.7622, allocations: 7.969 kB / 0.8387 GB, free: 0.5117 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005663/0.7678, allocations: 3.065 MB / 0.8417 GB, free: 14.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.764e-06/0.7678, allocations: 1.281 kB / 0.8417 GB, free: 14.68 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000995/0.7688, allocations: 265.8 kB / 0.8419 GB, free: 14.51 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004501/0.7693, allocations: 135.4 kB / 0.842 GB, free: 14.38 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000104/0.7694, allocations: 43.98 kB / 0.8421 GB, free: 14.34 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002914/0.7723, allocations: 2.289 MB / 0.8443 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.7723, allocations: 8.344 kB / 0.8443 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004738/0.777, allocations: 2.603 MB / 0.8469 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002542/0.7773, allocations: 114.2 kB / 0.847 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001623/0.7775, allocations: 40.94 kB / 0.847 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005556/0.778, allocations: 47.95 kB / 0.8471 GB, free: 9.129 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002261/0.7782, allocations: 117.9 kB / 0.8472 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001182/0.7784, allocations: 55.97 kB / 0.8472 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006533/0.779, allocations: 483.9 kB / 0.8477 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of sort global known variables: time 9e-08/0.779, allocations: 0 / 0.8477 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001586/0.7806, allocations: 0.5072 MB / 0.8482 GB, free: 7.988 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (141): * Single equations (assignments): 138 * 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 {(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.001019/0.7816, allocations: 0.574 MB / 0.8487 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002951/0.7846, allocations: 1.581 MB / 0.8503 GB, free: 5.906 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.7846, allocations: 4.125 kB / 0.8503 GB, free: 5.902 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.00165/0.7862, allocations: 0.9358 MB / 0.8512 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001588/0.7878, allocations: 341.1 kB / 0.8515 GB, free: 4.664 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005465/0.7933, allocations: 2.658 MB / 0.8541 GB, free: 1.973 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007309/0.794, allocations: 0.6014 MB / 0.8547 GB, free: 1.34 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001179/0.7952, allocations: 344.2 kB / 0.855 GB, free: 1.047 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004361/0.7956, allocations: 146.5 kB / 0.8552 GB, free: 0.9102 MB / 0.6075 GB Notification: Performance of SimCode: time 9.11e-07/0.7956, allocations: 0 / 0.8552 GB, free: 0.9102 MB / 0.6075 GB Notification: Performance of Templates: time 0.04613/0.8418, allocations: 27.75 MB / 0.8823 GB, free: 5.625 MB / 0.6388 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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: 7.070375133305788]