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.001669/0.001669, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002299/0.002299, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.459/1.459, allocations: 230.6 MB / 256 MB, free: 7.973 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.7643/0.7643, allocations: 100.3 MB / 412.7 MB, free: 3.676 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_BasicControlValve",fmuType="me",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.002639/0.002639, allocations: 81.31 kB / 0.5633 GB, free: 35.95 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1329, allocations: 74.47 MB / 0.636 GB, free: 7.648 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.06021/0.1931, allocations: 54.35 MB / 0.6891 GB, free: 1.105 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02704/0.2201, allocations: 21.83 MB / 0.7104 GB, free: 11.21 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001974/0.2221, allocations: 99.06 kB / 0.7105 GB, free: 11.11 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.00255/0.2247, allocations: 0.9042 MB / 0.7114 GB, free: 10.2 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.005308/0.23, allocations: 1.724 MB / 0.713 GB, free: 8.465 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004113/0.2341, allocations: 1.366 MB / 0.7144 GB, free: 7.094 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.003889/0.238, allocations: 2.59 MB / 0.7169 GB, free: 4.488 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007511/0.2387, allocations: 314.7 kB / 0.7172 GB, free: 4.148 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002069/0.2408, allocations: 1.116 MB / 0.7183 GB, free: 3.027 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001331/0.2421, allocations: 0.9523 MB / 0.7192 GB, free: 2.07 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0003335/0.2425, allocations: 128 kB / 0.7193 GB, free: 1.945 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003816/0.2463, allocations: 1.291 MB / 0.7206 GB, free: 0.6523 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000352/0.2466, allocations: 342.4 kB / 0.7209 GB, free: 324 kB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001066/0.2477, allocations: 0.909 MB / 0.7218 GB, free: 15.4 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.005494/0.2532, allocations: 2.685 MB / 0.7244 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.2532, allocations: 0 / 0.7244 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.144e-06/0.2532, allocations: 0 / 0.7244 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.363e-05/0.2532, allocations: 0 / 0.7244 GB, free: 12.71 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.004623/0.2579, allocations: 2.357 MB / 0.7267 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 9.793e-05/0.258, allocations: 8.031 kB / 0.7267 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002268/0.2582, allocations: 177.2 kB / 0.7269 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003605/0.2586, allocations: 226.5 kB / 0.7271 GB, free: 9.891 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002487/0.261, allocations: 1.187 MB / 0.7283 GB, free: 8.66 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.085e-05/0.2611, allocations: 90.28 kB / 0.7284 GB, free: 8.57 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000157/0.2613, allocations: 120 kB / 0.7285 GB, free: 8.453 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002098/0.2634, allocations: 1.222 MB / 0.7297 GB, free: 7.188 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.769e-05/0.2634, allocations: 3.938 kB / 0.7297 GB, free: 7.184 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.792e-05/0.2635, allocations: 48 kB / 0.7297 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.269e-05/0.2635, allocations: 28 kB / 0.7298 GB, free: 7.109 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002009/0.2655, allocations: 1.176 MB / 0.7309 GB, free: 5.926 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006805/0.2723, allocations: 4.957 MB / 0.7358 GB, free: 0.5273 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0015/0.2738, allocations: 0.8349 MB / 0.7366 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008345/0.2747, allocations: 422.3 kB / 0.737 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003774/0.2784, allocations: 1.776 MB / 0.7387 GB, free: 13.47 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.51e-05/0.2785, allocations: 43.56 kB / 0.7387 GB, free: 13.42 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=103): time 3.407e-06/0.2785, allocations: 4 kB / 0.7387 GB, free: 13.41 MB / 0.5762 GB Notification: Performance of matching and sorting (n=103): time 0.003574/0.2821, allocations: 1.493 MB / 0.7402 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.489e-05/0.2821, allocations: 64.41 kB / 0.7403 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001794/0.2839, allocations: 1.284 MB / 0.7415 GB, free: 10.54 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001631/0.2841, allocations: 41.7 kB / 0.7416 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005985/0.2847, allocations: 0.7661 MB / 0.7423 GB, free: 9.723 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002959/0.2849, allocations: 372.8 kB / 0.7427 GB, free: 9.355 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002348/0.2852, allocations: 170.6 kB / 0.7428 GB, free: 9.184 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001596/0.2853, allocations: 345.9 kB / 0.7432 GB, free: 8.84 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006294/0.286, allocations: 301.8 kB / 0.7434 GB, free: 8.543 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006943/0.2867, allocations: 442 kB / 0.7439 GB, free: 8.07 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001378/0.288, allocations: 0.7659 MB / 0.7446 GB, free: 7.277 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.288, allocations: 0 / 0.7446 GB, free: 7.277 MB / 0.5762 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002307/0.2904, allocations: 1.155 MB / 0.7457 GB, free: 6.105 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.2904, allocations: 4 kB / 0.7457 GB, free: 6.102 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.2904, allocations: 8.266 kB / 0.7458 GB, free: 6.094 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005926/0.291, allocations: 162.4 kB / 0.7459 GB, free: 5.926 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007511/0.2917, allocations: 199.7 kB / 0.7461 GB, free: 5.73 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004329/0.2961, allocations: 4.506 MB / 0.7505 GB, free: 0.8828 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008307/0.2969, allocations: 91.34 kB / 0.7506 GB, free: 0.793 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/0.297, allocations: 43.98 kB / 0.7506 GB, free: 0.75 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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.0006019/0.2976, allocations: 266.8 kB / 0.7509 GB, free: 492 kB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003/0.2979, allocations: 174.8 kB / 0.751 GB, free: 316 kB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2885/0.5864, allocations: 1.635 MB / 0.7526 GB, free: 110.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.212e-05/0.5864, allocations: 9.469 kB / 0.7527 GB, free: 110.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/0.5864, allocations: 6.688 kB / 0.7527 GB, free: 110.4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.839e-05/0.5865, allocations: 5.297 kB / 0.7527 GB, free: 110.4 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005128/0.5916, allocations: 2.586 MB / 0.7552 GB, free: 109.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.5916, allocations: 2.188 kB / 0.7552 GB, free: 109.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006645/0.5923, allocations: 166.6 kB / 0.7554 GB, free: 109.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006209/0.5929, allocations: 174.9 kB / 0.7555 GB, free: 109.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.468e-05/0.593, allocations: 37.91 kB / 0.7556 GB, free: 109.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003124/0.5961, allocations: 4.508 MB / 0.76 GB, free: 105.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.5961, allocations: 1.844 kB / 0.76 GB, free: 105.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002895/0.599, allocations: 1.633 MB / 0.7616 GB, free: 104.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005945/0.5996, allocations: 275.8 kB / 0.7618 GB, free: 104.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001734/0.5998, allocations: 31.62 kB / 0.7618 GB, free: 104.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006153/0.6004, allocations: 25.19 kB / 0.7619 GB, free: 104.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001807/0.6005, allocations: 97 kB / 0.762 GB, free: 104.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.904e-05/0.6006, allocations: 37.62 kB / 0.762 GB, free: 104.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001407/0.602, allocations: 0.9083 MB / 0.7629 GB, free: 104.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.602, allocations: 3.562 kB / 0.7629 GB, free: 104.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001536/0.6036, allocations: 0.5963 MB / 0.7635 GB, free: 104.2 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 (92): * Single equations (assignments): 89 * 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.00386/0.6074, allocations: 2.8 MB / 0.7662 GB, free: 102.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002356/0.6098, allocations: 1.141 MB / 0.7673 GB, free: 102.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.6098, allocations: 0.5312 kB / 0.7673 GB, free: 102.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001356/0.6112, allocations: 0.7902 MB / 0.7681 GB, free: 101.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002419/0.6136, allocations: 0.5186 MB / 0.7686 GB, free: 101.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01741/0.631, allocations: 10.72 MB / 0.7791 GB, free: 96.46 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000545/0.6315, allocations: 1.259 MB / 0.7803 GB, free: 95.73 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001054/0.6326, allocations: 302.8 kB / 0.7806 GB, free: 95.64 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006251/0.6332, allocations: 0.7067 MB / 0.7813 GB, free: 95.1 MB / 0.5762 GB Notification: Performance of SimCode: time 1.633e-06/0.6332, allocations: 0 / 0.7813 GB, free: 95.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1102/0.7435, allocations: 46.42 MB / 0.8266 GB, free: 51.64 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.17/15.92, allocations: 0 / 0.8266 GB, free: 51.64 MB / 0.5762 GB " [Timeout remaining time 644] (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: 19.569648187840357]