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.002334/0.002334, 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.003815/0.003815, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.788/1.788, allocations: 230.6 MB / 256 MB, free: 7.781 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.115/1.115, 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.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: 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.0027/0.0027, allocations: 86.73 kB / 0.5641 GB, free: 35.51 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.242, allocations: 74.61 MB / 0.6369 GB, free: 6.477 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.9853/1.227, allocations: 150.9 MB / 0.7843 GB, free: 2.781 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01995/1.247, allocations: 10.06 MB / 0.7941 GB, free: 2.633 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003932/1.251, allocations: 72.81 kB / 0.7942 GB, free: 2.633 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.003799/1.255, allocations: 0.7127 MB / 0.7949 GB, free: 2.613 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.008563/1.264, allocations: 1.69 MB / 0.7966 GB, free: 2.555 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.005252/1.269, allocations: 1.125 MB / 0.7977 GB, free: 2.531 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.006178/1.275, allocations: 2.55 MB / 0.8001 GB, free: 2.527 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008646/1.276, allocations: 279 kB / 0.8004 GB, free: 2.434 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003306/1.279, allocations: 1.083 MB / 0.8015 GB, free: 2.414 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002823/1.282, allocations: 1.313 MB / 0.8028 GB, free: 2.227 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002542/1.282, allocations: 144.2 kB / 0.8029 GB, free: 2.227 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005958/1.288, allocations: 1.675 MB / 0.8045 GB, free: 2.191 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004421/1.289, allocations: 363.8 kB / 0.8049 GB, free: 2.129 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001268/1.29, allocations: 0.6711 MB / 0.8055 GB, free: 1.953 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00681/1.297, allocations: 2.588 MB / 0.8081 GB, free: 1.238 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 9.117e-06/1.297, allocations: 0 / 0.8081 GB, free: 1.238 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.315e-06/1.297, allocations: 0 / 0.8081 GB, free: 1.238 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.506e-05/1.297, allocations: 1.094 kB / 0.8081 GB, free: 1.238 MB / 0.5762 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.005186/1.302, allocations: 1.998 MB / 0.81 GB, free: 16.07 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 7.888e-05/1.302, allocations: 16.75 kB / 0.81 GB, free: 16.07 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002602/1.302, allocations: 179.5 kB / 0.8102 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006046/1.303, allocations: 193.1 kB / 0.8104 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002109/1.305, allocations: 0.9042 MB / 0.8113 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.436e-05/1.305, allocations: 85.41 kB / 0.8113 GB, free: 15.35 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002129/1.305, allocations: 129.2 kB / 0.8115 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002967/1.308, allocations: 1.55 MB / 0.813 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.72e-05/1.308, allocations: 2.594 kB / 0.813 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001113/1.308, allocations: 45.78 kB / 0.813 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.769e-05/1.308, allocations: 28 kB / 0.8131 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003042/1.311, allocations: 1.706 MB / 0.8147 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008004/1.319, allocations: 3.68 MB / 0.8183 GB, free: 12.17 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002648/1.322, allocations: 1.186 MB / 0.8195 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001184/1.323, allocations: 0.634 MB / 0.8201 GB, free: 11.43 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004921/1.328, allocations: 2.089 MB / 0.8221 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002101/1.33, allocations: 0.7414 MB / 0.8229 GB, free: 10.06 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=128): time 5.66e-06/1.33, allocations: 0 / 0.8229 GB, free: 10.06 MB / 0.5919 GB Notification: Performance of matching and sorting (n=129): time 0.01337/1.344, allocations: 3.785 MB / 0.8265 GB, free: 8.039 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000136/1.344, allocations: 70.5 kB / 0.8266 GB, free: 7.969 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00213/1.346, allocations: 0.718 MB / 0.8273 GB, free: 7.566 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001671/1.346, allocations: 47.17 kB / 0.8274 GB, free: 7.52 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009176/1.347, allocations: 0.5331 MB / 0.8279 GB, free: 7.047 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008082/1.348, allocations: 456 kB / 0.8283 GB, free: 6.656 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007317/1.349, allocations: 205.3 kB / 0.8285 GB, free: 6.539 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0003667/1.349, allocations: 350.6 kB / 0.8288 GB, free: 6.203 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00181/1.351, allocations: 0.5447 MB / 0.8294 GB, free: 5.906 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001975/1.353, allocations: 0.6596 MB / 0.83 GB, free: 5.516 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00393/1.357, allocations: 1.251 MB / 0.8312 GB, free: 4.82 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.04e-05/1.357, allocations: 0.7188 kB / 0.8312 GB, free: 4.82 MB / 0.5919 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.005871/1.363, allocations: 1.642 MB / 0.8329 GB, free: 3.961 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001124/1.363, allocations: 37.78 kB / 0.8329 GB, free: 3.926 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.138e-05/1.363, allocations: 3.5 kB / 0.8329 GB, free: 3.926 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009079/1.364, allocations: 155.9 kB / 0.833 GB, free: 3.855 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001362/1.365, allocations: 251.2 kB / 0.8333 GB, free: 3.801 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005411/1.37, allocations: 2.58 MB / 0.8358 GB, free: 1.711 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001194/1.372, allocations: 55.22 kB / 0.8359 GB, free: 1.676 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002451/1.372, allocations: 54.5 kB / 0.8359 GB, free: 1.656 MB / 0.5919 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.001065/1.373, allocations: 286 kB / 0.8362 GB, free: 1.445 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007011/1.374, allocations: 130.7 kB / 0.8363 GB, free: 1.379 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005584/1.379, allocations: 2.328 MB / 0.8386 GB, free: 64 kB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.49e-05/1.379, allocations: 21.52 kB / 0.8386 GB, free: 60 kB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-05/1.379, allocations: 3 kB / 0.8386 GB, free: 60 kB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.145e-05/1.379, allocations: 5.016 kB / 0.8386 GB, free: 56 kB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00841/1.388, allocations: 3.209 MB / 0.8417 GB, free: 13.89 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.089e-05/1.388, allocations: 7.938 kB / 0.8417 GB, free: 13.89 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00102/1.389, allocations: 265.2 kB / 0.842 GB, free: 13.64 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005079/1.389, allocations: 146.7 kB / 0.8421 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001402/1.389, allocations: 44.77 kB / 0.8422 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003557/1.393, allocations: 2.312 MB / 0.8444 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/1.393, allocations: 7.875 kB / 0.8444 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005683/1.399, allocations: 2.627 MB / 0.847 GB, free: 8.387 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005406/1.399, allocations: 111.1 kB / 0.8471 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003202/1.399, allocations: 32.86 kB / 0.8471 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008281/1.4, allocations: 51.95 kB / 0.8472 GB, free: 8.195 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003075/1.401, allocations: 118 kB / 0.8473 GB, free: 8.082 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001399/1.401, allocations: 55.92 kB / 0.8474 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001021/1.402, allocations: 0.5163 MB / 0.8479 GB, free: 7.5 MB / 0.6075 GB Notification: Performance of sort global known variables: time 8e-08/1.402, allocations: 0 / 0.8479 GB, free: 7.5 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.002281/1.404, allocations: 0.5197 MB / 0.8484 GB, free: 6.98 MB / 0.6075 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.007418/1.411, allocations: 3.633 MB / 0.8519 GB, free: 3.406 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003817/1.415, allocations: 1.591 MB / 0.8535 GB, free: 1.801 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/1.415, allocations: 0 / 0.8535 GB, free: 1.801 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.00208/1.417, allocations: 0.9299 MB / 0.8544 GB, free: 0.8906 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002679/1.42, allocations: 399.8 kB / 0.8548 GB, free: 0.5156 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0243/1.444, allocations: 10.32 MB / 0.8648 GB, free: 6.031 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001222/1.446, allocations: 0.6016 MB / 0.8654 GB, free: 5.395 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001696/1.447, allocations: 342.8 kB / 0.8658 GB, free: 5.102 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001195/1.448, allocations: 0.5852 MB / 0.8663 GB, free: 4.52 MB / 0.6231 GB Notification: Performance of SimCode: time 2.555e-06/1.448, allocations: 0 / 0.8663 GB, free: 4.52 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1238/1.572, allocations: 40.84 MB / 0.9062 GB, free: 12.22 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.76/17.33, allocations: 4 kB / 0.9062 GB, free: 12.22 MB / 0.67 GB " [Timeout remaining time 643] (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/jenkins1/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: 22.34542501810938]