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.0008268/0.0008268, allocations: 170.5 kB / 16.11 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.148/1.148, allocations: 205 MB / 221.9 MB, free: 9.145 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.0007057/0.0007057, allocations: 90.03 kB / 269.9 MB, free: 8.672 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.5695/0.5695, allocations: 90.5 MB / 408.3 MB, free: 3.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003559/0.000356, allocations: 8 kB / 484.8 MB, free: 7.215 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2217/0.2221, allocations: 65.81 MB / 0.5378 GB, free: 34.96 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.1139/0.336, allocations: 140 MB / 0.6745 GB, free: 10.43 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.003473/0.3395, allocations: 3.56 MB / 0.678 GB, free: 6.855 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002086/0.3397, allocations: 4 kB / 0.678 GB, free: 6.852 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.000508/0.3403, allocations: 151.2 kB / 0.6781 GB, free: 6.703 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0006796/0.341, allocations: 318.4 kB / 0.6784 GB, free: 6.391 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.000574/0.3415, allocations: 255.1 kB / 0.6787 GB, free: 6.141 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0004554/0.342, allocations: 0.5448 MB / 0.6792 GB, free: 5.594 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.3421, allocations: 71.31 kB / 0.6793 GB, free: 5.527 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003388/0.3425, allocations: 175.2 kB / 0.6794 GB, free: 5.355 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002242/0.3427, allocations: 211.1 kB / 0.6797 GB, free: 5.148 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 3.083e-05/0.3428, allocations: 12 kB / 0.6797 GB, free: 5.137 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007968/0.3436, allocations: 0.5107 MB / 0.6802 GB, free: 4.625 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 4.592e-05/0.3436, allocations: 39.78 kB / 0.6802 GB, free: 4.586 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001241/0.3438, allocations: 135.3 kB / 0.6803 GB, free: 4.453 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0005464/0.3443, allocations: 486.5 kB / 0.6808 GB, free: 3.977 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.3443, allocations: 0 / 0.6808 GB, free: 3.977 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.072e-06/0.3443, allocations: 0 / 0.6808 GB, free: 3.977 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.689e-06/0.3443, allocations: 4 kB / 0.6808 GB, free: 3.973 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.0009157/0.3453, allocations: 0.6111 MB / 0.6814 GB, free: 3.305 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.3453, allocations: 8.031 kB / 0.6814 GB, free: 3.297 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.51e-05/0.3454, allocations: 32.56 kB / 0.6814 GB, free: 3.266 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002421/0.3456, allocations: 266.8 kB / 0.6817 GB, free: 2.969 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.3457, allocations: 12.81 kB / 0.6817 GB, free: 2.957 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.548e-05/0.3457, allocations: 36.03 kB / 0.6817 GB, free: 2.922 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000419/0.3461, allocations: 243.1 kB / 0.682 GB, free: 2.676 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.3461, allocations: 0 / 0.682 GB, free: 2.676 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.233e-05/0.3462, allocations: 7.984 kB / 0.682 GB, free: 2.668 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.3462, allocations: 8 kB / 0.682 GB, free: 2.66 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004472/0.3466, allocations: 241.6 kB / 0.6822 GB, free: 2.426 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.3478, allocations: 1.041 MB / 0.6832 GB, free: 1.258 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00049/0.3483, allocations: 266.5 kB / 0.6835 GB, free: 0.9883 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002345/0.3486, allocations: 128.8 kB / 0.6836 GB, free: 0.8594 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1737/0.5223, allocations: 0.8301 MB / 0.6844 GB, free: 144.5 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004721/0.5228, allocations: 174.2 kB / 0.6846 GB, free: 144.5 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=25): time 3.507e-06/0.5228, allocations: 0 / 0.6846 GB, free: 144.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=25): time 0.001263/0.5241, allocations: 0.4957 MB / 0.6851 GB, free: 144.4 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.02e-05/0.5241, allocations: 58.94 kB / 0.6851 GB, free: 144.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002359/0.5243, allocations: 227.7 kB / 0.6853 GB, free: 144.2 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.297e-05/0.5244, allocations: 31.89 kB / 0.6854 GB, free: 144.2 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 8.016e-05/0.5245, allocations: 157.1 kB / 0.6855 GB, free: 144.1 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 5.515e-05/0.5245, allocations: 82.27 kB / 0.6856 GB, free: 144 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.362e-05/0.5245, allocations: 9.344 kB / 0.6856 GB, free: 144 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 5.161e-05/0.5246, allocations: 337.9 kB / 0.6859 GB, free: 143.7 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002324/0.5248, allocations: 92.09 kB / 0.686 GB, free: 143.7 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000247/0.5251, allocations: 132.3 kB / 0.6861 GB, free: 143.7 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004586/0.5256, allocations: 253.2 kB / 0.6864 GB, free: 143.6 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.5256, allocations: 1 kB / 0.6864 GB, free: 143.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006871/0.5263, allocations: 366.7 kB / 0.6867 GB, free: 143.4 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.813e-05/0.5263, allocations: 36.03 kB / 0.6868 GB, free: 143.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.5263, allocations: 2.062 kB / 0.6868 GB, free: 143.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000193/0.5265, allocations: 40.05 kB / 0.6868 GB, free: 143.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002052/0.5267, allocations: 41.41 kB / 0.6868 GB, free: 143.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008644/0.5276, allocations: 1.42 MB / 0.6882 GB, free: 141.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002265/0.5278, allocations: 39.75 kB / 0.6883 GB, free: 141.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.562e-05/0.5279, allocations: 7.828 kB / 0.6883 GB, free: 141.9 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.0001103/0.528, allocations: 140.5 kB / 0.6884 GB, free: 141.8 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.876e-05/0.528, allocations: 24.08 kB / 0.6884 GB, free: 141.8 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007635/0.5288, allocations: 371.2 kB / 0.6888 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.5288, allocations: 4.781 kB / 0.6888 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.5288, allocations: 0.7812 kB / 0.6888 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.267e-05/0.5289, allocations: 104 kB / 0.6889 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.891e-05/0.5289, allocations: 6.641 kB / 0.6889 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001663/0.5291, allocations: 23.8 kB / 0.6889 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.203e-05/0.5292, allocations: 30.94 kB / 0.689 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000838/0.53, allocations: 413.6 kB / 0.6893 GB, free: 141.3 MB / 0.4948 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0008183/0.5309, allocations: 0.5772 MB / 0.6899 GB, free: 141 MB / 0.4948 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002482/0.5311, allocations: 128.9 kB / 0.69 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.000124/0.5313, allocations: 165.7 kB / 0.6902 GB, free: 140.8 MB / 0.4948 GB Notification: Performance of Backend: time 5.21e-07/0.5313, allocations: 1.031 kB / 0.6902 GB, free: 140.8 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001132/0.5324, allocations: 0.5883 MB / 0.6908 GB, free: 140.5 MB / 0.4948 GB Notification: Performance of SimCode: time 0.0009841/0.5334, allocations: 1.163 MB / 0.6919 GB, free: 139.5 MB / 0.4948 GB Notification: Performance of Templates: time 0.009992/0.5434, allocations: 6.075 MB / 0.6978 GB, free: 137.5 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