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.0009749/0.000975, allocations: 167.1 kB / 16.1 MB, free: 5.688 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.223/1.223, allocations: 205 MB / 221.9 MB, free: 9.066 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.0006594/0.0006593, allocations: 92.34 kB / 269.9 MB, free: 8.656 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.6087/0.6087, allocations: 90.5 MB / 408.3 MB, free: 3.945 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002986/0.0002986, allocations: 12 kB / 484.8 MB, free: 7.211 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.2426, allocations: 65.81 MB / 0.5377 GB, free: 34.96 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.1198/0.3624, allocations: 140 MB / 0.6745 GB, free: 10.43 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.003582/0.3661, allocations: 3.572 MB / 0.678 GB, free: 6.848 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001702/0.3663, allocations: 0 / 0.678 GB, free: 6.848 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0004724/0.3667, allocations: 143.2 kB / 0.6781 GB, free: 6.707 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0006402/0.3674, allocations: 326.3 kB / 0.6784 GB, free: 6.387 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005511/0.3679, allocations: 251.2 kB / 0.6787 GB, free: 6.141 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0004392/0.3684, allocations: 0.5409 MB / 0.6792 GB, free: 5.598 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.3685, allocations: 63.38 kB / 0.6793 GB, free: 5.539 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003105/0.3688, allocations: 187.1 kB / 0.6794 GB, free: 5.355 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002281/0.3691, allocations: 207.2 kB / 0.6796 GB, free: 5.152 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 2.802e-05/0.3691, allocations: 12 kB / 0.6797 GB, free: 5.141 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000781/0.3699, allocations: 0.5107 MB / 0.6802 GB, free: 4.629 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 4.406e-05/0.37, allocations: 43.78 kB / 0.6802 GB, free: 4.586 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001134/0.3701, allocations: 135.2 kB / 0.6803 GB, free: 4.453 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003822/0.3705, allocations: 347.1 kB / 0.6807 GB, free: 4.113 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3705, allocations: 4 kB / 0.6807 GB, free: 4.109 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3705, allocations: 0 / 0.6807 GB, free: 4.109 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 8.546e-06/0.3705, allocations: 0 / 0.6807 GB, free: 4.109 MB / 0.4948 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.000932/0.3715, allocations: 0.614 MB / 0.6813 GB, free: 3.438 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.003e-05/0.3715, allocations: 8.031 kB / 0.6813 GB, free: 3.43 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.385e-05/0.3716, allocations: 36.55 kB / 0.6813 GB, free: 3.395 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002487/0.3718, allocations: 266.8 kB / 0.6816 GB, free: 3.098 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/0.3718, allocations: 16.81 kB / 0.6816 GB, free: 3.082 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.258e-05/0.3719, allocations: 31.97 kB / 0.6816 GB, free: 3.051 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004202/0.3723, allocations: 235.2 kB / 0.6818 GB, free: 2.812 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.3723, allocations: 4 kB / 0.6818 GB, free: 2.809 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.428e-05/0.3724, allocations: 8 kB / 0.6818 GB, free: 2.801 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/0.3724, allocations: 7.984 kB / 0.6818 GB, free: 2.793 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00044/0.3728, allocations: 229.6 kB / 0.6821 GB, free: 2.57 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.374, allocations: 1.053 MB / 0.6831 GB, free: 1.391 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004837/0.3745, allocations: 266.4 kB / 0.6833 GB, free: 1.121 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002242/0.3747, allocations: 124.8 kB / 0.6835 GB, free: 0.9961 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007559/0.3755, allocations: 0.8333 MB / 0.6843 GB, free: 64 kB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.1878/0.5633, allocations: 172.7 kB / 0.6844 GB, free: 144.9 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=25): time 3.737e-06/0.5633, allocations: 0 / 0.6844 GB, free: 144.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=25): time 0.001263/0.5646, allocations: 0.4912 MB / 0.6849 GB, free: 144.8 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.803e-05/0.5647, allocations: 55.38 kB / 0.685 GB, free: 144.7 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000253/0.5649, allocations: 229.2 kB / 0.6852 GB, free: 144.6 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.513e-05/0.565, allocations: 31.73 kB / 0.6852 GB, free: 144.6 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 8.854e-05/0.565, allocations: 162.9 kB / 0.6854 GB, free: 144.5 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 5.198e-05/0.5651, allocations: 79.66 kB / 0.6855 GB, free: 144.5 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.262e-05/0.5651, allocations: 5.625 kB / 0.6855 GB, free: 144.5 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 5.837e-05/0.5652, allocations: 337.9 kB / 0.6858 GB, free: 144.2 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002255/0.5654, allocations: 92.59 kB / 0.6859 GB, free: 144.1 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000239/0.5657, allocations: 134.1 kB / 0.686 GB, free: 144.1 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004397/0.5661, allocations: 258 kB / 0.6862 GB, free: 143.9 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.5661, allocations: 0 / 0.6862 GB, free: 143.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.00066/0.5668, allocations: 365 kB / 0.6866 GB, free: 143.8 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.906e-05/0.5668, allocations: 33.11 kB / 0.6866 GB, free: 143.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.5668, allocations: 1.469 kB / 0.6866 GB, free: 143.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001925/0.567, allocations: 42 kB / 0.6867 GB, free: 143.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002056/0.5673, allocations: 45.86 kB / 0.6867 GB, free: 143.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008718/0.5681, allocations: 1.419 MB / 0.6881 GB, free: 142.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002095/0.5684, allocations: 36.34 kB / 0.6881 GB, free: 142.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.558e-05/0.5684, allocations: 11.19 kB / 0.6881 GB, free: 142.3 MB / 0.4948 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 (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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001068/0.5685, allocations: 147.6 kB / 0.6883 GB, free: 142.2 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.871e-05/0.5686, allocations: 27.56 kB / 0.6883 GB, free: 142.2 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007344/0.5693, allocations: 361.8 kB / 0.6887 GB, free: 142 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.5693, allocations: 2.875 kB / 0.6887 GB, free: 142 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.5693, allocations: 4.656 kB / 0.6887 GB, free: 142 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.5693, allocations: 2.547 kB / 0.6887 GB, free: 142 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/0.5704, allocations: 0.7681 MB / 0.6894 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.5704, allocations: 1.578 kB / 0.6894 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001603/0.5706, allocations: 36.77 kB / 0.6895 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001262/0.5707, allocations: 41.06 kB / 0.6895 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.231e-05/0.5708, allocations: 12.73 kB / 0.6895 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007667/0.5715, allocations: 1.419 MB / 0.6909 GB, free: 140.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.5716, allocations: 4.547 kB / 0.6909 GB, free: 140.1 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009008/0.5725, allocations: 0.5436 MB / 0.6914 GB, free: 139.8 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.661e-05/0.5725, allocations: 101.5 kB / 0.6915 GB, free: 139.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.538e-05/0.5726, allocations: 8.938 kB / 0.6915 GB, free: 139.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001911/0.5728, allocations: 18.48 kB / 0.6915 GB, free: 139.7 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.173e-05/0.5728, allocations: 26.62 kB / 0.6916 GB, free: 139.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.999e-05/0.5729, allocations: 11.22 kB / 0.6916 GB, free: 139.7 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001341/0.573, allocations: 181.9 kB / 0.6918 GB, free: 139.6 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.41e-07/0.573, allocations: 0.8125 kB / 0.6918 GB, free: 139.6 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0004241/0.5734, allocations: 117.7 kB / 0.6919 GB, free: 139.6 MB / 0.4948 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 (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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002952/0.5737, allocations: 211.7 kB / 0.6921 GB, free: 139.5 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0007494/0.5745, allocations: 460.8 kB / 0.6925 GB, free: 139.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.5745, allocations: 0 / 0.6925 GB, free: 139.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0004007/0.5749, allocations: 296.8 kB / 0.6928 GB, free: 139 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005395/0.5755, allocations: 83.14 kB / 0.6929 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/0.5765, allocations: 0.7218 MB / 0.6936 GB, free: 138.4 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002178/0.5768, allocations: 0.7578 MB / 0.6943 GB, free: 137.8 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.024e-05/0.5769, allocations: 34.84 kB / 0.6943 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of SimCode: time 2.5e-07/0.5769, allocations: 0 / 0.6943 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of Templates: time 0.009041/0.5859, allocations: 5.955 MB / 0.7002 GB, free: 135.6 MB / 0.4948 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