Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.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.MCV,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|mCV.dp_int|mCV1.dp_int|mCV2.dp_int|mCV3.dp_int|mCV4.dp_int|mCV5.dp_int|pulse1.T_start|pulse1.count|pulse3.T_start|pulse3.count|pulse5.T_start|pulse5.count|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|source3.outlet.m_flow|source4.outlet.m_flow|source5.outlet.m_flow|trapezoid.T_start|trapezoid.count|trapezoid1.T_start|trapezoid1.count|trapezoid2.T_start|trapezoid2.count",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV") translateModel(ThermofluidStream.FlowControl.Tests.MCV,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|mCV.dp_int|mCV1.dp_int|mCV2.dp_int|mCV3.dp_int|mCV4.dp_int|mCV5.dp_int|pulse1.T_start|pulse1.count|pulse3.T_start|pulse3.count|pulse5.T_start|pulse5.count|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|source3.outlet.m_flow|source4.outlet.m_flow|source5.outlet.m_flow|trapezoid.T_start|trapezoid.count|trapezoid1.T_start|trapezoid1.count|trapezoid2.T_start|trapezoid2.count",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV") [: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.001984/0.001984, allocations: 184.3 kB / 7.462 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9567/0.9567, allocations: 205.2 MB / 213.1 MB, free: 13.85 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.0007621/0.0007621, allocations: 88.39 kB / 261.1 MB, free: 13.54 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.4981/0.4981, allocations: 90.35 MB / 399.4 MB, free: 12.27 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 1500 Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 1500 Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 5.581e-06/5.591e-06, allocations: 0 / 471.7 MB, free: 3.812 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2308, allocations: 66.26 MB / 0.5253 GB, free: 28.88 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6765/0.9073, allocations: 438.4 MB / 0.9534 GB, free: 163 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002057/0.9076, allocations: 78.95 kB / 0.9535 GB, free: 163 MB / 0.5886 GB Notification: Performance of FrontEnd: time 0.8753/1.783, allocations: 410.1 MB / 1.354 GB, free: 26.36 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 8.557e-05/1.783, allocations: 47.98 kB / 1.354 GB, free: 26.31 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: 357 * Number of variables: 357 Notification: Performance of Generate backend data structure: time 0.00471/1.788, allocations: 2.536 MB / 1.357 GB, free: 23.68 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/1.788, allocations: 12.03 kB / 1.357 GB, free: 23.66 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002577/1.788, allocations: 205.5 kB / 1.357 GB, free: 23.46 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/1.789, allocations: 0.8864 MB / 1.358 GB, free: 22.52 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.184e-05/1.789, allocations: 44 kB / 1.358 GB, free: 22.48 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000169/1.789, allocations: 103.8 kB / 1.358 GB, free: 22.38 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001644/1.791, allocations: 1.279 MB / 1.359 GB, free: 21.09 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001696/1.793, allocations: 1.361 MB / 1.36 GB, free: 19.67 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.959e-05/1.793, allocations: 3.938 kB / 1.36 GB, free: 19.66 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.897e-05/1.793, allocations: 7.984 kB / 1.36 GB, free: 19.66 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.642e-05/1.793, allocations: 39.91 kB / 1.36 GB, free: 19.62 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00584/1.799, allocations: 6.526 MB / 1.367 GB, free: 12.55 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009239/1.8, allocations: 0.8204 MB / 1.368 GB, free: 11.7 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008337/1.801, allocations: 0.7915 MB / 1.368 GB, free: 10.89 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004935/1.801, allocations: 0.5845 MB / 1.369 GB, free: 10.2 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001045/1.802, allocations: 0.9393 MB / 1.37 GB, free: 9.227 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=192): time 3.837e-06/1.802, allocations: 0 / 1.37 GB, free: 9.227 MB / 0.5886 GB Notification: Performance of matching and sorting (n=192): time 0.003191/1.805, allocations: 1.692 MB / 1.371 GB, free: 7.508 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.949e-05/1.805, allocations: 215.8 kB / 1.372 GB, free: 7.254 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000605/1.806, allocations: 0.6821 MB / 1.372 GB, free: 6.559 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 9.835e-05/1.806, allocations: 41.69 kB / 1.372 GB, free: 6.512 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001594/1.806, allocations: 422 kB / 1.373 GB, free: 6.09 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002793/1.806, allocations: 0.6042 MB / 1.373 GB, free: 5.477 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.913e-05/1.807, allocations: 0 / 1.373 GB, free: 5.477 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.087e-05/1.807, allocations: 369.9 kB / 1.374 GB, free: 5.109 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007382/1.807, allocations: 0.5741 MB / 1.374 GB, free: 4.535 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008052/1.808, allocations: 0.7563 MB / 1.375 GB, free: 3.73 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001481/1.81, allocations: 0.6207 MB / 1.376 GB, free: 3.109 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/1.81, allocations: 0 / 1.376 GB, free: 3.109 MB / 0.5886 GB Notification: Performance of matching and sorting (n=229) (initialization): time 0.003155/1.813, allocations: 1.844 MB / 1.377 GB, free: 1.238 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/1.813, allocations: 12.25 kB / 1.377 GB, free: 1.227 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/1.813, allocations: 4 kB / 1.377 GB, free: 1.223 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006041/1.814, allocations: 229 kB / 1.378 GB, free: 0.9805 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001463/1.815, allocations: 419.4 kB / 1.378 GB, free: 0.5703 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1732/1.988, allocations: 8.013 MB / 1.386 GB, free: 112.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001885/1.99, allocations: 216.6 kB / 1.386 GB, free: 112.4 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001465/1.99, allocations: 73.62 kB / 1.386 GB, free: 112.4 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 30 ($whenCondition5,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,$whenCondition3,$PRE.trapezoid1.T_start,trapezoid1.T_start,$PRE.trapezoid1.count,trapezoid1.count,$whenCondition1,$PRE.trapezoid2.T_start,trapezoid2.T_start,$PRE.trapezoid2.count,trapezoid2.count,$whenCondition6,$PRE.pulse1.T_start,pulse1.T_start,$PRE.pulse1.count,pulse1.count,$whenCondition4,$PRE.pulse3.T_start,pulse3.T_start,$PRE.pulse3.count,pulse3.count,$whenCondition2,$PRE.pulse5.T_start,pulse5.T_start,$PRE.pulse5.count,pulse5.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 181 * Array equations: 0 * Algorithm blocks: 6 * 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%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002888/1.991, allocations: 145.5 kB / 1.386 GB, free: 112.3 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001994/1.991, allocations: 151.6 kB / 1.386 GB, free: 112.3 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004447/1.995, allocations: 2.195 MB / 1.389 GB, free: 112.2 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.79e-05/1.995, allocations: 20.75 kB / 1.389 GB, free: 112.2 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/1.995, allocations: 3.938 kB / 1.389 GB, free: 112.2 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.978e-05/1.995, allocations: 14.06 kB / 1.389 GB, free: 112.2 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005834/2.001, allocations: 4.054 MB / 1.393 GB, free: 111.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/2.001, allocations: 7.5 kB / 1.393 GB, free: 111.3 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001557/2.003, allocations: 419.8 kB / 1.393 GB, free: 111.3 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005833/2.003, allocations: 244 kB / 1.393 GB, free: 111.3 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000119/2.003, allocations: 42.61 kB / 1.393 GB, free: 111.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003978/2.007, allocations: 8.029 MB / 1.401 GB, free: 104.1 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/2.007, allocations: 6.547 kB / 1.401 GB, free: 104.1 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004419/2.012, allocations: 3.433 MB / 1.404 GB, free: 103.2 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002902/2.012, allocations: 240.4 kB / 1.405 GB, free: 103 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002269/2.012, allocations: 16.61 kB / 1.405 GB, free: 103 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001369/2.014, allocations: 147.7 kB / 1.405 GB, free: 103 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003066/2.014, allocations: 181.8 kB / 1.405 GB, free: 103 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001204/2.014, allocations: 73.45 kB / 1.405 GB, free: 103 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.0005008/2.015, allocations: 0.5136 MB / 1.406 GB, free: 102.9 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.002092/2.017, allocations: 0.8442 MB / 1.406 GB, free: 102.9 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 12 (mCV5.inlet.m_flow,mCV5.dp_int,mCV.inlet.m_flow,mCV.dp_int,mCV4.inlet.m_flow,mCV4.dp_int,mCV3.inlet.m_flow,mCV3.dp_int,mCV2.inlet.m_flow,mCV2.dp_int,mCV1.inlet.m_flow,mCV1.dp_int) * Number of discrete variables: 18 ($whenCondition1,trapezoid2.T_start,trapezoid2.count,$whenCondition2,pulse5.T_start,pulse5.count,$whenCondition3,trapezoid1.T_start,trapezoid1.count,$whenCondition4,pulse3.T_start,pulse3.count,$whenCondition5,trapezoid.T_start,trapezoid.count,$whenCondition6,pulse1.T_start,pulse1.count) * Number of discrete states: 6 (pulse1.count,trapezoid.count,pulse3.count,trapezoid1.count,pulse5.count,trapezoid2.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (198): * Single equations (assignments): 174 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 12 * 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%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00165/2.018, allocations: 1.414 MB / 1.408 GB, free: 102.5 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.00283/2.021, allocations: 2.552 MB / 1.41 GB, free: 101.5 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/2.021, allocations: 1.594 kB / 1.41 GB, free: 101.5 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002518/2.024, allocations: 1.859 MB / 1.412 GB, free: 100.7 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002017/2.026, allocations: 423.7 kB / 1.413 GB, free: 100.7 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005003/2.031, allocations: 2.946 MB / 1.415 GB, free: 100 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001147/2.032, allocations: 1.518 MB / 1.417 GB, free: 99.27 MB / 0.5886 GB Notification: Performance of SimCode: time 8.32e-07/2.032, allocations: 0 / 1.417 GB, free: 99.27 MB / 0.5886 GB Notification: Performance of Templates: time 0.04582/2.078, allocations: 37.68 MB / 1.454 GB, free: 97.78 MB / 0.5886 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.MCV_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches