Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.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.001526/0.001526, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001711/0.001711, allocations: 214.6 kB / 22.99 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.411/1.411, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.7443/0.7443, allocations: 94.62 MB / 407.8 MB, free: 8.859 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.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.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") [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.002572/0.002572, allocations: 88.34 kB / 0.5562 GB, free: 37.96 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1168, allocations: 73.05 MB / 0.6275 GB, free: 15.66 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.0687/0.1855, allocations: 59.76 MB / 0.6859 GB, free: 3.688 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02361/0.2091, allocations: 16.03 MB / 0.7015 GB, free: 3.613 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002234/0.2114, allocations: 111 kB / 0.7016 GB, free: 3.504 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003267/0.2146, allocations: 1.079 MB / 0.7027 GB, free: 2.418 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.008088/0.2227, allocations: 2.843 MB / 0.7055 GB, free: 15.56 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004833/0.2275, allocations: 1.574 MB / 0.707 GB, free: 13.98 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.005976/0.2335, allocations: 3.91 MB / 0.7108 GB, free: 10.05 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009447/0.2345, allocations: 383 kB / 0.7112 GB, free: 9.648 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003338/0.2378, allocations: 1.677 MB / 0.7128 GB, free: 7.965 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002466/0.2403, allocations: 1.434 MB / 0.7142 GB, free: 6.523 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0004417/0.2407, allocations: 192 kB / 0.7144 GB, free: 6.336 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004424/0.2451, allocations: 1.498 MB / 0.7159 GB, free: 4.836 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0006344/0.2458, allocations: 0.49 MB / 0.7163 GB, free: 4.344 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001432/0.2472, allocations: 1.038 MB / 0.7174 GB, free: 3.301 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.007412/0.2546, allocations: 3.782 MB / 0.7211 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.2546, allocations: 0 / 0.7211 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.653e-06/0.2546, allocations: 0 / 0.7211 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.851e-05/0.2547, allocations: 0 / 0.7211 GB, free: 15.5 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 479 * Number of variables: 479 Notification: Performance of Generate backend data structure: time 0.006334/0.261, allocations: 3.001 MB / 0.724 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.2611, allocations: 8.031 kB / 0.724 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00105/0.2621, allocations: 343.1 kB / 0.7243 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002827/0.2649, allocations: 1.363 MB / 0.7257 GB, free: 10.7 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001341/0.2651, allocations: 140.1 kB / 0.7258 GB, free: 10.56 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003144/0.2654, allocations: 204.3 kB / 0.726 GB, free: 10.36 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003855/0.2692, allocations: 2.242 MB / 0.7282 GB, free: 8.07 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.897e-05/0.2693, allocations: 0 / 0.7282 GB, free: 8.07 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001468/0.2694, allocations: 76 kB / 0.7282 GB, free: 7.996 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.204e-05/0.2695, allocations: 48 kB / 0.7283 GB, free: 7.949 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003955/0.2734, allocations: 2.298 MB / 0.7305 GB, free: 5.648 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00921/0.2826, allocations: 4.997 MB / 0.7354 GB, free: 0.5703 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003187/0.2858, allocations: 1.781 MB / 0.7372 GB, free: 14.78 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001498/0.2873, allocations: 0.8853 MB / 0.738 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006319/0.2936, allocations: 2.785 MB / 0.7407 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001912/0.2956, allocations: 1.109 MB / 0.7418 GB, free: 9.926 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=200): time 4.198e-06/0.2956, allocations: 0 / 0.7418 GB, free: 9.926 MB / 0.5762 GB Notification: Performance of matching and sorting (n=200): time 0.005987/0.3015, allocations: 2.742 MB / 0.7445 GB, free: 7.172 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/0.3017, allocations: 154.5 kB / 0.7446 GB, free: 6.988 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00163/0.3033, allocations: 1.137 MB / 0.7458 GB, free: 5.84 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.00012/0.3034, allocations: 61.7 kB / 0.7458 GB, free: 5.773 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007941/0.3042, allocations: 0.8757 MB / 0.7467 GB, free: 4.887 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000651/0.3049, allocations: 0.6932 MB / 0.7473 GB, free: 4.188 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004933/0.3053, allocations: 319.5 kB / 0.7477 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001415/0.3055, allocations: 305.1 kB / 0.7479 GB, free: 3.57 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00133/0.3068, allocations: 0.6654 MB / 0.7486 GB, free: 2.898 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00164/0.3085, allocations: 0.9979 MB / 0.7496 GB, free: 1.797 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003093/0.3115, allocations: 1.66 MB / 0.7512 GB, free: 68 kB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.017e-05/0.3116, allocations: 0 / 0.7512 GB, free: 68 kB / 0.5762 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.2567/0.5683, allocations: 2.157 MB / 0.7533 GB, free: 118.7 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.962e-05/0.5683, allocations: 35.34 kB / 0.7533 GB, free: 118.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/0.5683, allocations: 5.359 kB / 0.7533 GB, free: 118.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005338/0.5688, allocations: 157.7 kB / 0.7535 GB, free: 118.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001303/0.5701, allocations: 391.5 kB / 0.7539 GB, free: 118.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002972/0.5731, allocations: 4.442 MB / 0.7582 GB, free: 115 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001059/0.5742, allocations: 155.7 kB / 0.7583 GB, free: 115 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001829/0.5744, allocations: 84.89 kB / 0.7584 GB, free: 115 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (214): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006709/0.575, allocations: 363 kB / 0.7588 GB, free: 114.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003343/0.5754, allocations: 198.9 kB / 0.759 GB, free: 114.7 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004723/0.5801, allocations: 3.092 MB / 0.762 GB, free: 113.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.34e-05/0.5801, allocations: 28.3 kB / 0.762 GB, free: 113.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.5801, allocations: 2.625 kB / 0.762 GB, free: 113.4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-05/0.5801, allocations: 10.12 kB / 0.762 GB, free: 113.4 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006893/0.587, allocations: 4.038 MB / 0.766 GB, free: 111.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.065e-05/0.587, allocations: 2.25 kB / 0.766 GB, free: 111.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001394/0.5884, allocations: 388 kB / 0.7663 GB, free: 111.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004765/0.5889, allocations: 161.2 kB / 0.7665 GB, free: 111.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001288/0.589, allocations: 69.7 kB / 0.7666 GB, free: 111.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002781/0.5918, allocations: 4.443 MB / 0.7709 GB, free: 107.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.5918, allocations: 2.531 kB / 0.7709 GB, free: 107.4 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005241/0.5971, allocations: 3.206 MB / 0.774 GB, free: 105.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009011/0.598, allocations: 438.1 kB / 0.7744 GB, free: 105.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002121/0.5982, allocations: 50.56 kB / 0.7745 GB, free: 105.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007294/0.5989, allocations: 55.89 kB / 0.7745 GB, free: 105.6 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002614/0.5992, allocations: 168.4 kB / 0.7747 GB, free: 105.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001372/0.5993, allocations: 82.19 kB / 0.7748 GB, free: 105.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0009461/0.6002, allocations: 0.7894 MB / 0.7756 GB, free: 105.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6.1e-08/0.6003, allocations: 0 / 0.7756 GB, free: 105.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001829/0.6021, allocations: 0.8174 MB / 0.7764 GB, free: 105.1 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.rear.m_flow,flowResistance2.rear.m_flow,flowResistance4.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 (213): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008345/0.6029, allocations: 0.7711 MB / 0.7771 GB, free: 104.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003003/0.6059, allocations: 2.131 MB / 0.7792 GB, free: 103.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.6059, allocations: 2.156 kB / 0.7792 GB, free: 103.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001587/0.6075, allocations: 1.301 MB / 0.7805 GB, free: 103.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002172/0.6097, allocations: 0.5798 MB / 0.781 GB, free: 103 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005368/0.615, allocations: 3.908 MB / 0.7848 GB, free: 99.56 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006109/0.6157, allocations: 0.892 MB / 0.7857 GB, free: 98.89 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006511/0.6163, allocations: 249.9 kB / 0.786 GB, free: 98.67 MB / 0.5762 GB Notification: Performance of SimCode: time 1.283e-06/0.6163, allocations: 0 / 0.786 GB, free: 98.67 MB / 0.5762 GB Notification: Performance of Templates: time 0.0526/0.6689, allocations: 63.1 MB / 0.8476 GB, free: 35.76 MB / 0.5762 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.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: 11.426579111721367]