Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002695/0.002695, allocations: 172.3 kB / 15.77 MB, free: 6.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.522/1.522, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008281/0.0008283, allocations: 94.23 kB / 270.3 MB, free: 13.37 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.7888/0.7888, allocations: 90.6 MB / 409.1 MB, free: 15 MB / 298.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0003453/0.0003453, allocations: 8 kB / 485.9 MB, free: 2.086 MB / 362.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4443/0.4447, allocations: 66.27 MB / 0.5392 GB, free: 45.66 MB / 426.8 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.2137/0.6585, allocations: 130.4 MB / 0.6666 GB, free: 9.273 MB / 490.8 MB Notification: Performance of NFInst.instExpressions: time 0.004317/0.6629, allocations: 3.308 MB / 0.6698 GB, free: 5.965 MB / 490.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002963/0.6632, allocations: 7.938 kB / 0.6698 GB, free: 5.957 MB / 490.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0005976/0.6638, allocations: 151.2 kB / 0.67 GB, free: 5.809 MB / 490.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0008648/0.6647, allocations: 322.1 kB / 0.6703 GB, free: 5.492 MB / 490.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006987/0.6654, allocations: 199.3 kB / 0.6705 GB, free: 5.297 MB / 490.8 MB Notification: Performance of NFFlatten.flatten: time 0.0005289/0.6659, allocations: 497.8 kB / 0.6709 GB, free: 4.809 MB / 490.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001522/0.6661, allocations: 61.56 kB / 0.671 GB, free: 4.754 MB / 490.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003784/0.6665, allocations: 175.2 kB / 0.6712 GB, free: 4.582 MB / 490.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002701/0.6668, allocations: 187.3 kB / 0.6713 GB, free: 4.398 MB / 490.8 MB Notification: Performance of NFPackage.collectConstants: time 3.394e-05/0.6668, allocations: 12 kB / 0.6713 GB, free: 4.387 MB / 490.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008605/0.6677, allocations: 440.5 kB / 0.6718 GB, free: 3.957 MB / 490.8 MB Notification: Performance of NFScalarize.scalarize: time 5.358e-05/0.6677, allocations: 39.83 kB / 0.6718 GB, free: 3.918 MB / 490.8 MB Notification: Performance of NFVerifyModel.verify: time 8.689e-05/0.6678, allocations: 81.5 kB / 0.6719 GB, free: 3.832 MB / 490.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0004624/0.6683, allocations: 315.2 kB / 0.6722 GB, free: 3.523 MB / 490.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.6683, allocations: 0 / 0.6722 GB, free: 3.523 MB / 490.8 MB Notification: Performance of FrontEnd: time 1.843e-06/0.6683, allocations: 0 / 0.6722 GB, free: 3.523 MB / 490.8 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.6683, allocations: 4 kB / 0.6722 GB, free: 3.52 MB / 490.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001212/0.6696, allocations: 0.6104 MB / 0.6728 GB, free: 2.859 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.6696, allocations: 12.03 kB / 0.6728 GB, free: 2.848 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.051e-05/0.6697, allocations: 31.62 kB / 0.6728 GB, free: 2.816 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003833/0.6701, allocations: 261.6 kB / 0.6731 GB, free: 2.523 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.431e-05/0.6701, allocations: 16.44 kB / 0.6731 GB, free: 2.508 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.727e-05/0.6702, allocations: 27.91 kB / 0.6731 GB, free: 2.48 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005222/0.6707, allocations: 239.2 kB / 0.6733 GB, free: 2.238 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.6707, allocations: 0 / 0.6733 GB, free: 2.238 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.851e-05/0.6708, allocations: 8.828 kB / 0.6734 GB, free: 2.23 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.6708, allocations: 4 kB / 0.6734 GB, free: 2.227 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005236/0.6713, allocations: 233.6 kB / 0.6736 GB, free: 2 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001541/0.6729, allocations: 1.046 MB / 0.6746 GB, free: 0.8281 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000621/0.6735, allocations: 266.5 kB / 0.6749 GB, free: 0.5586 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002763/0.6738, allocations: 128.8 kB / 0.675 GB, free: 440 kB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001181/0.675, allocations: 0.8294 MB / 0.6758 GB, free: 15.5 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004793/0.6755, allocations: 176 kB / 0.676 GB, free: 15.32 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=25): time 2.835e-06/0.6755, allocations: 4 kB / 0.676 GB, free: 15.32 MB / 0.4949 GB Notification: Performance of matching and sorting (n=25): time 0.00128/0.6768, allocations: 496.4 kB / 0.6764 GB, free: 14.81 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.237e-05/0.6769, allocations: 63.34 kB / 0.6765 GB, free: 14.73 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00024/0.6771, allocations: 228.9 kB / 0.6767 GB, free: 14.5 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 3.899e-05/0.6771, allocations: 37.69 kB / 0.6767 GB, free: 14.46 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.6773, allocations: 156.3 kB / 0.6769 GB, free: 14.3 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 6.789e-05/0.6773, allocations: 82.83 kB / 0.677 GB, free: 14.22 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.802e-05/0.6774, allocations: 8 kB / 0.677 GB, free: 14.21 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0001635/0.6775, allocations: 330.8 kB / 0.6773 GB, free: 13.88 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002438/0.6778, allocations: 99.95 kB / 0.6774 GB, free: 13.79 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002723/0.6781, allocations: 123.2 kB / 0.6775 GB, free: 13.66 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002602/0.6783, allocations: 134.7 kB / 0.6776 GB, free: 13.52 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.6784, allocations: 4 kB / 0.6776 GB, free: 13.52 MB / 0.4949 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007582/0.6791, allocations: 365.4 kB / 0.678 GB, free: 13.14 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 4.199e-05/0.6792, allocations: 37.7 kB / 0.678 GB, free: 13.1 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.6792, allocations: 0 / 0.678 GB, free: 13.1 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002419/0.6794, allocations: 36.83 kB / 0.6781 GB, free: 13.06 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002224/0.6797, allocations: 47.91 kB / 0.6781 GB, free: 13.02 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001427/0.6811, allocations: 1.42 MB / 0.6795 GB, free: 11.46 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002351/0.6814, allocations: 27.86 kB / 0.6795 GB, free: 11.43 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.978e-05/0.6814, allocations: 17.08 kB / 0.6795 GB, free: 11.42 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001857/0.6816, allocations: 145.6 kB / 0.6797 GB, free: 11.27 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.359e-05/0.6816, allocations: 23.62 kB / 0.6797 GB, free: 11.24 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008938/0.6826, allocations: 366.7 kB / 0.68 GB, free: 10.89 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.6826, allocations: 4 kB / 0.6801 GB, free: 10.88 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.6826, allocations: 0 / 0.6801 GB, free: 10.88 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.6826, allocations: 0 / 0.6801 GB, free: 10.88 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001223/0.6838, allocations: 0.767 MB / 0.6808 GB, free: 10.05 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.6838, allocations: 0 / 0.6808 GB, free: 10.05 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001707/0.684, allocations: 39.97 kB / 0.6808 GB, free: 10.02 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000149/0.6842, allocations: 48.8 kB / 0.6809 GB, free: 9.965 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.217e-05/0.6842, allocations: 7.984 kB / 0.6809 GB, free: 9.957 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001105/0.6853, allocations: 1.419 MB / 0.6823 GB, free: 8.406 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.6853, allocations: 3.938 kB / 0.6823 GB, free: 8.402 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001062/0.6864, allocations: 0.528 MB / 0.6828 GB, free: 7.852 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 9.005e-05/0.6865, allocations: 108.7 kB / 0.6829 GB, free: 7.727 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.606e-05/0.6865, allocations: 11.94 kB / 0.6829 GB, free: 7.715 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002171/0.6868, allocations: 19.89 kB / 0.6829 GB, free: 7.695 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.152e-05/0.6869, allocations: 32.02 kB / 0.683 GB, free: 7.664 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.39e-05/0.6869, allocations: 12 kB / 0.683 GB, free: 7.652 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.0001659/0.6871, allocations: 164.5 kB / 0.6831 GB, free: 7.496 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6871, allocations: 0 / 0.6831 GB, free: 7.496 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.0004973/0.6876, allocations: 119.9 kB / 0.6832 GB, free: 7.379 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (flowResistance.inlet.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 (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003741/0.688, allocations: 221.7 kB / 0.6835 GB, free: 7.156 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.0009182/0.6889, allocations: 453.7 kB / 0.6839 GB, free: 6.684 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.6889, allocations: 4 kB / 0.6839 GB, free: 6.68 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.0004786/0.6894, allocations: 289.6 kB / 0.6842 GB, free: 6.379 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006667/0.6901, allocations: 85.8 kB / 0.6843 GB, free: 6.301 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001279/0.6914, allocations: 0.7497 MB / 0.685 GB, free: 5.52 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003446/0.6917, allocations: 0.7637 MB / 0.6857 GB, free: 4.73 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.64e-05/0.6918, allocations: 35.42 kB / 0.6858 GB, free: 4.695 MB / 0.4949 GB Notification: Performance of SimCode: time 5.21e-07/0.6918, allocations: 0 / 0.6858 GB, free: 4.695 MB / 0.4949 GB Notification: Performance of Templates: time 0.009121/0.7009, allocations: 5.951 MB / 0.6916 GB, free: 14.82 MB / 0.5105 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.CheckValve_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches