Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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.001511/0.001511, 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.001525/0.001525, allocations: 165.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 1.25/1.25, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.9533/0.9533, allocations: 116 MB / 375.2 MB, free: 4.18 MB / 346.7 MB " [Timeout remaining time 178] 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.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.684e-06/1.684e-06, allocations: 0 / 0.5533 GB, free: 13.33 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.665e-05/2.833e-05, allocations: 2.281 kB / 0.5533 GB, free: 13.33 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.8356/0.8357, allocations: 151.4 MB / 0.7011 GB, free: 4.5 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.01823/0.8539, allocations: 10.14 MB / 0.711 GB, free: 14.32 MB / 0.573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004427/0.8583, allocations: 72.78 kB / 0.7111 GB, free: 14.28 MB / 0.573 GB Notification: Performance of NFTyping.typeComponents: time 0.004392/0.8627, allocations: 0.7439 MB / 0.7118 GB, free: 13.68 MB / 0.573 GB Notification: Performance of NFTyping.typeBindings: time 0.009407/0.8721, allocations: 1.836 MB / 0.7136 GB, free: 12.2 MB / 0.573 GB Notification: Performance of NFTyping.typeClassSections: time 0.006071/0.8782, allocations: 1.157 MB / 0.7147 GB, free: 11.3 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.007962/0.8862, allocations: 2.775 MB / 0.7174 GB, free: 9.637 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001373/0.8875, allocations: 286.4 kB / 0.7177 GB, free: 9.438 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00574/0.8933, allocations: 1.498 MB / 0.7192 GB, free: 8.543 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002805/0.8961, allocations: 1.262 MB / 0.7204 GB, free: 7.91 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0004948/0.8966, allocations: 144 kB / 0.7205 GB, free: 7.91 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005882/0.9025, allocations: 1.693 MB / 0.7222 GB, free: 7.172 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0005686/0.903, allocations: 387.7 kB / 0.7225 GB, free: 6.859 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.001619/0.9046, allocations: 0.5906 MB / 0.7231 GB, free: 6.582 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.007945/0.9126, allocations: 2.694 MB / 0.7258 GB, free: 4.855 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 1.786e-05/0.9126, allocations: 3.938 kB / 0.7258 GB, free: 4.852 MB / 0.573 GB Notification: Performance of FrontEnd: time 7.114e-06/0.9126, allocations: 4 kB / 0.7258 GB, free: 4.848 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0002024/0.9128, allocations: 0 / 0.7258 GB, free: 4.848 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.005613/0.9184, allocations: 2.002 MB / 0.7277 GB, free: 3.402 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 7.899e-05/0.9185, allocations: 10.53 kB / 0.7277 GB, free: 3.402 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001869/0.9187, allocations: 182 kB / 0.7279 GB, free: 3.254 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007575/0.9195, allocations: 185 kB / 0.7281 GB, free: 3.164 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003152/0.9226, allocations: 0.9158 MB / 0.729 GB, free: 2.453 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000104/0.9227, allocations: 86.47 kB / 0.7291 GB, free: 2.414 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002074/0.9229, allocations: 119.9 kB / 0.7292 GB, free: 2.375 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002595/0.9255, allocations: 1.559 MB / 0.7307 GB, free: 1.449 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.629e-05/0.9255, allocations: 3.938 kB / 0.7307 GB, free: 1.445 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001103/0.9257, allocations: 46.81 kB / 0.7307 GB, free: 1.41 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.875e-05/0.9257, allocations: 29.09 kB / 0.7308 GB, free: 1.41 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002505/0.9282, allocations: 1.702 MB / 0.7324 GB, free: 0.5703 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006835/0.935, allocations: 3.714 MB / 0.7361 GB, free: 13.96 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00204/0.9371, allocations: 1.185 MB / 0.7372 GB, free: 13.32 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001497/0.9386, allocations: 0.6355 MB / 0.7378 GB, free: 12.99 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004364/0.9429, allocations: 2.067 MB / 0.7399 GB, free: 11.55 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001165/0.9441, allocations: 0.7451 MB / 0.7406 GB, free: 11.11 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=128): time 2.866e-06/0.9441, allocations: 5.5 kB / 0.7406 GB, free: 11.1 MB / 0.5886 GB Notification: Performance of matching and sorting (n=129): time 0.007022/0.9511, allocations: 3.787 MB / 0.7443 GB, free: 9.035 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.864e-05/0.9512, allocations: 77.98 kB / 0.7444 GB, free: 8.957 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009781/0.9522, allocations: 0.7188 MB / 0.7451 GB, free: 8.535 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 6.507e-05/0.9523, allocations: 49.83 kB / 0.7451 GB, free: 8.488 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004321/0.9527, allocations: 0.5283 MB / 0.7456 GB, free: 8.016 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002826/0.953, allocations: 449.8 kB / 0.7461 GB, free: 7.625 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003103/0.9533, allocations: 209 kB / 0.7463 GB, free: 7.504 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002696/0.9536, allocations: 348.9 kB / 0.7466 GB, free: 7.168 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007528/0.9543, allocations: 0.551 MB / 0.7471 GB, free: 6.867 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008198/0.9551, allocations: 0.6543 MB / 0.7478 GB, free: 6.211 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001578/0.9567, allocations: 1.251 MB / 0.749 GB, free: 4.93 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.9567, allocations: 4 kB / 0.749 GB, free: 4.926 MB / 0.5886 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002537/0.9592, allocations: 1.645 MB / 0.7506 GB, free: 3.258 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 5.354e-05/0.9593, allocations: 33.7 kB / 0.7506 GB, free: 3.219 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.065e-05/0.9593, allocations: 0 / 0.7506 GB, free: 3.219 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006922/0.96, allocations: 164.7 kB / 0.7508 GB, free: 3.055 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009224/0.9609, allocations: 247.7 kB / 0.751 GB, free: 2.812 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003646/0.9646, allocations: 2.588 MB / 0.7535 GB, free: 116 kB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001199/0.9658, allocations: 52 kB / 0.7536 GB, free: 64 kB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001146/0.9659, allocations: 51.97 kB / 0.7536 GB, free: 12 kB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006432/0.9665, allocations: 299 kB / 0.7539 GB, free: 15.71 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003201/0.9669, allocations: 127.2 kB / 0.7541 GB, free: 15.59 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003587/0.9705, allocations: 2.336 MB / 0.7563 GB, free: 13.28 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.591e-05/0.9705, allocations: 16 kB / 0.7563 GB, free: 13.27 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-05/0.9705, allocations: 4 kB / 0.7564 GB, free: 13.26 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.986e-05/0.9705, allocations: 7.969 kB / 0.7564 GB, free: 13.25 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005291/0.9758, allocations: 3.19 MB / 0.7595 GB, free: 9.992 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.9758, allocations: 7.938 kB / 0.7595 GB, free: 9.984 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006685/0.9765, allocations: 263.7 kB / 0.7597 GB, free: 9.727 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003452/0.9768, allocations: 142.6 kB / 0.7599 GB, free: 9.586 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001628/0.977, allocations: 47.97 kB / 0.7599 GB, free: 9.539 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002472/0.9795, allocations: 2.316 MB / 0.7622 GB, free: 7.113 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/0.9795, allocations: 4 kB / 0.7622 GB, free: 7.109 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004048/0.9835, allocations: 2.625 MB / 0.7647 GB, free: 4.449 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008964/0.9844, allocations: 294.9 kB / 0.765 GB, free: 4.16 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001228/0.9845, allocations: 28 kB / 0.7651 GB, free: 4.133 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004037/0.9849, allocations: 51.95 kB / 0.7651 GB, free: 4.082 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002635/0.9852, allocations: 117.1 kB / 0.7652 GB, free: 3.969 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/0.9853, allocations: 51.98 kB / 0.7653 GB, free: 3.918 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0007141/0.986, allocations: 0.5273 MB / 0.7658 GB, free: 3.375 MB / 0.6042 GB Notification: Performance of sort global known variables: time 4e-08/0.986, allocations: 0 / 0.7658 GB, free: 3.375 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001858/0.9879, allocations: 0.5462 MB / 0.7663 GB, free: 2.828 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance1.rear.m_flow,flowResistance2.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005341/0.9932, allocations: 3.649 MB / 0.7699 GB, free: 15.14 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.003134/0.9964, allocations: 1.592 MB / 0.7714 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.9964, allocations: 4.125 kB / 0.7714 GB, free: 13.51 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.001616/0.998, allocations: 0.9273 MB / 0.7723 GB, free: 12.57 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002207/1, allocations: 0.5584 MB / 0.7729 GB, free: 12.03 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01886/1.019, allocations: 10.47 MB / 0.7831 GB, free: 1.34 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006499/1.02, allocations: 0.5985 MB / 0.7837 GB, free: 0.7109 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.001465/1.021, allocations: 366.4 kB / 0.784 GB, free: 408 kB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008202/1.022, allocations: 0.5824 MB / 0.7846 GB, free: 15.81 MB / 0.6355 GB Notification: Performance of SimCode: time 2.906e-06/1.022, allocations: 7.938 kB / 0.7846 GB, free: 15.8 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08507/1.107, allocations: 45.06 MB / 0.8286 GB, free: 3.359 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.242/9.349, allocations: 4 kB / 0.8286 GB, free: 3.355 MB / 0.6667 GB " [Timeout remaining time 651] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --stepSize=0.1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable pulse.T_start in file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.227803003974259]