Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.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.001274/0.001274, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.00156/0.00156, allocations: 218.8 kB / 23.03 MB, free: 4.922 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.494/1.494, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.8209/0.8209, allocations: 100.3 MB / 413.6 MB, free: 3.391 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: "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_BasicControlValve",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_BasicControlValve",fmuType="cs",version="2.0",platforms={"static"}) [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.002551/0.002551, allocations: 93.86 kB / 0.564 GB, free: 35.73 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1409, allocations: 74.46 MB / 0.6367 GB, free: 7.371 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.05497/0.1958, allocations: 49.03 MB / 0.6846 GB, free: 6.168 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0249/0.2208, allocations: 19.71 MB / 0.7038 GB, free: 2.398 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002076/0.2228, allocations: 110.9 kB / 0.704 GB, free: 2.289 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002667/0.2255, allocations: 0.7836 MB / 0.7047 GB, free: 1.5 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.00529/0.2308, allocations: 1.708 MB / 0.7064 GB, free: 15.78 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.003992/0.2348, allocations: 1.338 MB / 0.7077 GB, free: 14.44 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.003673/0.2385, allocations: 2.59 MB / 0.7102 GB, free: 11.84 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006175/0.2391, allocations: 310.7 kB / 0.7105 GB, free: 11.5 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001906/0.241, allocations: 1.113 MB / 0.7116 GB, free: 10.38 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001319/0.2423, allocations: 0.9601 MB / 0.7125 GB, free: 9.418 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0002669/0.2426, allocations: 128 kB / 0.7127 GB, free: 9.293 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003047/0.2456, allocations: 1.151 MB / 0.7138 GB, free: 8.141 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0004729/0.2461, allocations: 346.4 kB / 0.7141 GB, free: 7.801 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0009272/0.247, allocations: 0.7226 MB / 0.7148 GB, free: 7.074 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.005588/0.2526, allocations: 2.661 MB / 0.7174 GB, free: 4.402 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 9.088e-06/0.2526, allocations: 4 kB / 0.7174 GB, free: 4.398 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2526, allocations: 0 / 0.7174 GB, free: 4.398 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.767e-05/0.2527, allocations: 3.938 kB / 0.7174 GB, free: 4.395 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.007005/0.2597, allocations: 2.345 MB / 0.7197 GB, free: 2.004 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 6.019e-05/0.2597, allocations: 12.03 kB / 0.7197 GB, free: 1.992 MB / 0.545 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.656e-05/0.2598, allocations: 34.22 kB / 0.7198 GB, free: 1.957 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003234/0.2601, allocations: 169.2 kB / 0.7199 GB, free: 1.781 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001157/0.2613, allocations: 254.5 kB / 0.7202 GB, free: 1.531 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003982/0.2653, allocations: 1.183 MB / 0.7213 GB, free: 312 kB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.2654, allocations: 82.28 kB / 0.7214 GB, free: 228 kB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002966/0.2657, allocations: 124 kB / 0.7215 GB, free: 104 kB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003499/0.2692, allocations: 1.281 MB / 0.7228 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.245e-05/0.2692, allocations: 4 kB / 0.7228 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.851e-05/0.2693, allocations: 44 kB / 0.7228 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.938e-05/0.2693, allocations: 32 kB / 0.7229 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00208/0.2714, allocations: 1.149 MB / 0.724 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006351/0.2778, allocations: 3.128 MB / 0.727 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00167/0.2794, allocations: 0.8618 MB / 0.7279 GB, free: 9.445 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007661/0.2802, allocations: 420 kB / 0.7283 GB, free: 9.039 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004055/0.2843, allocations: 1.558 MB / 0.7298 GB, free: 7.457 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.107e-05/0.2843, allocations: 51.55 kB / 0.7298 GB, free: 7.398 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=103): time 3.326e-06/0.2843, allocations: 0 / 0.7298 GB, free: 7.398 MB / 0.5606 GB Notification: Performance of matching and sorting (n=103): time 0.003802/0.2881, allocations: 1.45 MB / 0.7313 GB, free: 5.938 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.337e-05/0.2882, allocations: 64.41 kB / 0.7313 GB, free: 5.863 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001955/0.2901, allocations: 1.28 MB / 0.7326 GB, free: 4.578 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 8.295e-05/0.2902, allocations: 41.7 kB / 0.7326 GB, free: 4.531 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006597/0.2909, allocations: 0.7738 MB / 0.7334 GB, free: 3.75 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003309/0.2912, allocations: 368.8 kB / 0.7337 GB, free: 3.387 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002699/0.2915, allocations: 170.6 kB / 0.7339 GB, free: 3.211 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001591/0.2916, allocations: 353.8 kB / 0.7342 GB, free: 2.859 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005798/0.2922, allocations: 289.9 kB / 0.7345 GB, free: 2.578 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008132/0.293, allocations: 0.5094 MB / 0.735 GB, free: 2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001387/0.2944, allocations: 0.7645 MB / 0.7357 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.768e-06/0.2944, allocations: 0 / 0.7357 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002384/0.2968, allocations: 1.143 MB / 0.7369 GB, free: 40 kB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.789e-05/0.2968, allocations: 8.375 kB / 0.7369 GB, free: 32 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.2968, allocations: 8 kB / 0.7369 GB, free: 24 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000754/0.2976, allocations: 162.5 kB / 0.737 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007989/0.2984, allocations: 195.8 kB / 0.7372 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004379/0.3028, allocations: 4.478 MB / 0.7416 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009495/0.3037, allocations: 87.34 kB / 0.7417 GB, free: 10.76 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.3038, allocations: 39.98 kB / 0.7417 GB, free: 10.72 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * 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.0006171/0.3045, allocations: 277.6 kB / 0.742 GB, free: 10.44 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003449/0.3048, allocations: 170.9 kB / 0.7421 GB, free: 10.27 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002915/0.3077, allocations: 1.567 MB / 0.7437 GB, free: 8.672 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.431e-05/0.3077, allocations: 15.94 kB / 0.7437 GB, free: 8.656 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3077, allocations: 4 kB / 0.7437 GB, free: 8.652 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.3078, allocations: 3.984 kB / 0.7437 GB, free: 8.648 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004199/0.312, allocations: 2.328 MB / 0.746 GB, free: 6.234 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.312, allocations: 4 kB / 0.746 GB, free: 6.23 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005948/0.3126, allocations: 151.8 kB / 0.7461 GB, free: 6.082 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006897/0.3132, allocations: 174.3 kB / 0.7463 GB, free: 5.902 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.962e-05/0.3133, allocations: 31.98 kB / 0.7463 GB, free: 5.871 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004371/0.3177, allocations: 4.48 MB / 0.7507 GB, free: 1.043 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/0.3177, allocations: 7.969 kB / 0.7507 GB, free: 1.035 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3482/0.6659, allocations: 1.557 MB / 0.7522 GB, free: 109.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008616/0.6668, allocations: 262.4 kB / 0.7525 GB, free: 109.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002267/0.667, allocations: 30.36 kB / 0.7525 GB, free: 109.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006337/0.6677, allocations: 28.92 kB / 0.7525 GB, free: 109.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002551/0.6679, allocations: 86.19 kB / 0.7526 GB, free: 109.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/0.668, allocations: 34.98 kB / 0.7526 GB, free: 109.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00158/0.6696, allocations: 0.9077 MB / 0.7535 GB, free: 109.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8.1e-08/0.6696, allocations: 0.5 kB / 0.7535 GB, free: 109.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002125/0.6717, allocations: 0.5356 MB / 0.754 GB, free: 109.8 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.inlet.m_flow,flowResistance2.inlet.m_flow,flowResistance4.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.004483/0.6762, allocations: 2.67 MB / 0.7566 GB, free: 109.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002212/0.6784, allocations: 1.12 MB / 0.7577 GB, free: 108.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/0.6784, allocations: 1.219 kB / 0.7577 GB, free: 108.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001253/0.6797, allocations: 0.7679 MB / 0.7585 GB, free: 108.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003077/0.6828, allocations: 0.5397 MB / 0.759 GB, free: 108 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01979/0.7026, allocations: 10.59 MB / 0.7694 GB, free: 103 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008643/0.7034, allocations: 0.6743 MB / 0.77 GB, free: 102.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001225/0.7046, allocations: 272.8 kB / 0.7703 GB, free: 102.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007447/0.7054, allocations: 0.6896 MB / 0.771 GB, free: 102.2 MB / 0.5762 GB Notification: Performance of SimCode: time 1.243e-06/0.7054, allocations: 0 / 0.771 GB, free: 102.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1127/0.8181, allocations: 46.85 MB / 0.8167 GB, free: 61.47 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.06/18.87, allocations: 3.609 kB / 0.8167 GB, free: 61.47 MB / 0.5762 GB " [Timeout remaining time 641] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_BasicControlValve_fmu --startTime=0 --stopTime=20 --stepSize=0.02 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_BasicControlValve.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.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: 22.79852986498736]