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.007504/0.007504, allocations: 167.8 kB / 15.13 MB, free: 6.023 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.638/1.638, allocations: 205.4 MB / 221.3 MB, free: 13.81 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.0008478/0.0008479, allocations: 98.22 kB / 269.6 MB, free: 13.33 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.7204/0.7204, allocations: 90.6 MB / 408.5 MB, free: 14.97 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003315/0.0003315, allocations: 8 kB / 485.2 MB, free: 2.062 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3687/0.3691, allocations: 66.27 MB / 0.5386 GB, free: 45.56 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.1555/0.5246, allocations: 130.4 MB / 0.6659 GB, free: 9.223 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.003913/0.5285, allocations: 3.315 MB / 0.6692 GB, free: 5.906 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001717/0.5287, allocations: 8 kB / 0.6692 GB, free: 5.898 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004991/0.5293, allocations: 148.1 kB / 0.6693 GB, free: 5.754 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006909/0.53, allocations: 322.1 kB / 0.6696 GB, free: 5.438 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005455/0.5305, allocations: 203.3 kB / 0.6698 GB, free: 5.238 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004771/0.531, allocations: 489.9 kB / 0.6703 GB, free: 4.758 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001591/0.5312, allocations: 65.53 kB / 0.6704 GB, free: 4.699 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003523/0.5315, allocations: 175.3 kB / 0.6705 GB, free: 4.527 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002505/0.5318, allocations: 195.2 kB / 0.6707 GB, free: 4.336 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 3.266e-05/0.5318, allocations: 12 kB / 0.6707 GB, free: 4.324 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007469/0.5326, allocations: 435.1 kB / 0.6711 GB, free: 3.898 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 6.076e-05/0.5327, allocations: 40.67 kB / 0.6712 GB, free: 3.859 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 7.807e-05/0.5327, allocations: 77.52 kB / 0.6713 GB, free: 3.777 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004148/0.5332, allocations: 315.2 kB / 0.6716 GB, free: 3.469 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.5332, allocations: 4 kB / 0.6716 GB, free: 3.465 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5332, allocations: 0 / 0.6716 GB, free: 3.465 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.5332, allocations: 0 / 0.6716 GB, free: 3.465 MB / 490.7 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.001151/0.5344, allocations: 0.6143 MB / 0.6722 GB, free: 2.801 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.5344, allocations: 12.03 kB / 0.6722 GB, free: 2.789 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.34e-05/0.5345, allocations: 27.62 kB / 0.6722 GB, free: 2.762 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003691/0.5349, allocations: 271 kB / 0.6725 GB, free: 2.461 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.316e-05/0.5349, allocations: 12.44 kB / 0.6725 GB, free: 2.449 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.084e-05/0.535, allocations: 27.91 kB / 0.6725 GB, free: 2.422 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004928/0.5355, allocations: 239.2 kB / 0.6727 GB, free: 2.18 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.5355, allocations: 0 / 0.6727 GB, free: 2.18 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.65e-05/0.5355, allocations: 8 kB / 0.6727 GB, free: 2.172 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.5355, allocations: 4.625 kB / 0.6727 GB, free: 2.168 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004989/0.536, allocations: 237.6 kB / 0.673 GB, free: 1.938 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001479/0.5375, allocations: 1.038 MB / 0.674 GB, free: 0.7734 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005565/0.5381, allocations: 270.5 kB / 0.6742 GB, free: 0.5 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002669/0.5384, allocations: 128.8 kB / 0.6744 GB, free: 380 kB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009348/0.5393, allocations: 0.8333 MB / 0.6752 GB, free: 15.44 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003972/0.5397, allocations: 166.9 kB / 0.6753 GB, free: 15.27 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=25): time 1.583e-06/0.5397, allocations: 3.938 kB / 0.6753 GB, free: 15.27 MB / 0.4948 GB Notification: Performance of matching and sorting (n=25): time 0.001219/0.541, allocations: 0.4964 MB / 0.6758 GB, free: 14.74 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.358e-05/0.541, allocations: 55.41 kB / 0.6759 GB, free: 14.68 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002255/0.5413, allocations: 228.9 kB / 0.6761 GB, free: 14.45 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.008e-05/0.5413, allocations: 33.7 kB / 0.6761 GB, free: 14.41 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.5414, allocations: 156.3 kB / 0.6763 GB, free: 14.25 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 7.715e-05/0.5415, allocations: 82.83 kB / 0.6764 GB, free: 14.17 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.7e-05/0.5415, allocations: 8 kB / 0.6764 GB, free: 14.16 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.5417, allocations: 334.8 kB / 0.6767 GB, free: 13.82 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002461/0.5419, allocations: 91.95 kB / 0.6768 GB, free: 13.73 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002476/0.5422, allocations: 131.2 kB / 0.6769 GB, free: 13.6 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002645/0.5424, allocations: 131.4 kB / 0.677 GB, free: 13.46 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.5425, allocations: 0 / 0.677 GB, free: 13.46 MB / 0.4948 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007131/0.5432, allocations: 373.4 kB / 0.6774 GB, free: 13.09 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.44e-05/0.5432, allocations: 29.7 kB / 0.6774 GB, free: 13.05 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.5432, allocations: 4 kB / 0.6774 GB, free: 13.05 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002144/0.5435, allocations: 36.83 kB / 0.6774 GB, free: 13.01 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000211/0.5437, allocations: 47.91 kB / 0.6775 GB, free: 12.96 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00128/0.545, allocations: 1.42 MB / 0.6789 GB, free: 11.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000208/0.5452, allocations: 37.98 kB / 0.6789 GB, free: 11.37 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.714e-05/0.5452, allocations: 7.953 kB / 0.6789 GB, free: 11.36 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 (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.0001636/0.5454, allocations: 141.6 kB / 0.679 GB, free: 11.21 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.937e-05/0.5454, allocations: 27.62 kB / 0.6791 GB, free: 11.19 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008085/0.5463, allocations: 359.7 kB / 0.6794 GB, free: 10.83 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.5463, allocations: 4 kB / 0.6794 GB, free: 10.83 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.5463, allocations: 0 / 0.6794 GB, free: 10.83 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.5463, allocations: 3.984 kB / 0.6794 GB, free: 10.82 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001192/0.5475, allocations: 0.767 MB / 0.6802 GB, free: 9.996 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.5475, allocations: 0 / 0.6802 GB, free: 9.996 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001713/0.5477, allocations: 50.84 kB / 0.6802 GB, free: 9.949 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001285/0.5478, allocations: 40.81 kB / 0.6803 GB, free: 9.906 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.43e-05/0.5479, allocations: 9.562 kB / 0.6803 GB, free: 9.898 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001114/0.549, allocations: 1.417 MB / 0.6817 GB, free: 8.348 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.549, allocations: 0 / 0.6817 GB, free: 8.348 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009614/0.55, allocations: 0.5396 MB / 0.6822 GB, free: 7.785 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 8.282e-05/0.5501, allocations: 104.8 kB / 0.6823 GB, free: 7.664 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.601e-05/0.5501, allocations: 5.688 kB / 0.6823 GB, free: 7.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/0.5503, allocations: 27.95 kB / 0.6823 GB, free: 7.633 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.946e-05/0.5504, allocations: 27.95 kB / 0.6823 GB, free: 7.605 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.118e-05/0.5504, allocations: 12 kB / 0.6824 GB, free: 7.594 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001492/0.5506, allocations: 164.5 kB / 0.6825 GB, free: 7.438 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5506, allocations: 0 / 0.6825 GB, free: 7.438 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.000417/0.551, allocations: 119.9 kB / 0.6826 GB, free: 7.32 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 (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.0003597/0.5514, allocations: 224.6 kB / 0.6828 GB, free: 7.094 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0008193/0.5522, allocations: 459.4 kB / 0.6833 GB, free: 6.617 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.5522, allocations: 0 / 0.6833 GB, free: 6.617 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0004508/0.5527, allocations: 288.3 kB / 0.6836 GB, free: 6.316 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005609/0.5533, allocations: 81.89 kB / 0.6836 GB, free: 6.242 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001154/0.5544, allocations: 0.7158 MB / 0.6843 GB, free: 5.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003369/0.5548, allocations: 0.7637 MB / 0.6851 GB, free: 4.711 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.00016/0.5549, allocations: 49.14 kB / 0.6851 GB, free: 4.672 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.414e-05/0.555, allocations: 27.44 kB / 0.6851 GB, free: 4.645 MB / 0.4948 GB Notification: Performance of SimCode: time 2.3e-07/0.555, allocations: 0 / 0.6851 GB, free: 4.645 MB / 0.4948 GB Notification: Performance of Templates: time 0.00991/0.5649, allocations: 5.555 MB / 0.6906 GB, free: 15.18 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