Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.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.Boundaries.Tests.DynamicBoundaries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|source3.outlet.m_flow|source4.outlet.m_flow|source5.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries") translateModel(ThermofluidStream.Boundaries.Tests.DynamicBoundaries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|source3.outlet.m_flow|source4.outlet.m_flow|source5.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008842/0.0008843, allocations: 181.1 kB / 7.458 MB, free: 1.531 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8801/0.8801, allocations: 205.2 MB / 213.1 MB, free: 3.98 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007137/0.0007137, allocations: 90.62 kB / 261.1 MB, free: 4.281 MB / 210.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.4536/0.4536, allocations: 90.35 MB / 399.4 MB, free: 2.398 MB / 290.8 MB Notification: Performance of FrontEnd - loaded program: time 4.448e-06/4.458e-06, allocations: 0 / 471.7 MB, free: 9.934 MB / 370.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1917/0.1917, allocations: 66.28 MB / 0.5253 GB, free: 25.62 MB / 386.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.282/4.474, allocations: 3.553 GB / 4.078 GB, free: 75.06 MB / 0.5808 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001786/4.474, allocations: 83.88 kB / 4.078 GB, free: 75.02 MB / 0.5808 GB Notification: Performance of FrontEnd: time 3.807/8.281, allocations: 1.488 GB / 5.566 GB, free: 43.66 MB / 0.6589 GB Notification: Performance of Transformations before backend: time 0.0002079/8.281, allocations: 77.44 kB / 5.567 GB, free: 43.66 MB / 0.6589 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 602 * Number of variables: 602 Notification: Performance of Generate backend data structure: time 0.01479/8.296, allocations: 5.422 MB / 5.572 GB, free: 41.54 MB / 0.6589 GB Notification: Performance of prepare preOptimizeDAE: time 3.241e-05/8.296, allocations: 7.906 kB / 5.572 GB, free: 41.54 MB / 0.6589 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002399/8.298, allocations: 0.5436 MB / 5.572 GB, free: 41.39 MB / 0.6589 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001715/8.3, allocations: 1.24 MB / 5.574 GB, free: 40.99 MB / 0.6589 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.34e-05/8.3, allocations: 72.94 kB / 5.574 GB, free: 40.99 MB / 0.6589 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002241/8.3, allocations: 148.2 kB / 5.574 GB, free: 40.98 MB / 0.6589 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002531/8.303, allocations: 1.723 MB / 5.575 GB, free: 40.96 MB / 0.6589 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002597/8.306, allocations: 2.058 MB / 5.577 GB, free: 40.7 MB / 0.6589 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.337e-05/8.306, allocations: 4.781 kB / 5.577 GB, free: 40.7 MB / 0.6589 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001379/8.306, allocations: 0 / 5.577 GB, free: 40.7 MB / 0.6589 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-05/8.306, allocations: 64.22 kB / 5.578 GB, free: 40.7 MB / 0.6589 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009201/8.315, allocations: 12.24 MB / 5.589 GB, free: 32.58 MB / 0.6589 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001114/8.316, allocations: 0.9529 MB / 5.59 GB, free: 32.47 MB / 0.6589 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001049/8.317, allocations: 0.9758 MB / 5.591 GB, free: 32.42 MB / 0.6589 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05187/8.369, allocations: 32.37 MB / 5.623 GB, free: 28.84 MB / 0.6746 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.142e-05/8.369, allocations: 62.5 kB / 5.623 GB, free: 28.79 MB / 0.6746 GB Notification: Performance of pre-optimization done (n=226): time 3.777e-06/8.369, allocations: 0 / 5.623 GB, free: 28.79 MB / 0.6746 GB Notification: Performance of matching and sorting (n=226): time 0.007702/8.377, allocations: 3.02 MB / 5.626 GB, free: 28.56 MB / 0.6746 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.212e-05/8.377, allocations: 207.6 kB / 5.626 GB, free: 28.34 MB / 0.6746 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001127/8.378, allocations: 0.7795 MB / 5.627 GB, free: 28.19 MB / 0.6746 GB Notification: Performance of collectPreVariables (initialization): time 0.000117/8.378, allocations: 25.7 kB / 5.627 GB, free: 28.16 MB / 0.6746 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002778/8.379, allocations: 0.6591 MB / 5.628 GB, free: 27.78 MB / 0.6746 GB Notification: Performance of collectInitialBindings (initialization): time 0.00043/8.379, allocations: 0.7188 MB / 5.628 GB, free: 27.29 MB / 0.6746 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.183e-05/8.379, allocations: 0 / 5.628 GB, free: 27.29 MB / 0.6746 GB Notification: Performance of setup shared object (initialization): time 0.0001248/8.379, allocations: 382.8 kB / 5.629 GB, free: 26.98 MB / 0.6746 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008926/8.38, allocations: 0.647 MB / 5.629 GB, free: 26.98 MB / 0.6746 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009657/8.381, allocations: 0.8764 MB / 5.63 GB, free: 26.77 MB / 0.6746 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003129/8.384, allocations: 1.101 MB / 5.631 GB, free: 26.75 MB / 0.6746 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/8.384, allocations: 3 kB / 5.631 GB, free: 26.75 MB / 0.6746 GB Notification: Performance of matching and sorting (n=250) (initialization): time 0.007139/8.391, allocations: 3.133 MB / 5.634 GB, free: 26.53 MB / 0.6746 GB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/8.391, allocations: 3.656 kB / 5.634 GB, free: 26.53 MB / 0.6746 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.437e-05/8.391, allocations: 7.219 kB / 5.634 GB, free: 26.53 MB / 0.6746 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008005/8.392, allocations: 285.2 kB / 5.635 GB, free: 26.48 MB / 0.6746 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001285/8.394, allocations: 387.5 kB / 5.635 GB, free: 26.48 MB / 0.6746 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005751/8.399, allocations: 8.417 MB / 5.643 GB, free: 19.27 MB / 0.6746 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001396/8.401, allocations: 183.3 kB / 5.643 GB, free: 19.18 MB / 0.6746 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001769/8.401, allocations: 88.19 kB / 5.643 GB, free: 19.18 MB / 0.6746 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 24 (dynamicPressureInflow1.inlet.state.phase,dynamicPressureInflow.inlet.state.phase,dynamicPressureInflow2.inlet.state.phase,dynamicPressureInflow3.inlet.state.phase,dynamicPressureInflow4.inlet.state.phase,dynamicPressureInflow5.inlet.state.phase,dynamicPressureInflow5.outlet.state.phase,flowResistance5.outlet.state.phase,dynamicPressureOutflow5.outlet.state.phase,dynamicPressureInflow4.outlet.state.phase,flowResistance4.outlet.state.phase,dynamicPressureOutflow4.outlet.state.phase,dynamicPressureInflow3.outlet.state.phase,flowResistance3.outlet.state.phase,dynamicPressureOutflow3.outlet.state.phase,dynamicPressureInflow2.outlet.state.phase,flowResistance2.outlet.state.phase,dynamicPressureOutflow2.outlet.state.phase,dynamicPressureInflow.outlet.state.phase,dynamicPressureInflow1.outlet.state.phase,flowResistance1.outlet.state.phase,dynamicPressureOutflow1.outlet.state.phase,flowResistance.outlet.state.phase,dynamicPressureOutflow.outlet.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (202): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003094/8.401, allocations: 153.3 kB / 5.644 GB, free: 19.07 MB / 0.6746 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001971/8.403, allocations: 0.7676 MB / 5.644 GB, free: 18.98 MB / 0.6746 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009202/8.412, allocations: 7.162 MB / 5.651 GB, free: 18.43 MB / 0.6746 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.455e-05/8.412, allocations: 80.02 kB / 5.651 GB, free: 18.43 MB / 0.6746 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.218e-05/8.413, allocations: 5.719 kB / 5.651 GB, free: 18.43 MB / 0.6746 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.97e-05/8.413, allocations: 13.52 kB / 5.651 GB, free: 18.43 MB / 0.6746 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01205/8.425, allocations: 10.28 MB / 5.661 GB, free: 17.41 MB / 0.6746 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.998e-06/8.425, allocations: 2.125 kB / 5.661 GB, free: 17.41 MB / 0.6746 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001164/8.426, allocations: 335.2 kB / 5.662 GB, free: 17.41 MB / 0.6746 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007387/8.427, allocations: 307.4 kB / 5.662 GB, free: 17.36 MB / 0.6746 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001525/8.427, allocations: 57.75 kB / 5.662 GB, free: 17.36 MB / 0.6746 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005598/8.432, allocations: 8.422 MB / 5.67 GB, free: 26.14 MB / 0.6902 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/8.432, allocations: 7.938 kB / 5.67 GB, free: 26.14 MB / 0.6902 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01052/8.443, allocations: 8.025 MB / 5.678 GB, free: 24.96 MB / 0.6902 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005851/8.443, allocations: 336.1 kB / 5.679 GB, free: 24.7 MB / 0.6902 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000334/8.444, allocations: 9.016 kB / 5.679 GB, free: 24.7 MB / 0.6902 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001389/8.445, allocations: 116.4 kB / 5.679 GB, free: 24.67 MB / 0.6902 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002403/8.445, allocations: 142.2 kB / 5.679 GB, free: 24.67 MB / 0.6902 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001623/8.446, allocations: 92.33 kB / 5.679 GB, free: 24.67 MB / 0.6902 GB Notification: Performance of sort global known variables: time 0.000666/8.446, allocations: 0.5687 MB / 5.679 GB, free: 24.56 MB / 0.6902 GB Notification: Performance of remove unused functions: time 0.005684/8.452, allocations: 1.841 MB / 5.681 GB, free: 24.27 MB / 0.6902 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (dynamicPressureOutflow5.inlet.m_flow,dynamicPressureOutflow4.inlet.m_flow,dynamicPressureOutflow3.inlet.m_flow,dynamicPressureOutflow2.inlet.m_flow,dynamicPressureOutflow.inlet.m_flow,dynamicPressureOutflow1.inlet.m_flow) * Number of discrete variables: 42 ($cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,dynamicPressureInflow5.inlet.state.phase,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,dynamicPressureInflow4.inlet.state.phase,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,dynamicPressureInflow3.inlet.state.phase,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,dynamicPressureInflow2.inlet.state.phase,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,dynamicPressureInflow.inlet.state.phase,$cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,dynamicPressureInflow1.inlet.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 172 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008601/8.461, allocations: 4.051 MB / 5.685 GB, free: 23.53 MB / 0.6902 GB Notification: Performance of simCode: created initialization part: time 0.004317/8.465, allocations: 4.199 MB / 5.689 GB, free: 22.67 MB / 0.6902 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/8.465, allocations: 5.5 kB / 5.689 GB, free: 22.67 MB / 0.6902 GB Notification: Performance of simCode: created simulation system equations: time 0.003222/8.468, allocations: 3.82 MB / 5.693 GB, free: 21.82 MB / 0.6902 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003027/8.471, allocations: 0.6169 MB / 5.694 GB, free: 21.81 MB / 0.6902 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009357/8.481, allocations: 5.945 MB / 5.699 GB, free: 20.75 MB / 0.6902 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00172/8.482, allocations: 2.103 MB / 5.701 GB, free: 19.99 MB / 0.6902 GB Notification: Performance of SimCode: time 3.31e-07/8.482, allocations: 0 / 5.701 GB, free: 19.99 MB / 0.6902 GB Notification: Performance of Templates: time 0.08716/8.569, allocations: 75.89 MB / 5.776 GB, free: 12.47 MB / 0.6902 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.DynamicBoundaries_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches