Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo) Using package ObsoleteModelica4 with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.MCV,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_MCV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.MCV,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_MCV",fmuType="me",version="2.0",platforms={"static"}) [: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 4.0.0+maint.om/package.mo): time 0.002949/0.002949, allocations: 180.5 kB / 7.459 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 221.4 MB / 229.3 MB, free: 3.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009874/0.0009876, allocations: 98.52 kB / 280.1 MB, free: 1.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.01317/0.01317, allocations: 1.575 MB / 332.5 MB, free: 12.88 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.5069/0.5069, allocations: 90.05 MB / 473.7 MB, free: 7.27 MB / 314.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.2605/0.7675, allocations: 76.21 MB / 0.537 GB, free: 14.23 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.186/0.9535, allocations: 69.35 MB / 0.6047 GB, free: 8.773 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.708/2.661, allocations: 441.7 MB / 1.036 GB, free: 6.434 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003782/2.662, allocations: 89.81 kB / 1.036 GB, free: 6.391 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: 847 * Number of variables: 847 Notification: Performance of Generate backend data structure: time 3.158/5.819, allocations: 0.6368 GB / 1.673 GB, free: 43.71 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/5.819, allocations: 9.562 kB / 1.673 GB, free: 43.71 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002319/5.822, allocations: 426.8 kB / 1.673 GB, free: 43.5 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005259/5.827, allocations: 1.67 MB / 1.675 GB, free: 42.93 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002622/5.827, allocations: 107 kB / 1.675 GB, free: 42.93 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001367/5.829, allocations: 214 kB / 1.675 GB, free: 42.92 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007482/5.836, allocations: 3.338 MB / 1.679 GB, free: 42.91 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009948/5.846, allocations: 3.339 MB / 1.682 GB, free: 42.4 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001427/5.846, allocations: 11.38 kB / 1.682 GB, free: 42.39 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006744/5.847, allocations: 3.875 kB / 1.682 GB, free: 42.39 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001056/5.847, allocations: 100.4 kB / 1.682 GB, free: 42.39 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02367/5.871, allocations: 17.48 MB / 1.699 GB, free: 31.3 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005819/5.877, allocations: 3.723 MB / 1.703 GB, free: 31 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003114/5.88, allocations: 1.878 MB / 1.705 GB, free: 30.3 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0145/5.894, allocations: 9.125 MB / 1.713 GB, free: 23.09 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003982/5.898, allocations: 2.164 MB / 1.716 GB, free: 22.14 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=479): time 1.979e-05/5.898, allocations: 0 / 1.716 GB, free: 22.14 MB / 0.6355 GB Notification: Performance of matching and sorting (n=479): time 0.01686/5.915, allocations: 4.974 MB / 1.72 GB, free: 20.52 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000223/5.916, allocations: 341 kB / 1.721 GB, free: 20.17 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003815/5.919, allocations: 1.153 MB / 1.722 GB, free: 19.66 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.000745/5.92, allocations: 33.67 kB / 1.722 GB, free: 19.63 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.001084/5.921, allocations: 0.7891 MB / 1.723 GB, free: 19.07 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.001844/5.923, allocations: 1.526 MB / 1.724 GB, free: 17.85 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005748/5.924, allocations: 1.406 kB / 1.724 GB, free: 17.85 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0003859/5.924, allocations: 471.6 kB / 1.725 GB, free: 17.47 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003728/5.928, allocations: 1.358 MB / 1.726 GB, free: 16.87 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004992/5.933, allocations: 1.859 MB / 1.728 GB, free: 15.75 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01126/5.944, allocations: 2.593 MB / 1.73 GB, free: 15.02 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.628e-05/5.944, allocations: 3.125 kB / 1.73 GB, free: 15.02 MB / 0.6355 GB Notification: Performance of matching and sorting (n=555) (initialization): time 0.02188/5.966, allocations: 5.315 MB / 1.735 GB, free: 13.27 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 3.083e-05/5.966, allocations: 4.438 kB / 1.735 GB, free: 13.27 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.735e-05/5.966, allocations: 10.75 kB / 1.735 GB, free: 13.27 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0017/5.968, allocations: 372.1 kB / 1.736 GB, free: 13.12 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004955/5.973, allocations: 0.9231 MB / 1.737 GB, free: 13.05 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01186/5.985, allocations: 13.22 MB / 1.75 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005918/5.991, allocations: 371.8 kB / 1.75 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001869/5.993, allocations: 187.1 kB / 1.75 GB, free: 15.36 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 30 ($whenCondition6,$PRE.trapezoid2.T_start,trapezoid2.T_start,$PRE.trapezoid2.count,trapezoid2.count,$whenCondition4,$PRE.trapezoid1.T_start,trapezoid1.T_start,$PRE.trapezoid1.count,trapezoid1.count,$whenCondition2,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,$whenCondition1,$PRE.pulse1.T_start,pulse1.T_start,$PRE.pulse1.count,pulse1.count,$whenCondition3,$PRE.pulse3.T_start,pulse3.T_start,$PRE.pulse3.count,pulse3.count,$whenCondition5,$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 (503): * Single equations (assignments): 467 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(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.00264/5.995, allocations: 197.2 kB / 1.75 GB, free: 15.17 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00226/5.998, allocations: 312.2 kB / 1.751 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02468/6.022, allocations: 6.63 MB / 1.757 GB, free: 9.621 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001394/6.023, allocations: 63.14 kB / 1.757 GB, free: 9.562 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.686e-05/6.023, allocations: 15.03 kB / 1.757 GB, free: 9.551 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001512/6.023, allocations: 28.98 kB / 1.757 GB, free: 9.547 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03018/6.053, allocations: 10.33 MB / 1.767 GB, free: 15.48 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-05/6.053, allocations: 8 kB / 1.767 GB, free: 15.47 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004577/6.058, allocations: 0.92 MB / 1.768 GB, free: 14.55 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001434/6.059, allocations: 383.6 kB / 1.769 GB, free: 14.15 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008794/6.06, allocations: 111.9 kB / 1.769 GB, free: 14.04 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3575/6.418, allocations: 13.21 MB / 1.782 GB, free: 147.3 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.025e-06/6.418, allocations: 7.281 kB / 1.782 GB, free: 147.3 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01733/6.435, allocations: 8.768 MB / 1.79 GB, free: 145.6 MB / 0.6667 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02083/6.456, allocations: 11.56 MB / 1.801 GB, free: 143.4 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00131/6.457, allocations: 441 kB / 1.802 GB, free: 143.2 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005598/6.458, allocations: 29.41 kB / 1.802 GB, free: 143.2 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002779/6.461, allocations: 176 kB / 1.802 GB, free: 143.2 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006944/6.461, allocations: 370.3 kB / 1.802 GB, free: 143.2 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000431/6.462, allocations: 179.9 kB / 1.803 GB, free: 143.2 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.001435/6.463, allocations: 0.8501 MB / 1.803 GB, free: 143.1 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.009392/6.473, allocations: 1.944 MB / 1.805 GB, free: 143 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 20 (mCV1.rear.m_flow,mCV1.dp_int,mCV2.rear.m_flow,mCV2.dp_int,mCV3.rear.m_flow,mCV3.dp_int,mCV4.rear.m_flow,mCV4.dp_int,mCV.rear.m_flow,mCV.dp_int,mCV5.rear.m_flow,mCV5.dp_int,boundaryRear9.fore.m_flow,mCV9.dp_int,mCV8.rear.m_flow,mCV8.dp_int,boundaryFore4.rear.m_flow,mCV7.dp_int,mCV6.rear.m_flow,mCV6.dp_int) * Number of discrete variables: 18 ($whenCondition1,pulse1.T_start,pulse1.count,$whenCondition2,trapezoid.T_start,trapezoid.count,$whenCondition3,pulse3.T_start,pulse3.count,$whenCondition4,trapezoid1.T_start,trapezoid1.count,$whenCondition5,pulse5.T_start,pulse5.count,$whenCondition6,trapezoid2.T_start,trapezoid2.count) * Number of discrete states: 6 (trapezoid2.count,pulse5.count,trapezoid1.count,pulse3.count,trapezoid.count,pulse1.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (497): * Single equations (assignments): 455 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 12 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004172/6.477, allocations: 2.21 MB / 1.808 GB, free: 142.4 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.007925/6.485, allocations: 5.075 MB / 1.812 GB, free: 141.2 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/6.485, allocations: 0 / 1.812 GB, free: 141.2 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.005269/6.49, allocations: 3.459 MB / 1.816 GB, free: 140.2 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004861/6.495, allocations: 0.8017 MB / 1.817 GB, free: 140.2 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01178/6.507, allocations: 6.024 MB / 1.823 GB, free: 138.9 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002588/6.509, allocations: 2.521 MB / 1.825 GB, free: 138.1 MB / 0.6667 GB Notification: Performance of SimCode: time 6.11e-07/6.509, allocations: 0 / 1.825 GB, free: 138.1 MB / 0.6667 GB (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_MCV_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_MCV.fmu > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV_res.mat does not exist to compare? outputFormat=mat