Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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.001529/0.001529, allocations: 80.77 kB / 19.18 MB, free: 2.516 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.001698/0.001698, allocations: 163.6 kB / 22.46 MB, free: 5.375 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.417/1.417, allocations: 177.1 MB / 202.8 MB, free: 9.16 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo): time 0.7436/0.7436, allocations: 80.19 MB / 339.4 MB, free: 10.87 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/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_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_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 0.4929 GB, free: 25.59 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.904e-05/3.077e-05, allocations: 2.281 kB / 0.4929 GB, free: 25.59 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.1875/0.1875, allocations: 151.4 MB / 0.6407 GB, free: 7.711 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01586/0.2034, allocations: 10.14 MB / 0.6506 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001432/0.2048, allocations: 79.31 kB / 0.6507 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002649/0.2075, allocations: 0.7372 MB / 0.6514 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.005485/0.213, allocations: 1.832 MB / 0.6532 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003788/0.2168, allocations: 1.156 MB / 0.6543 GB, free: 9.719 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.004237/0.221, allocations: 2.781 MB / 0.657 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009188/0.2219, allocations: 286.2 kB / 0.6573 GB, free: 6.609 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003659/0.2256, allocations: 1.504 MB / 0.6588 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002514/0.2281, allocations: 1.259 MB / 0.66 GB, free: 3.84 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0004755/0.2286, allocations: 144 kB / 0.6601 GB, free: 3.699 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004505/0.2331, allocations: 1.696 MB / 0.6618 GB, free: 2 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0005562/0.2336, allocations: 378.5 kB / 0.6622 GB, free: 1.629 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001495/0.2351, allocations: 0.6002 MB / 0.6627 GB, free: 1.027 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.005966/0.2411, allocations: 2.687 MB / 0.6654 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.2411, allocations: 0 / 0.6654 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.173e-06/0.2411, allocations: 0 / 0.6654 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.119e-05/0.2412, allocations: 0 / 0.6654 GB, free: 14.33 MB / 0.5762 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.005125/0.2463, allocations: 1.998 MB / 0.6673 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.2463, allocations: 17.45 kB / 0.6673 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006094/0.2469, allocations: 191.8 kB / 0.6675 GB, free: 12.09 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001947/0.2489, allocations: 0.9067 MB / 0.6684 GB, free: 11.14 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.032e-05/0.249, allocations: 90.78 kB / 0.6685 GB, free: 11.05 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002611/0.2492, allocations: 120.3 kB / 0.6686 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003199/0.2524, allocations: 1.556 MB / 0.6701 GB, free: 9.336 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.344e-05/0.2525, allocations: 3.938 kB / 0.6701 GB, free: 9.332 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001339/0.2526, allocations: 52 kB / 0.6702 GB, free: 9.281 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.964e-05/0.2526, allocations: 32 kB / 0.6702 GB, free: 9.25 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003244/0.2559, allocations: 1.696 MB / 0.6719 GB, free: 7.547 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007761/0.2636, allocations: 3.558 MB / 0.6753 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002766/0.2664, allocations: 1.182 MB / 0.6765 GB, free: 2.742 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001334/0.2677, allocations: 0.6416 MB / 0.6771 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004971/0.2727, allocations: 2.055 MB / 0.6791 GB, free: 24 kB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001595/0.2743, allocations: 0.7395 MB / 0.6798 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=128): time 4.609e-06/0.2743, allocations: 4 kB / 0.6798 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of matching and sorting (n=129): time 0.008913/0.2832, allocations: 3.781 MB / 0.6835 GB, free: 11.45 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.32e-05/0.2833, allocations: 72.66 kB / 0.6836 GB, free: 11.37 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009955/0.2843, allocations: 0.6652 MB / 0.6843 GB, free: 10.69 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001437/0.2844, allocations: 45.7 kB / 0.6843 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005251/0.285, allocations: 0.5443 MB / 0.6848 GB, free: 10.09 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005186/0.2855, allocations: 460 kB / 0.6853 GB, free: 9.637 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003889/0.2859, allocations: 202.9 kB / 0.6855 GB, free: 9.434 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001799/0.286, allocations: 353.9 kB / 0.6858 GB, free: 9.082 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001149/0.2872, allocations: 0.5469 MB / 0.6863 GB, free: 8.527 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001271/0.2885, allocations: 0.6541 MB / 0.687 GB, free: 7.848 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002503/0.291, allocations: 1.252 MB / 0.6882 GB, free: 6.57 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.291, allocations: 0 / 0.6882 GB, free: 6.57 MB / 0.5919 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003613/0.2946, allocations: 1.641 MB / 0.6898 GB, free: 4.906 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.98e-05/0.2946, allocations: 37.64 kB / 0.6898 GB, free: 4.863 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.2947, allocations: 0 / 0.6898 GB, free: 4.863 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005622/0.2952, allocations: 164.4 kB / 0.69 GB, free: 4.703 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.2963, allocations: 243.7 kB / 0.6902 GB, free: 4.465 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004577/0.3008, allocations: 2.565 MB / 0.6927 GB, free: 1.801 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009363/0.3018, allocations: 48 kB / 0.6928 GB, free: 1.754 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002985/0.3021, allocations: 51.98 kB / 0.6928 GB, free: 1.703 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.0007805/0.3029, allocations: 301.4 kB / 0.6931 GB, free: 1.398 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004718/0.3033, allocations: 131.2 kB / 0.6932 GB, free: 1.27 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1998/0.5031, allocations: 2.31 MB / 0.6955 GB, free: 179.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.836e-05/0.5031, allocations: 16.27 kB / 0.6955 GB, free: 179.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.5031, allocations: 1.5 kB / 0.6955 GB, free: 179.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.169e-05/0.5031, allocations: 7.844 kB / 0.6955 GB, free: 179.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00559/0.5087, allocations: 3.056 MB / 0.6985 GB, free: 178.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.5087, allocations: 1.281 kB / 0.6985 GB, free: 178.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009692/0.5097, allocations: 261.6 kB / 0.6988 GB, free: 178.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004439/0.5102, allocations: 144.4 kB / 0.6989 GB, free: 178.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001029/0.5103, allocations: 43.16 kB / 0.6989 GB, free: 178.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002103/0.5124, allocations: 2.293 MB / 0.7012 GB, free: 176.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.5124, allocations: 3.344 kB / 0.7012 GB, free: 176.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003988/0.5163, allocations: 2.607 MB / 0.7037 GB, free: 175.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002995/0.5166, allocations: 112.9 kB / 0.7038 GB, free: 175.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001635/0.5168, allocations: 28.81 kB / 0.7039 GB, free: 175.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005909/0.5174, allocations: 55.95 kB / 0.7039 GB, free: 175.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002282/0.5176, allocations: 120.8 kB / 0.704 GB, free: 175.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.5177, allocations: 53.06 kB / 0.7041 GB, free: 175.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0005005/0.5182, allocations: 487.4 kB / 0.7045 GB, free: 175.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.5182, allocations: 2.656 kB / 0.7045 GB, free: 175.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00135/0.5196, allocations: 0.536 MB / 0.7051 GB, free: 175.2 MB / 0.5919 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.000872/0.5205, allocations: 0.5907 MB / 0.7056 GB, free: 175.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002564/0.523, allocations: 1.592 MB / 0.7072 GB, free: 174.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.523, allocations: 2.625 kB / 0.7072 GB, free: 174.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001436/0.5245, allocations: 0.9246 MB / 0.7081 GB, free: 174 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002324/0.5268, allocations: 0.5051 MB / 0.7086 GB, free: 173.9 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005112/0.5319, allocations: 2.731 MB / 0.7113 GB, free: 172.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005461/0.5324, allocations: 0.6048 MB / 0.7119 GB, free: 172.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001157/0.5336, allocations: 363.7 kB / 0.7122 GB, free: 172.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004121/0.534, allocations: 146.9 kB / 0.7123 GB, free: 172.4 MB / 0.5919 GB Notification: Performance of SimCode: time 9.72e-07/0.534, allocations: 0 / 0.7123 GB, free: 172.4 MB / 0.5919 GB Notification: Performance of Templates: time 0.04571/0.5797, allocations: 29.35 MB / 0.741 GB, free: 163 MB / 0.5919 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_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_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.718512687832117]