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.01161/0.01161, allocations: 169.9 kB / 15.11 MB, free: 5.973 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.963/1.963, allocations: 205.4 MB / 221.3 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001127/0.001127, allocations: 98.84 kB / 269.6 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.8752/0.8752, allocations: 90.59 MB / 408.4 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003395/0.0003395, allocations: 8 kB / 485.2 MB, free: 2.066 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5208/0.5212, allocations: 66.28 MB / 0.5386 GB, free: 45.72 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.004/1.525, allocations: 436.4 MB / 0.9648 GB, free: 8.336 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002877/1.525, allocations: 80.7 kB / 0.9649 GB, free: 8.293 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.5545/2.08, allocations: 70.24 MB / 1.033 GB, free: 189.3 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.855e-06/2.08, allocations: 0 / 1.033 GB, free: 189.3 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 2.133e-05/2.08, allocations: 4 kB / 1.033 GB, free: 189.3 MB / 0.5886 GB 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.001258/2.081, allocations: 0.6725 MB / 1.034 GB, free: 188.6 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/2.081, allocations: 8.031 kB / 1.034 GB, free: 188.5 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.858e-05/2.081, allocations: 31.62 kB / 1.034 GB, free: 188.5 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000308/2.082, allocations: 262.9 kB / 1.034 GB, free: 188.2 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.025e-05/2.082, allocations: 16.44 kB / 1.034 GB, free: 188.2 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.303e-05/2.082, allocations: 23.98 kB / 1.034 GB, free: 188.2 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004237/2.082, allocations: 239.9 kB / 1.035 GB, free: 187.9 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/2.082, allocations: 3.938 kB / 1.035 GB, free: 187.9 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.622e-05/2.082, allocations: 11.95 kB / 1.035 GB, free: 187.9 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/2.082, allocations: 8 kB / 1.035 GB, free: 187.9 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000417/2.083, allocations: 233.6 kB / 1.035 GB, free: 187.7 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/2.084, allocations: 1.031 MB / 1.036 GB, free: 186.5 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004585/2.084, allocations: 266.5 kB / 1.036 GB, free: 186.3 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007611/2.085, allocations: 0.8508 MB / 1.037 GB, free: 185.3 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003161/2.085, allocations: 165.7 kB / 1.037 GB, free: 185.2 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=25): time 1.553e-06/2.085, allocations: 0 / 1.037 GB, free: 185.2 MB / 0.5886 GB Notification: Performance of matching and sorting (n=25): time 0.001108/2.087, allocations: 0.5689 MB / 1.038 GB, free: 184.5 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.16e-05/2.087, allocations: 59.41 kB / 1.038 GB, free: 184.5 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001784/2.087, allocations: 200.2 kB / 1.038 GB, free: 184.3 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.901e-05/2.087, allocations: 37.69 kB / 1.038 GB, free: 184.2 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 7.156e-05/2.087, allocations: 160.2 kB / 1.038 GB, free: 184.1 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 4.827e-05/2.087, allocations: 80.16 kB / 1.038 GB, free: 184 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.384e-05/2.087, allocations: 8 kB / 1.038 GB, free: 184 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.378e-05/2.087, allocations: 334.8 kB / 1.039 GB, free: 183.6 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002004/2.087, allocations: 91.95 kB / 1.039 GB, free: 183.6 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002219/2.088, allocations: 135.2 kB / 1.039 GB, free: 183.4 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002255/2.088, allocations: 132.7 kB / 1.039 GB, free: 183.3 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/2.088, allocations: 0 / 1.039 GB, free: 183.3 MB / 0.5886 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006126/2.088, allocations: 369.9 kB / 1.039 GB, free: 182.9 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 3.17e-05/2.088, allocations: 33.69 kB / 1.039 GB, free: 182.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/2.088, allocations: 4 kB / 1.039 GB, free: 182.9 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002068/2.089, allocations: 40.77 kB / 1.039 GB, free: 182.8 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002149/2.089, allocations: 43.97 kB / 1.039 GB, free: 182.8 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000941/2.09, allocations: 1.427 MB / 1.041 GB, free: 181.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001954/2.09, allocations: 35.7 kB / 1.041 GB, free: 181.2 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.239e-05/2.09, allocations: 8 kB / 1.041 GB, free: 181.2 MB / 0.5886 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.0001419/2.09, allocations: 150.5 kB / 1.041 GB, free: 181 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.544e-05/2.09, allocations: 23.72 kB / 1.041 GB, free: 181 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00069/2.091, allocations: 362.8 kB / 1.041 GB, free: 180.6 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/2.091, allocations: 4 kB / 1.041 GB, free: 180.6 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/2.091, allocations: 3.953 kB / 1.041 GB, free: 180.6 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/2.091, allocations: 0 / 1.041 GB, free: 180.6 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009702/2.092, allocations: 0.7646 MB / 1.042 GB, free: 179.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/2.092, allocations: 7.938 kB / 1.042 GB, free: 179.8 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001561/2.092, allocations: 39.97 kB / 1.042 GB, free: 179.8 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001182/2.092, allocations: 44.84 kB / 1.042 GB, free: 179.7 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.234e-05/2.092, allocations: 4 kB / 1.042 GB, free: 179.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008343/2.093, allocations: 1.431 MB / 1.044 GB, free: 178.1 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/2.093, allocations: 7.969 kB / 1.044 GB, free: 178.1 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000809/2.094, allocations: 0.5491 MB / 1.044 GB, free: 177.6 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 5.609e-05/2.094, allocations: 108.7 kB / 1.044 GB, free: 177.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.465e-05/2.094, allocations: 8 kB / 1.044 GB, free: 177.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001985/2.094, allocations: 20.92 kB / 1.044 GB, free: 177.4 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.996e-05/2.094, allocations: 27.95 kB / 1.044 GB, free: 177.4 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.098e-05/2.094, allocations: 12 kB / 1.044 GB, free: 177.4 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0001206/2.095, allocations: 168.4 kB / 1.044 GB, free: 177.2 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.2e-07/2.095, allocations: 0 / 1.044 GB, free: 177.2 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0005245/2.095, allocations: 139.8 kB / 1.045 GB, free: 177.1 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (checkValve.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.0004789/2.096, allocations: 303.3 kB / 1.045 GB, free: 176.8 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.000733/2.096, allocations: 457.8 kB / 1.045 GB, free: 176.3 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/2.096, allocations: 0 / 1.045 GB, free: 176.3 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.000382/2.097, allocations: 301.2 kB / 1.046 GB, free: 176 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004906/2.097, allocations: 80.73 kB / 1.046 GB, free: 175.9 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/2.098, allocations: 0.7021 MB / 1.046 GB, free: 175.2 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/2.099, allocations: 0.7718 MB / 1.047 GB, free: 174.4 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0001514/2.099, allocations: 37.72 kB / 1.047 GB, free: 174.4 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.664e-05/2.099, allocations: 35.42 kB / 1.047 GB, free: 174.3 MB / 0.5886 GB Notification: Performance of SimCode: time 9.22e-07/2.099, allocations: 0 / 1.047 GB, free: 174.3 MB / 0.5886 GB Notification: Performance of Templates: time 0.01116/2.11, allocations: 6.535 MB / 1.054 GB, free: 167.9 MB / 0.5886 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