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.001636/0.001636, allocations: 78.09 kB / 19.76 MB, free: 2.031 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.001755/0.001755, allocations: 156.3 kB / 23.01 MB, free: 4.945 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.379/1.379, allocations: 177.2 MB / 203.4 MB, free: 8.953 MB / 190.1 MB " [Timeout remaining time 179] 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.7283/0.7283, allocations: 79.61 MB / 339.4 MB, free: 10.96 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.002502/0.002502, allocations: 89.16 kB / 0.4924 GB, free: 26.03 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1156, allocations: 74.58 MB / 0.5652 GB, free: 5.996 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.4747/0.5903, allocations: 150.9 MB / 0.7126 GB, free: 3.43 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01282/0.6031, allocations: 10.06 MB / 0.7224 GB, free: 3.352 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001513/0.6046, allocations: 68.28 kB / 0.7225 GB, free: 3.352 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002088/0.6067, allocations: 0.7186 MB / 0.7232 GB, free: 3.328 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.004463/0.6112, allocations: 1.687 MB / 0.7248 GB, free: 3.273 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003202/0.6144, allocations: 1.128 MB / 0.7259 GB, free: 3.254 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003126/0.6175, allocations: 2.554 MB / 0.7284 GB, free: 3.246 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000585/0.6181, allocations: 280.7 kB / 0.7287 GB, free: 3.148 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002081/0.6202, allocations: 1.085 MB / 0.7297 GB, free: 3.145 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002202/0.6224, allocations: 1.305 MB / 0.731 GB, free: 3.145 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0003119/0.6227, allocations: 147.8 kB / 0.7312 GB, free: 3.141 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004156/0.6268, allocations: 1.68 MB / 0.7328 GB, free: 3.109 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004169/0.6272, allocations: 368.1 kB / 0.7331 GB, free: 3.086 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0009974/0.6282, allocations: 0.67 MB / 0.7338 GB, free: 2.914 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.004694/0.6329, allocations: 2.586 MB / 0.7363 GB, free: 2.543 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.6329, allocations: 0 / 0.7363 GB, free: 2.543 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.724e-06/0.6329, allocations: 0.6562 kB / 0.7363 GB, free: 2.543 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 3.793e-05/0.633, allocations: 0.9062 kB / 0.7363 GB, free: 2.543 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.003789/0.6368, allocations: 2.004 MB / 0.7383 GB, free: 17.61 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.6368, allocations: 10.28 kB / 0.7383 GB, free: 17.61 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003848/0.6372, allocations: 187.7 kB / 0.7385 GB, free: 17.52 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001416/0.6386, allocations: 0.9079 MB / 0.7394 GB, free: 17.2 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.925e-05/0.6387, allocations: 90.28 kB / 0.7394 GB, free: 17.2 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001497/0.6388, allocations: 120.2 kB / 0.7396 GB, free: 17.2 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002218/0.641, allocations: 1.555 MB / 0.7411 GB, free: 17.07 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.963e-05/0.6411, allocations: 1.062 kB / 0.7411 GB, free: 17.07 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.824e-05/0.6412, allocations: 48.31 kB / 0.7411 GB, free: 17.07 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.035e-05/0.6412, allocations: 30.19 kB / 0.7412 GB, free: 17.07 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002313/0.6435, allocations: 1.702 MB / 0.7428 GB, free: 17.06 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005555/0.649, allocations: 3.525 MB / 0.7463 GB, free: 16.33 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002028/0.6511, allocations: 1.186 MB / 0.7474 GB, free: 16.28 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008891/0.652, allocations: 0.6379 MB / 0.748 GB, free: 16.27 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003598/0.6556, allocations: 2.059 MB / 0.75 GB, free: 15.81 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00114/0.6567, allocations: 0.7421 MB / 0.7508 GB, free: 15.51 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=128): time 3.627e-06/0.6567, allocations: 0 / 0.7508 GB, free: 15.51 MB / 0.6075 GB Notification: Performance of matching and sorting (n=129): time 0.007162/0.6639, allocations: 3.779 MB / 0.7545 GB, free: 13.77 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.377e-05/0.6639, allocations: 70.03 kB / 0.7545 GB, free: 13.71 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007294/0.6647, allocations: 0.6644 MB / 0.7552 GB, free: 13.43 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 9.91e-05/0.6648, allocations: 47.02 kB / 0.7552 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004492/0.6652, allocations: 0.547 MB / 0.7558 GB, free: 12.95 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003883/0.6656, allocations: 460.1 kB / 0.7562 GB, free: 12.6 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003139/0.6659, allocations: 205.6 kB / 0.7564 GB, free: 12.5 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001663/0.6661, allocations: 350 kB / 0.7567 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009202/0.667, allocations: 0.5429 MB / 0.7573 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001064/0.6681, allocations: 0.6565 MB / 0.7579 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002101/0.6702, allocations: 1.252 MB / 0.7591 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.6702, allocations: 0 / 0.7591 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003078/0.6732, allocations: 1.639 MB / 0.7607 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.224e-05/0.6733, allocations: 36.42 kB / 0.7608 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.6733, allocations: 3.312 kB / 0.7608 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004984/0.6738, allocations: 157.4 kB / 0.7609 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008945/0.6747, allocations: 258.1 kB / 0.7612 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003987/0.6787, allocations: 2.563 MB / 0.7637 GB, free: 8.344 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007513/0.6794, allocations: 48.62 kB / 0.7637 GB, free: 8.328 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000129/0.6796, allocations: 51.52 kB / 0.7638 GB, free: 8.316 MB / 0.6075 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.0005664/0.6801, allocations: 291.7 kB / 0.764 GB, free: 8.105 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000333/0.6805, allocations: 128.2 kB / 0.7642 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004154/0.6846, allocations: 2.305 MB / 0.7664 GB, free: 7.09 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-05/0.6846, allocations: 17.06 kB / 0.7664 GB, free: 7.09 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.6846, allocations: 4 kB / 0.7664 GB, free: 7.086 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.785e-05/0.6847, allocations: 10.48 kB / 0.7664 GB, free: 7.086 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00544/0.6901, allocations: 3.054 MB / 0.7694 GB, free: 5.711 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.6901, allocations: 0 / 0.7694 GB, free: 5.711 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009235/0.691, allocations: 265.8 kB / 0.7697 GB, free: 5.699 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004274/0.6915, allocations: 151.2 kB / 0.7698 GB, free: 5.66 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001219/0.6916, allocations: 44.66 kB / 0.7699 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002805/0.6944, allocations: 2.285 MB / 0.7721 GB, free: 3.832 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.6944, allocations: 6.844 kB / 0.7721 GB, free: 3.828 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004948/0.6993, allocations: 2.614 MB / 0.7746 GB, free: 2.648 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000337/0.6997, allocations: 102.4 kB / 0.7747 GB, free: 2.582 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002352/0.6999, allocations: 45.14 kB / 0.7748 GB, free: 2.547 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006635/0.7006, allocations: 49.31 kB / 0.7748 GB, free: 2.52 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002582/0.7008, allocations: 117.4 kB / 0.7749 GB, free: 2.445 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001369/0.701, allocations: 51.36 kB / 0.775 GB, free: 2.43 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0007242/0.7017, allocations: 480.8 kB / 0.7755 GB, free: 2.164 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.7017, allocations: 7.031 kB / 0.7755 GB, free: 2.16 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001798/0.7035, allocations: 0.5132 MB / 0.776 GB, free: 2.039 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.001048/0.7045, allocations: 0.5654 MB / 0.7765 GB, free: 1.824 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003089/0.7076, allocations: 1.591 MB / 0.7781 GB, free: 0.9688 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.7076, allocations: 3.969 kB / 0.7781 GB, free: 0.9688 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001751/0.7094, allocations: 0.9366 MB / 0.779 GB, free: 500 kB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001683/0.7111, allocations: 343.7 kB / 0.7793 GB, free: 312 kB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004896/0.716, allocations: 2.657 MB / 0.7819 GB, free: 14.28 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006812/0.7166, allocations: 0.6013 MB / 0.7825 GB, free: 13.65 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.00109/0.7177, allocations: 343.5 kB / 0.7828 GB, free: 13.36 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003918/0.7181, allocations: 144.5 kB / 0.783 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of SimCode: time 7.52e-07/0.7181, allocations: 0 / 0.783 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of Templates: time 0.04499/0.7631, allocations: 25.63 MB / 0.808 GB, free: 4.004 MB / 0.6387 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 -s ida -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/jenkins1/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: 6.5350893719587475]