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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001605/0.001605, allocations: 113.8 kB / 17.61 MB, free: 4.703 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002116/0.002116, allocations: 186 kB / 20.78 MB, free: 1.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 225.6 MB / 249.4 MB, free: 3.141 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6221/0.6221, allocations: 94.58 MB / 399.1 MB, free: 15.76 MB / 334.1 MB " [Timeout remaining time 179] 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.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: Performance of FrontEnd - loaded program: time 0.00255/0.00255, allocations: 83.88 kB / 0.5448 GB, free: 12.04 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3756/0.3782, allocations: 71.83 MB / 0.615 GB, free: 4.078 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.2179/0.5961, allocations: 174.3 MB / 0.7852 GB, free: 6.074 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.01564/0.6117, allocations: 11.05 MB / 0.796 GB, free: 10.99 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001319/0.613, allocations: 43.75 kB / 0.796 GB, free: 10.95 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002388/0.6154, allocations: 0.7959 MB / 0.7968 GB, free: 10.15 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.004956/0.6204, allocations: 1.698 MB / 0.7985 GB, free: 8.441 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.003341/0.6237, allocations: 1.117 MB / 0.7996 GB, free: 7.32 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.004017/0.6277, allocations: 2.522 MB / 0.802 GB, free: 4.789 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007917/0.6285, allocations: 289.8 kB / 0.8023 GB, free: 4.473 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00242/0.6309, allocations: 1.059 MB / 0.8033 GB, free: 3.41 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002385/0.6333, allocations: 1.394 MB / 0.8047 GB, free: 2.012 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0004945/0.6338, allocations: 140 kB / 0.8048 GB, free: 1.875 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004974/0.6388, allocations: 1.977 MB / 0.8068 GB, free: 15.89 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0006578/0.6394, allocations: 362.6 kB / 0.8071 GB, free: 15.54 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.001659/0.6411, allocations: 0.8086 MB / 0.8079 GB, free: 14.73 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.005747/0.6468, allocations: 2.614 MB / 0.8105 GB, free: 12.11 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.6469, allocations: 0 / 0.8105 GB, free: 12.11 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.563e-06/0.6469, allocations: 0 / 0.8105 GB, free: 12.11 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 6.348e-05/0.6469, allocations: 0 / 0.8105 GB, free: 12.11 MB / 0.6387 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.005223/0.6521, allocations: 2.077 MB / 0.8125 GB, free: 9.969 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.6522, allocations: 8.031 kB / 0.8125 GB, free: 9.961 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000487/0.6527, allocations: 179.9 kB / 0.8127 GB, free: 9.785 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002031/0.6547, allocations: 0.9951 MB / 0.8136 GB, free: 8.746 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.801e-05/0.6548, allocations: 94.77 kB / 0.8137 GB, free: 8.652 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000248/0.655, allocations: 124.1 kB / 0.8138 GB, free: 8.531 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003211/0.6582, allocations: 1.517 MB / 0.8153 GB, free: 6.973 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.116e-05/0.6583, allocations: 0 / 0.8153 GB, free: 6.973 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001232/0.6584, allocations: 55.94 kB / 0.8154 GB, free: 6.918 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.721e-05/0.6584, allocations: 32 kB / 0.8154 GB, free: 6.887 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003166/0.6616, allocations: 1.657 MB / 0.817 GB, free: 5.223 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008662/0.6703, allocations: 6.246 MB / 0.8231 GB, free: 14.36 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002578/0.6728, allocations: 1.184 MB / 0.8243 GB, free: 13.16 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001231/0.6741, allocations: 0.6333 MB / 0.8249 GB, free: 12.53 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005604/0.6797, allocations: 4.029 MB / 0.8288 GB, free: 8.051 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001422/0.6811, allocations: 0.7239 MB / 0.8295 GB, free: 7.312 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=128): time 3.376e-06/0.6811, allocations: 0 / 0.8295 GB, free: 7.312 MB / 0.6544 GB Notification: Performance of matching and sorting (n=129): time 0.00824/0.6893, allocations: 3.991 MB / 0.8334 GB, free: 3.234 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.358e-05/0.6894, allocations: 64.72 kB / 0.8335 GB, free: 3.16 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000975/0.6904, allocations: 0.7127 MB / 0.8342 GB, free: 2.438 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001308/0.6905, allocations: 49.7 kB / 0.8342 GB, free: 2.383 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004812/0.691, allocations: 0.5288 MB / 0.8348 GB, free: 1.848 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004205/0.6914, allocations: 460 kB / 0.8352 GB, free: 1.395 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003647/0.6918, allocations: 202.9 kB / 0.8354 GB, free: 1.188 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001776/0.6919, allocations: 349.9 kB / 0.8357 GB, free: 0.8398 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001047/0.693, allocations: 0.5179 MB / 0.8362 GB, free: 332 kB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001205/0.6942, allocations: 0.6251 MB / 0.8368 GB, free: 15.68 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002292/0.6965, allocations: 1.24 MB / 0.8381 GB, free: 14.41 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.6965, allocations: 0 / 0.8381 GB, free: 14.41 MB / 0.67 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003314/0.6998, allocations: 1.596 MB / 0.8396 GB, free: 12.8 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 5.321e-05/0.6999, allocations: 37.69 kB / 0.8396 GB, free: 12.75 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.208e-06/0.6999, allocations: 0 / 0.8396 GB, free: 12.75 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005633/0.7004, allocations: 159.7 kB / 0.8398 GB, free: 12.6 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/0.7014, allocations: 251.7 kB / 0.84 GB, free: 12.35 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004454/0.7059, allocations: 2.713 MB / 0.8427 GB, free: 9.496 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008347/0.7067, allocations: 55.94 kB / 0.8427 GB, free: 9.441 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001387/0.7069, allocations: 47.98 kB / 0.8428 GB, free: 9.395 MB / 0.67 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.0005902/0.7075, allocations: 289.6 kB / 0.8431 GB, free: 9.102 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000273/0.7077, allocations: 115.2 kB / 0.8432 GB, free: 8.988 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004665/0.7124, allocations: 2.32 MB / 0.8454 GB, free: 6.684 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.755e-05/0.7124, allocations: 16 kB / 0.8455 GB, free: 6.668 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.7124, allocations: 4 kB / 0.8455 GB, free: 6.664 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.634e-05/0.7124, allocations: 11.97 kB / 0.8455 GB, free: 6.652 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006271/0.7187, allocations: 3.405 MB / 0.8488 GB, free: 3.168 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.774e-06/0.7187, allocations: 0 / 0.8488 GB, free: 3.168 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/0.7198, allocations: 267.6 kB / 0.8491 GB, free: 2.906 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000457/0.7202, allocations: 152.5 kB / 0.8492 GB, free: 2.758 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001154/0.7203, allocations: 47.91 kB / 0.8492 GB, free: 2.711 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003012/0.7233, allocations: 2.438 MB / 0.8516 GB, free: 144 kB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.7233, allocations: 3.938 kB / 0.8516 GB, free: 140 kB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004935/0.7283, allocations: 2.605 MB / 0.8542 GB, free: 13.5 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003046/0.7286, allocations: 192.2 kB / 0.8544 GB, free: 13.29 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001778/0.7288, allocations: 28 kB / 0.8544 GB, free: 13.26 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006042/0.7294, allocations: 51.95 kB / 0.8544 GB, free: 13.21 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002494/0.7296, allocations: 117.2 kB / 0.8545 GB, free: 13.09 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001317/0.7297, allocations: 63.91 kB / 0.8546 GB, free: 13.03 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0007099/0.7305, allocations: 0.5077 MB / 0.8551 GB, free: 12.51 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7305, allocations: 0 / 0.8551 GB, free: 12.51 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001452/0.7319, allocations: 0.5188 MB / 0.8556 GB, free: 11.99 MB / 0.6856 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.0009558/0.7329, allocations: 0.5831 MB / 0.8562 GB, free: 11.41 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.003129/0.736, allocations: 1.544 MB / 0.8577 GB, free: 9.84 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.736, allocations: 0 / 0.8577 GB, free: 9.84 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001818/0.7378, allocations: 0.9318 MB / 0.8586 GB, free: 8.898 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001789/0.7396, allocations: 387.6 kB / 0.859 GB, free: 8.531 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004972/0.7446, allocations: 2.667 MB / 0.8616 GB, free: 5.816 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008932/0.7455, allocations: 1.187 MB / 0.8627 GB, free: 4.598 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001099/0.7466, allocations: 346.3 kB / 0.8631 GB, free: 4.301 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004119/0.747, allocations: 147.4 kB / 0.8632 GB, free: 4.156 MB / 0.6856 GB Notification: Performance of SimCode: time 8.82e-07/0.747, allocations: 4 kB / 0.8632 GB, free: 4.152 MB / 0.6856 GB Notification: Performance of Templates: time 0.3031/1.05, allocations: 27.28 MB / 0.8898 GB, free: 223.3 MB / 0.6856 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: 6.980351317673922]