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.001673/0.001673, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001995/0.001995, allocations: 215.5 kB / 22.25 MB, free: 5.082 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.499/1.499, allocations: 230.6 MB / 256 MB, free: 8.023 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.812/0.812, allocations: 100.3 MB / 412.7 MB, free: 3.688 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.002653/0.002653, allocations: 88.47 kB / 0.5638 GB, free: 35.65 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1267, allocations: 74.46 MB / 0.6365 GB, free: 7.176 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.539/0.6657, allocations: 174.4 MB / 0.8068 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01254/0.6783, allocations: 11.06 MB / 0.8176 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001859/0.6801, allocations: 65.97 kB / 0.8176 GB, free: 12.85 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.00242/0.6825, allocations: 0.7988 MB / 0.8184 GB, free: 12.33 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005253/0.6878, allocations: 1.703 MB / 0.8201 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003482/0.6913, allocations: 1.144 MB / 0.8212 GB, free: 10.5 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003588/0.6949, allocations: 2.561 MB / 0.8237 GB, free: 9.141 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006405/0.6955, allocations: 294.1 kB / 0.824 GB, free: 8.926 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001889/0.6974, allocations: 1.082 MB / 0.825 GB, free: 8.445 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001921/0.6993, allocations: 1.382 MB / 0.8264 GB, free: 7.746 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002186/0.6995, allocations: 144.8 kB / 0.8265 GB, free: 7.746 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004623/0.7042, allocations: 1.992 MB / 0.8285 GB, free: 7.02 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004545/0.7046, allocations: 369.4 kB / 0.8288 GB, free: 6.734 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001411/0.706, allocations: 0.807 MB / 0.8296 GB, free: 6.211 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.007285/0.7133, allocations: 2.613 MB / 0.8322 GB, free: 4.664 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.7133, allocations: 2.719 kB / 0.8322 GB, free: 4.664 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.944e-06/0.7133, allocations: 0 / 0.8322 GB, free: 4.664 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 3.873e-05/0.7134, allocations: 0 / 0.8322 GB, free: 4.664 MB / 0.5919 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.004556/0.7179, allocations: 2.01 MB / 0.8341 GB, free: 3.25 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.657e-05/0.718, allocations: 11.22 kB / 0.8341 GB, free: 3.25 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004101/0.7184, allocations: 179.8 kB / 0.8343 GB, free: 3.156 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001857/0.7202, allocations: 0.8984 MB / 0.8352 GB, free: 2.48 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.672e-05/0.7203, allocations: 91.03 kB / 0.8353 GB, free: 2.438 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001782/0.7205, allocations: 131.3 kB / 0.8354 GB, free: 2.387 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002575/0.7231, allocations: 1.548 MB / 0.8369 GB, free: 1.469 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.797e-05/0.7231, allocations: 0 / 0.8369 GB, free: 1.469 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001035/0.7232, allocations: 49.91 kB / 0.837 GB, free: 1.43 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.07e-05/0.7232, allocations: 28.81 kB / 0.837 GB, free: 1.43 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002755/0.726, allocations: 1.709 MB / 0.8387 GB, free: 0.5938 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008413/0.7344, allocations: 6.197 MB / 0.8447 GB, free: 11 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002427/0.7368, allocations: 1.196 MB / 0.8459 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001098/0.7379, allocations: 0.6317 MB / 0.8465 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004487/0.7424, allocations: 2.284 MB / 0.8487 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001339/0.7437, allocations: 0.7304 MB / 0.8494 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=128): time 3.226e-06/0.7437, allocations: 2.531 kB / 0.8494 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of matching and sorting (n=129): time 0.007879/0.7516, allocations: 3.787 MB / 0.8531 GB, free: 5.031 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.299e-05/0.7517, allocations: 72.72 kB / 0.8532 GB, free: 4.949 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009804/0.7527, allocations: 0.7126 MB / 0.8539 GB, free: 4.23 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 9.33e-05/0.7528, allocations: 45.7 kB / 0.8539 GB, free: 4.18 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004855/0.7532, allocations: 0.5326 MB / 0.8545 GB, free: 3.641 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004183/0.7537, allocations: 459.6 kB / 0.8549 GB, free: 3.199 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004/0.7541, allocations: 206.9 kB / 0.8551 GB, free: 2.988 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001805/0.7542, allocations: 345.9 kB / 0.8554 GB, free: 2.645 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001005/0.7552, allocations: 0.514 MB / 0.8559 GB, free: 2.133 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001261/0.7565, allocations: 0.633 MB / 0.8565 GB, free: 1.477 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002328/0.7588, allocations: 1.251 MB / 0.8578 GB, free: 204 kB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.7588, allocations: 0 / 0.8578 GB, free: 204 kB / 0.6075 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003382/0.7622, allocations: 1.6 MB / 0.8593 GB, free: 14.58 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 5.02e-05/0.7623, allocations: 37.69 kB / 0.8594 GB, free: 14.54 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.7623, allocations: 4 kB / 0.8594 GB, free: 14.54 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005222/0.7628, allocations: 156.8 kB / 0.8595 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009808/0.7638, allocations: 243.7 kB / 0.8598 GB, free: 14.14 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004589/0.7684, allocations: 2.622 MB / 0.8623 GB, free: 11.41 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008116/0.7692, allocations: 51.94 kB / 0.8624 GB, free: 11.36 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001395/0.7693, allocations: 51.97 kB / 0.8624 GB, free: 11.3 MB / 0.6231 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.000564/0.7699, allocations: 293.5 kB / 0.8627 GB, free: 11.01 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002426/0.7701, allocations: 127.2 kB / 0.8628 GB, free: 10.88 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004553/0.7747, allocations: 2.319 MB / 0.8651 GB, free: 8.594 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.872e-05/0.7747, allocations: 16 kB / 0.8651 GB, free: 8.578 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.892e-06/0.7748, allocations: 0 / 0.8651 GB, free: 8.578 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.156e-05/0.7748, allocations: 11.91 kB / 0.8651 GB, free: 8.566 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006391/0.7812, allocations: 3.398 MB / 0.8684 GB, free: 5.133 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.7812, allocations: 128 / 0.8684 GB, free: 5.133 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/0.7822, allocations: 267.7 kB / 0.8687 GB, free: 4.871 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004486/0.7826, allocations: 140.6 kB / 0.8688 GB, free: 4.73 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001069/0.7827, allocations: 47.98 kB / 0.8689 GB, free: 4.684 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003035/0.7858, allocations: 2.33 MB / 0.8711 GB, free: 2.242 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.7858, allocations: 4 kB / 0.8711 GB, free: 2.238 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004883/0.7907, allocations: 2.619 MB / 0.8737 GB, free: 15.59 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003198/0.791, allocations: 115.1 kB / 0.8738 GB, free: 15.47 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001609/0.7911, allocations: 28 kB / 0.8738 GB, free: 15.45 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006685/0.7918, allocations: 59.95 kB / 0.8739 GB, free: 15.39 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002472/0.7921, allocations: 117.1 kB / 0.874 GB, free: 15.27 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001308/0.7922, allocations: 55.97 kB / 0.8741 GB, free: 15.21 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0007413/0.7929, allocations: 0.5155 MB / 0.8746 GB, free: 14.69 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7929, allocations: 0 / 0.8746 GB, free: 14.69 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001604/0.7945, allocations: 0.5149 MB / 0.8751 GB, free: 14.17 MB / 0.6387 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.0009829/0.7955, allocations: 0.5757 MB / 0.8756 GB, free: 13.63 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.003207/0.7987, allocations: 1.558 MB / 0.8771 GB, free: 12.05 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.7987, allocations: 384 / 0.8771 GB, free: 12.05 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001866/0.8006, allocations: 0.9351 MB / 0.8781 GB, free: 11.1 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001913/0.8025, allocations: 401.8 kB / 0.8784 GB, free: 10.72 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005296/0.8078, allocations: 2.653 MB / 0.881 GB, free: 8.027 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009516/0.8088, allocations: 1.191 MB / 0.8822 GB, free: 6.809 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001208/0.81, allocations: 345.5 kB / 0.8825 GB, free: 6.516 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004115/0.8104, allocations: 151.4 kB / 0.8827 GB, free: 6.371 MB / 0.6387 GB Notification: Performance of SimCode: time 1.082e-06/0.8104, allocations: 0 / 0.8827 GB, free: 6.371 MB / 0.6387 GB Notification: Performance of Templates: time 0.05012/0.8605, allocations: 27.64 MB / 0.9097 GB, free: 10.99 MB / 0.67 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.2364708026871085]