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.0008561/0.0008561, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0009505/0.0009505, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8415/0.8415, allocations: 177.1 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.6198/0.6198, allocations: 116 MB / 375.2 MB, free: 4.191 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.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: Performance of FrontEnd - loaded program: time 2.965e-06/2.965e-06, allocations: 4 kB / 0.5533 GB, free: 13.32 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.968e-05/2.264e-05, allocations: 2.281 kB / 0.5533 GB, free: 13.32 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.03545/0.03547, allocations: 52.13 MB / 0.6042 GB, free: 9.012 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.01389/0.04936, allocations: 17.44 MB / 0.6212 GB, free: 7.52 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001728/0.05109, allocations: 114.9 kB / 0.6213 GB, free: 7.406 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.001622/0.05271, allocations: 0.8218 MB / 0.6221 GB, free: 6.578 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.003798/0.05651, allocations: 1.897 MB / 0.624 GB, free: 4.668 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.003224/0.05973, allocations: 1.404 MB / 0.6253 GB, free: 3.258 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.003058/0.06279, allocations: 2.954 MB / 0.6282 GB, free: 296 kB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005091/0.0633, allocations: 307.1 kB / 0.6285 GB, free: 15.96 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002103/0.0654, allocations: 1.593 MB / 0.6301 GB, free: 14.36 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007235/0.06613, allocations: 0.7592 MB / 0.6308 GB, free: 13.6 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001356/0.06626, allocations: 124 kB / 0.6309 GB, free: 13.48 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002405/0.06867, allocations: 1.158 MB / 0.6321 GB, free: 12.32 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0003179/0.06899, allocations: 362.1 kB / 0.6324 GB, free: 11.96 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.000558/0.06954, allocations: 0.6311 MB / 0.633 GB, free: 11.33 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.003996/0.07354, allocations: 2.796 MB / 0.6357 GB, free: 8.527 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.07355, allocations: 0 / 0.6357 GB, free: 8.527 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.104e-06/0.07355, allocations: 0 / 0.6357 GB, free: 8.527 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 2.957e-05/0.07358, allocations: 0 / 0.6357 GB, free: 8.527 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 0.003068/0.07665, allocations: 2.455 MB / 0.6381 GB, free: 6.027 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 6.151e-05/0.07671, allocations: 12.03 kB / 0.6382 GB, free: 6.016 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001577/0.07686, allocations: 173.4 kB / 0.6383 GB, free: 5.836 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005863/0.07745, allocations: 270.4 kB / 0.6386 GB, free: 5.57 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002181/0.07963, allocations: 1.279 MB / 0.6398 GB, free: 4.25 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.406e-05/0.07969, allocations: 98.27 kB / 0.6399 GB, free: 4.152 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.0798, allocations: 116 kB / 0.64 GB, free: 4.039 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001466/0.08127, allocations: 1.33 MB / 0.6413 GB, free: 2.629 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.951e-05/0.08128, allocations: 0 / 0.6413 GB, free: 2.629 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.762e-05/0.08134, allocations: 48 kB / 0.6414 GB, free: 2.582 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.021e-05/0.08136, allocations: 31.94 kB / 0.6414 GB, free: 2.551 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001211/0.08257, allocations: 1.153 MB / 0.6425 GB, free: 1.391 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2382/0.3208, allocations: 3.654 MB / 0.6461 GB, free: 94.19 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009919/0.3218, allocations: 0.837 MB / 0.6469 GB, free: 93.98 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004268/0.3222, allocations: 405.9 kB / 0.6473 GB, free: 93.82 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002083/0.3243, allocations: 1.498 MB / 0.6488 GB, free: 93.12 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.514e-05/0.3243, allocations: 43.91 kB / 0.6488 GB, free: 93.07 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=103): time 2.124e-06/0.3243, allocations: 0.875 kB / 0.6488 GB, free: 93.07 MB / 0.5573 GB Notification: Performance of matching and sorting (n=103): time 0.001934/0.3263, allocations: 1.447 MB / 0.6502 GB, free: 92.62 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.471e-05/0.3263, allocations: 63.78 kB / 0.6503 GB, free: 92.56 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009572/0.3273, allocations: 1.4 MB / 0.6516 GB, free: 92.05 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 3.39e-05/0.3273, allocations: 44.58 kB / 0.6517 GB, free: 92.01 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003382/0.3276, allocations: 0.8211 MB / 0.6525 GB, free: 91.45 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000138/0.3278, allocations: 374.7 kB / 0.6529 GB, free: 91.21 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001461/0.3279, allocations: 183.3 kB / 0.653 GB, free: 91.12 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 4.733e-05/0.328, allocations: 342.6 kB / 0.6534 GB, free: 90.8 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003048/0.3283, allocations: 289 kB / 0.6536 GB, free: 90.7 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003928/0.3287, allocations: 0.5451 MB / 0.6542 GB, free: 90.3 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007172/0.3294, allocations: 0.7968 MB / 0.6549 GB, free: 89.84 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.3294, allocations: 3.484 kB / 0.6549 GB, free: 89.84 MB / 0.5573 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.00115/0.3305, allocations: 1.168 MB / 0.6561 GB, free: 89.33 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.3306, allocations: 11 kB / 0.6561 GB, free: 89.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.3306, allocations: 3.5 kB / 0.6561 GB, free: 89.33 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003726/0.3309, allocations: 163.3 kB / 0.6563 GB, free: 89.27 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00038/0.3313, allocations: 208.1 kB / 0.6565 GB, free: 89.25 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001814/0.3331, allocations: 4.479 MB / 0.6608 GB, free: 85.09 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004308/0.3336, allocations: 95.28 kB / 0.6609 GB, free: 85.04 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.031e-05/0.3336, allocations: 47.33 kB / 0.661 GB, free: 85.03 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (112): * Single equations (assignments): 109 * 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.0003206/0.3339, allocations: 281.5 kB / 0.6612 GB, free: 84.82 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.3341, allocations: 196.7 kB / 0.6614 GB, free: 84.71 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001619/0.3357, allocations: 1.562 MB / 0.6629 GB, free: 84.01 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/0.3357, allocations: 9.938 kB / 0.663 GB, free: 84.01 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.3357, allocations: 6.438 kB / 0.663 GB, free: 84 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.3357, allocations: 4.875 kB / 0.663 GB, free: 84 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002757/0.3385, allocations: 2.302 MB / 0.6652 GB, free: 82.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.3385, allocations: 2.062 kB / 0.6652 GB, free: 82.86 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003675/0.3388, allocations: 155.3 kB / 0.6654 GB, free: 82.84 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004032/0.3392, allocations: 167.5 kB / 0.6655 GB, free: 82.79 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.412e-05/0.3393, allocations: 32.5 kB / 0.6656 GB, free: 82.77 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002062/0.3414, allocations: 4.473 MB / 0.6699 GB, free: 78.61 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.3414, allocations: 10.19 kB / 0.6699 GB, free: 78.6 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00194/0.3433, allocations: 1.542 MB / 0.6714 GB, free: 77.81 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004361/0.3437, allocations: 274.2 kB / 0.6717 GB, free: 77.65 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001206/0.3439, allocations: 28.91 kB / 0.6717 GB, free: 77.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000306/0.3442, allocations: 24.95 kB / 0.6717 GB, free: 77.62 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001454/0.3443, allocations: 88.31 kB / 0.6718 GB, free: 77.61 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.996e-05/0.3444, allocations: 35.84 kB / 0.6719 GB, free: 77.6 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0009349/0.3453, allocations: 0.9751 MB / 0.6728 GB, free: 77.2 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5e-08/0.3453, allocations: 2.812 kB / 0.6728 GB, free: 77.2 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.00112/0.3464, allocations: 0.5706 MB / 0.6734 GB, free: 77.09 MB / 0.5573 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.002243/0.3487, allocations: 2.657 MB / 0.676 GB, free: 75.7 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001259/0.3499, allocations: 1.117 MB / 0.6771 GB, free: 75.1 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3499, allocations: 1.594 kB / 0.6771 GB, free: 75.1 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0005886/0.3505, allocations: 0.7667 MB / 0.6778 GB, free: 74.61 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001672/0.3522, allocations: 0.7319 MB / 0.6785 GB, free: 74.39 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01084/0.363, allocations: 11.22 MB / 0.6895 GB, free: 68.05 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004084/0.3634, allocations: 0.7146 MB / 0.6902 GB, free: 67.29 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0008322/0.3643, allocations: 299.7 kB / 0.6905 GB, free: 67.02 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004285/0.3647, allocations: 0.7346 MB / 0.6912 GB, free: 66.29 MB / 0.5573 GB Notification: Performance of SimCode: time 2.354e-06/0.3647, allocations: 0 / 0.6912 GB, free: 66.29 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05753/0.4222, allocations: 53.17 MB / 0.7431 GB, free: 13.89 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.836/8.258, allocations: 4.062 kB / 0.7431 GB, free: 13.89 MB / 0.5573 GB " [Timeout remaining time 652] (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/jenkins/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: 10.788905017077923]