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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00279/0.002789, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002864/0.002864, allocations: 195.8 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.029/2.029, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.053/1.053, allocations: 93.71 MB / 384.1 MB, free: 6.984 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002599/0.002599, allocations: 85.3 kB / 463.5 MB, free: 21.96 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.2123, allocations: 68.26 MB / 0.5193 GB, free: 6.898 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.08403/0.2964, allocations: 53.26 MB / 0.5713 GB, free: 1.453 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5305/0.8269, allocations: 21.57 MB / 0.5924 GB, free: 5.895 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002477/0.8294, allocations: 71.31 kB / 0.5924 GB, free: 5.895 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004487/0.834, allocations: 0.8978 MB / 0.5933 GB, free: 5.891 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007772/0.8418, allocations: 1.694 MB / 0.595 GB, free: 5.84 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00647/0.8483, allocations: 1.33 MB / 0.5963 GB, free: 5.797 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.007355/0.8557, allocations: 2.556 MB / 0.5988 GB, free: 5.793 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001249/0.8569, allocations: 494.7 kB / 0.5992 GB, free: 5.668 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004738/0.8617, allocations: 1.045 MB / 0.6003 GB, free: 5.586 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002227/0.864, allocations: 0.9443 MB / 0.6012 GB, free: 5.348 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003103/0.8643, allocations: 126.6 kB / 0.6013 GB, free: 5.348 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006668/0.871, allocations: 1.243 MB / 0.6025 GB, free: 5.297 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005689/0.8716, allocations: 344.3 kB / 0.6028 GB, free: 5.219 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001488/0.8731, allocations: 0.9004 MB / 0.6037 GB, free: 4.91 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009899/0.883, allocations: 2.601 MB / 0.6063 GB, free: 4.449 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.235e-05/0.883, allocations: 3.812 kB / 0.6063 GB, free: 4.449 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.8831, allocations: 0 / 0.6063 GB, free: 4.449 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.285e-05/0.8831, allocations: 0 / 0.6063 GB, free: 4.449 MB / 462.1 MB 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.008109/0.8912, allocations: 2.353 MB / 0.6086 GB, free: 19.25 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.307e-05/0.8913, allocations: 9.5 kB / 0.6086 GB, free: 19.25 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002396/0.8915, allocations: 170.1 kB / 0.6087 GB, free: 19.21 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006737/0.8922, allocations: 218.2 kB / 0.6089 GB, free: 19.1 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002453/0.8947, allocations: 1.172 MB / 0.6101 GB, free: 18.65 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.279e-05/0.8948, allocations: 89.84 kB / 0.6102 GB, free: 18.64 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001885/0.895, allocations: 114.4 kB / 0.6103 GB, free: 18.64 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004002/0.899, allocations: 1.204 MB / 0.6115 GB, free: 18.52 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.981e-05/0.8991, allocations: 0 / 0.6115 GB, free: 18.52 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003475/0.8994, allocations: 49.81 kB / 0.6115 GB, free: 18.52 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.433e-05/0.8995, allocations: 31.45 kB / 0.6115 GB, free: 18.52 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00226/0.9017, allocations: 1.138 MB / 0.6126 GB, free: 18.5 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01062/0.9124, allocations: 5.041 MB / 0.6176 GB, free: 15.82 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002121/0.9145, allocations: 0.9105 MB / 0.6185 GB, free: 15.77 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008539/0.9154, allocations: 488.8 kB / 0.6189 GB, free: 15.75 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00987/0.9253, allocations: 5.15 MB / 0.624 GB, free: 11.2 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.031e-05/0.9254, allocations: 44.69 kB / 0.624 GB, free: 11.16 MB / 478.1 MB Notification: Performance of pre-optimization done (n=103): time 4.088e-06/0.9254, allocations: 0 / 0.624 GB, free: 11.16 MB / 478.1 MB Notification: Performance of matching and sorting (n=103): time 0.004553/0.9299, allocations: 1.722 MB / 0.6257 GB, free: 10.71 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.45e-05/0.93, allocations: 63.59 kB / 0.6257 GB, free: 10.65 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003752/0.9338, allocations: 1.278 MB / 0.627 GB, free: 10.49 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002162/0.934, allocations: 46.52 kB / 0.627 GB, free: 10.46 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008063/0.9348, allocations: 0.7581 MB / 0.6278 GB, free: 10.24 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005012/0.9354, allocations: 354.3 kB / 0.6281 GB, free: 10.01 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002978/0.9357, allocations: 176.7 kB / 0.6283 GB, free: 9.992 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002029/0.9359, allocations: 338 kB / 0.6286 GB, free: 9.688 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006857/0.9366, allocations: 309.1 kB / 0.6289 GB, free: 9.68 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001068/0.9376, allocations: 432.2 kB / 0.6293 GB, free: 9.559 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002016/0.9397, allocations: 0.7698 MB / 0.6301 GB, free: 9.16 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.473e-05/0.9398, allocations: 1.094 kB / 0.6301 GB, free: 9.16 MB / 478.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.003275/0.9431, allocations: 1.146 MB / 0.6312 GB, free: 8.676 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.7e-05/0.9431, allocations: 8.969 kB / 0.6312 GB, free: 8.676 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.9431, allocations: 1.375 kB / 0.6312 GB, free: 8.676 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006911/0.9438, allocations: 169.8 kB / 0.6314 GB, free: 8.609 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006977/0.9445, allocations: 196.2 kB / 0.6315 GB, free: 8.598 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006008/0.9506, allocations: 4.813 MB / 0.6362 GB, free: 4.039 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/0.9518, allocations: 87.27 kB / 0.6363 GB, free: 3.977 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001389/0.9519, allocations: 41.97 kB / 0.6364 GB, free: 3.969 MB / 478.1 MB 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.001212/0.9532, allocations: 277.6 kB / 0.6366 GB, free: 3.762 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001128/0.9543, allocations: 165.7 kB / 0.6368 GB, free: 3.672 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003337/0.9577, allocations: 1.65 MB / 0.6384 GB, free: 2.914 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.356e-05/0.9577, allocations: 14.38 kB / 0.6384 GB, free: 2.91 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.879e-06/0.9577, allocations: 6.875 kB / 0.6384 GB, free: 2.91 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.524e-05/0.9577, allocations: 7.031 kB / 0.6384 GB, free: 2.91 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006361/0.9641, allocations: 2.63 MB / 0.641 GB, free: 1.531 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.9642, allocations: 2.25 kB / 0.641 GB, free: 1.531 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005723/0.9647, allocations: 169.1 kB / 0.6412 GB, free: 1.496 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005843/0.9653, allocations: 174.2 kB / 0.6413 GB, free: 1.391 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.195e-05/0.9654, allocations: 33.36 kB / 0.6414 GB, free: 1.371 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006103/0.9715, allocations: 4.822 MB / 0.6461 GB, free: 12.64 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.9716, allocations: 6.125 kB / 0.6461 GB, free: 12.64 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004492/0.9761, allocations: 1.626 MB / 0.6477 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007295/0.9768, allocations: 341.8 kB / 0.648 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002142/0.977, allocations: 27.72 kB / 0.648 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005844/0.9776, allocations: 26.45 kB / 0.648 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002026/0.9778, allocations: 90.61 kB / 0.6481 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.314e-05/0.9779, allocations: 35.86 kB / 0.6482 GB, free: 11.29 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001611/0.9796, allocations: 0.9091 MB / 0.649 GB, free: 10.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.9796, allocations: 4 kB / 0.649 GB, free: 10.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003235/0.9828, allocations: 0.5948 MB / 0.6496 GB, free: 10.61 MB / 494.1 MB 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.005289/0.9881, allocations: 2.795 MB / 0.6524 GB, free: 8.887 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003715/0.9919, allocations: 1.224 MB / 0.6536 GB, free: 8.145 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.9919, allocations: 2.781 kB / 0.6536 GB, free: 8.145 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001535/0.9935, allocations: 0.8216 MB / 0.6544 GB, free: 7.586 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003665/0.9971, allocations: 0.5253 MB / 0.6549 GB, free: 7.301 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02555/1.023, allocations: 11.98 MB / 0.6666 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001079/1.024, allocations: 1.265 MB / 0.6678 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002419/1.026, allocations: 292.6 kB / 0.6681 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001208/1.028, allocations: 0.6984 MB / 0.6688 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of SimCode: time 1.663e-06/1.028, allocations: 4 kB / 0.6688 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1424/1.17, allocations: 44.94 MB / 0.7127 GB, free: 14.41 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.38/17.55, allocations: 6.609 kB / 0.7127 GB, free: 14.41 MB / 0.545 GB (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 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_BasicControlValve.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe 2>&1) 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) Reference file matches