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.001967/0.001967, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002665/0.002665, allocations: 213.6 kB / 22.24 MB, free: 5.258 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.802/1.802, allocations: 230.6 MB / 256 MB, free: 7.789 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 1.089/1.089, allocations: 100.9 MB / 413.3 MB, free: 2.863 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.004446/0.004446, allocations: 95.91 kB / 0.5641 GB, free: 35.51 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2239/0.2283, allocations: 74.61 MB / 0.6369 GB, free: 6.457 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.06824/0.2966, allocations: 49.07 MB / 0.6849 GB, free: 5.215 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0292/0.3258, allocations: 19.76 MB / 0.7042 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003447/0.3292, allocations: 103.1 kB / 0.7043 GB, free: 1.293 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003492/0.3327, allocations: 0.7874 MB / 0.705 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.008318/0.341, allocations: 1.7 MB / 0.7067 GB, free: 14.79 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.006029/0.347, allocations: 1.34 MB / 0.708 GB, free: 13.44 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.006491/0.3535, allocations: 2.582 MB / 0.7105 GB, free: 10.85 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009903/0.3545, allocations: 298.7 kB / 0.7108 GB, free: 10.52 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002841/0.3574, allocations: 1.116 MB / 0.7119 GB, free: 9.402 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001951/0.3593, allocations: 0.8741 MB / 0.7127 GB, free: 8.523 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.000277/0.3596, allocations: 128 kB / 0.7129 GB, free: 8.398 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004463/0.3641, allocations: 1.135 MB / 0.714 GB, free: 7.262 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0004409/0.3645, allocations: 342.3 kB / 0.7143 GB, free: 6.926 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001039/0.3655, allocations: 0.7304 MB / 0.715 GB, free: 6.191 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.008356/0.3739, allocations: 2.657 MB / 0.7176 GB, free: 3.523 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 9.518e-06/0.3739, allocations: 0 / 0.7176 GB, free: 3.523 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.886e-06/0.3739, allocations: 0 / 0.7176 GB, free: 3.523 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.691e-05/0.374, allocations: 0 / 0.7176 GB, free: 3.523 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.00571/0.3797, allocations: 2.353 MB / 0.7199 GB, free: 1.125 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 7.639e-05/0.3797, allocations: 13.47 kB / 0.7199 GB, free: 1.113 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002527/0.38, allocations: 173.2 kB / 0.7201 GB, free: 0.9336 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000871/0.3809, allocations: 250.5 kB / 0.7203 GB, free: 0.6875 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003411/0.3843, allocations: 1.179 MB / 0.7215 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.3844, allocations: 90.28 kB / 0.7216 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002454/0.3846, allocations: 116 kB / 0.7217 GB, free: 15.26 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002741/0.3874, allocations: 1.281 MB / 0.7229 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.714e-05/0.3874, allocations: 7.938 kB / 0.7229 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001059/0.3875, allocations: 44 kB / 0.723 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.533e-05/0.3876, allocations: 32 kB / 0.723 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002399/0.39, allocations: 1.137 MB / 0.7241 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00782/0.3978, allocations: 3.136 MB / 0.7272 GB, free: 9.484 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00164/0.3994, allocations: 0.8617 MB / 0.728 GB, free: 8.609 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007354/0.4002, allocations: 418.3 kB / 0.7284 GB, free: 8.203 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003875/0.404, allocations: 1.562 MB / 0.7299 GB, free: 6.617 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.809e-05/0.4041, allocations: 47.56 kB / 0.73 GB, free: 6.562 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=103): time 3.096e-06/0.4041, allocations: 0 / 0.73 GB, free: 6.562 MB / 0.5606 GB Notification: Performance of matching and sorting (n=103): time 0.003535/0.4076, allocations: 1.454 MB / 0.7314 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.857e-05/0.4077, allocations: 68.33 kB / 0.7315 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001816/0.4095, allocations: 1.284 MB / 0.7327 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.449e-05/0.4096, allocations: 49.69 kB / 0.7328 GB, free: 3.672 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007637/0.4103, allocations: 0.7622 MB / 0.7335 GB, free: 2.902 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003322/0.4107, allocations: 376.7 kB / 0.7339 GB, free: 2.531 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002706/0.4109, allocations: 170.6 kB / 0.734 GB, free: 2.355 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.00017/0.4111, allocations: 349.9 kB / 0.7344 GB, free: 2.008 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005743/0.4117, allocations: 285.9 kB / 0.7346 GB, free: 1.73 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008278/0.4125, allocations: 0.5133 MB / 0.7351 GB, free: 1.152 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001399/0.4139, allocations: 0.7645 MB / 0.7359 GB, free: 356 kB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.952e-06/0.4139, allocations: 0 / 0.7359 GB, free: 356 kB / 0.5606 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002393/0.4163, allocations: 1.131 MB / 0.737 GB, free: 15.2 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.546e-05/0.4164, allocations: 9.312 kB / 0.737 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.4164, allocations: 4 kB / 0.737 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006794/0.417, allocations: 162.4 kB / 0.7372 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007157/0.4178, allocations: 191.7 kB / 0.7373 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004654/0.4224, allocations: 4.484 MB / 0.7417 GB, free: 10 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001196/0.4236, allocations: 91.33 kB / 0.7418 GB, free: 9.914 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000136/0.4237, allocations: 39.98 kB / 0.7419 GB, free: 9.875 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.0007237/0.4245, allocations: 269.7 kB / 0.7421 GB, free: 9.602 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004232/0.4249, allocations: 174.8 kB / 0.7423 GB, free: 9.43 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002963/0.4279, allocations: 1.568 MB / 0.7438 GB, free: 7.832 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.147e-05/0.4279, allocations: 8 kB / 0.7438 GB, free: 7.824 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.4279, allocations: 7.938 kB / 0.7438 GB, free: 7.816 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.4279, allocations: 7.984 kB / 0.7438 GB, free: 7.809 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004602/0.4325, allocations: 2.332 MB / 0.7461 GB, free: 5.395 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.356e-06/0.4325, allocations: 4 kB / 0.7461 GB, free: 5.391 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005509/0.4331, allocations: 151.7 kB / 0.7463 GB, free: 5.242 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006419/0.4337, allocations: 174.6 kB / 0.7464 GB, free: 5.062 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.22e-05/0.4338, allocations: 35.97 kB / 0.7465 GB, free: 5.027 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005007/0.4388, allocations: 4.48 MB / 0.7508 GB, free: 204 kB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/0.4388, allocations: 4.031 kB / 0.7508 GB, free: 200 kB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5758/1.015, allocations: 1.562 MB / 0.7524 GB, free: 109.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001675/1.016, allocations: 258.4 kB / 0.7526 GB, free: 109.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005486/1.017, allocations: 27.09 kB / 0.7526 GB, free: 109.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007678/1.018, allocations: 26.75 kB / 0.7527 GB, free: 109.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003702/1.018, allocations: 83.5 kB / 0.7527 GB, free: 109.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001729/1.018, allocations: 36.27 kB / 0.7528 GB, free: 109.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001989/1.02, allocations: 0.9079 MB / 0.7537 GB, free: 109.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7.1e-08/1.02, allocations: 0 / 0.7537 GB, free: 109.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002448/1.023, allocations: 0.5393 MB / 0.7542 GB, free: 109.3 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.005126/1.028, allocations: 2.678 MB / 0.7568 GB, free: 108.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0027/1.03, allocations: 1.123 MB / 0.7579 GB, free: 107.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.118e-05/1.03, allocations: 2.062 kB / 0.7579 GB, free: 107.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001599/1.032, allocations: 0.7654 MB / 0.7586 GB, free: 107.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003396/1.035, allocations: 0.5268 MB / 0.7592 GB, free: 107.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02344/1.059, allocations: 10.6 MB / 0.7695 GB, free: 102.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001371/1.06, allocations: 0.6691 MB / 0.7702 GB, free: 102 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001783/1.062, allocations: 279.8 kB / 0.7704 GB, free: 101.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000987/1.063, allocations: 0.6917 MB / 0.7711 GB, free: 101.4 MB / 0.5762 GB Notification: Performance of SimCode: time 3.547e-06/1.063, allocations: 1.344 kB / 0.7711 GB, free: 101.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1631/1.226, allocations: 47.1 MB / 0.8171 GB, free: 60.08 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.27/16.5, allocations: 11.84 kB / 0.8171 GB, free: 60.07 MB / 0.5762 GB " [Timeout remaining time 643] (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: 21.405303120147437]