Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.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.FlowControl.Tests.MCV,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_MCV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.MCV,fileNamePrefix="ThermofluidStream_ThermofluidStream_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.007829/0.00783, allocations: 185.7 kB / 7.464 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 2.649/2.649, allocations: 221.4 MB / 229.3 MB, free: 3.293 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.001778/0.001778, allocations: 93.5 kB / 280.1 MB, free: 1.328 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.02386/0.02386, allocations: 1.567 MB / 332.5 MB, free: 12.95 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 1.386/1.386, allocations: 90.04 MB / 473.6 MB, free: 7.262 MB / 314.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 0.6867/2.073, allocations: 76.21 MB / 0.537 GB, free: 14.21 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/2.401, allocations: 69.35 MB / 0.6047 GB, free: 8.754 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.192/4.594, allocations: 438.7 MB / 1.033 GB, free: 6.285 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004302/4.594, allocations: 83.17 kB / 1.033 GB, free: 6.246 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: 395 * Number of variables: 395 Notification: Performance of Generate backend data structure: time 3.468/8.062, allocations: 469.1 MB / 1.491 GB, free: 14.95 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 6.832e-05/8.062, allocations: 8 kB / 1.491 GB, free: 14.94 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001539/8.064, allocations: 225.3 kB / 1.492 GB, free: 14.71 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004627/8.069, allocations: 0.9499 MB / 1.492 GB, free: 13.74 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001852/8.069, allocations: 59.98 kB / 1.492 GB, free: 13.68 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000951/8.07, allocations: 107.9 kB / 1.493 GB, free: 13.58 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00526/8.075, allocations: 1.392 MB / 1.494 GB, free: 12.18 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006308/8.081, allocations: 1.495 MB / 1.495 GB, free: 10.62 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.667e-05/8.082, allocations: 4 kB / 1.495 GB, free: 10.61 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000455/8.082, allocations: 0 / 1.495 GB, free: 10.61 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.932e-05/8.082, allocations: 51.92 kB / 1.495 GB, free: 10.56 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01988/8.102, allocations: 7.309 MB / 1.503 GB, free: 2.727 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002695/8.105, allocations: 0.9153 MB / 1.504 GB, free: 1.77 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002393/8.107, allocations: 0.8715 MB / 1.504 GB, free: 0.8789 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001282/8.109, allocations: 0.6738 MB / 1.505 GB, free: 92 kB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004153/8.113, allocations: 1.031 MB / 1.506 GB, free: 15.03 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=211): time 1.313e-05/8.113, allocations: 0 / 1.506 GB, free: 15.03 MB / 0.6198 GB Notification: Performance of matching and sorting (n=211): time 0.01093/8.124, allocations: 1.846 MB / 1.508 GB, free: 13.16 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003049/8.124, allocations: 242.8 kB / 1.508 GB, free: 12.88 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002895/8.127, allocations: 0.7376 MB / 1.509 GB, free: 12.13 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0005489/8.128, allocations: 33.64 kB / 1.509 GB, free: 12.09 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007915/8.129, allocations: 462.6 kB / 1.509 GB, free: 11.63 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.001574/8.13, allocations: 0.6697 MB / 1.51 GB, free: 10.95 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004081/8.131, allocations: 0 / 1.51 GB, free: 10.95 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0003635/8.131, allocations: 377.9 kB / 1.51 GB, free: 10.57 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002331/8.133, allocations: 0.621 MB / 1.511 GB, free: 9.953 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002571/8.136, allocations: 0.8368 MB / 1.512 GB, free: 9.051 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004911/8.141, allocations: 0.6757 MB / 1.512 GB, free: 8.379 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.748e-05/8.141, allocations: 4 kB / 1.512 GB, free: 8.375 MB / 0.6198 GB Notification: Performance of matching and sorting (n=252) (initialization): time 0.01623/8.157, allocations: 2.026 MB / 1.514 GB, free: 6.324 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.916e-05/8.157, allocations: 4 kB / 1.514 GB, free: 6.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.301e-05/8.157, allocations: 4 kB / 1.514 GB, free: 6.316 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002053/8.159, allocations: 262 kB / 1.515 GB, free: 6.039 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004815/8.164, allocations: 455.4 kB / 1.515 GB, free: 5.594 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6971/8.861, allocations: 9.281 MB / 1.524 GB, free: 130.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005165/8.867, allocations: 229.8 kB / 1.524 GB, free: 130.1 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009038/8.868, allocations: 79.52 kB / 1.524 GB, free: 130.1 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (219): * Single equations (assignments): 199 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 7 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006955/8.868, allocations: 152.8 kB / 1.525 GB, free: 130 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008486/8.869, allocations: 171.7 kB / 1.525 GB, free: 130 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0139/8.883, allocations: 2.396 MB / 1.527 GB, free: 129.9 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.098e-05/8.883, allocations: 24.81 kB / 1.527 GB, free: 129.9 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.42e-05/8.883, allocations: 9 kB / 1.527 GB, free: 129.9 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.421e-05/8.883, allocations: 13.55 kB / 1.527 GB, free: 129.9 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03965/8.923, allocations: 4.477 MB / 1.531 GB, free: 129 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.786e-05/8.923, allocations: 3.656 kB / 1.531 GB, free: 129 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008596/8.932, allocations: 457.6 kB / 1.532 GB, free: 129 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001905/8.934, allocations: 264.2 kB / 1.532 GB, free: 129 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009177/8.935, allocations: 49.72 kB / 1.532 GB, free: 129 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01988/8.955, allocations: 9.293 MB / 1.541 GB, free: 120.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-05/8.955, allocations: 3.156 kB / 1.541 GB, free: 120.6 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02378/8.979, allocations: 3.799 MB / 1.545 GB, free: 119.5 MB / 0.6198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02214/9.001, allocations: 5.296 MB / 1.55 GB, free: 118 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002856/9.004, allocations: 269.9 kB / 1.55 GB, free: 117.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001594/9.006, allocations: 17.3 kB / 1.55 GB, free: 117.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004231/9.01, allocations: 148.6 kB / 1.551 GB, free: 117.8 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001115/9.011, allocations: 198.3 kB / 1.551 GB, free: 117.8 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003622/9.011, allocations: 82.38 kB / 1.551 GB, free: 117.8 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.001476/9.013, allocations: 0.5564 MB / 1.551 GB, free: 117.7 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01182/9.025, allocations: 1.199 MB / 1.553 GB, free: 117.7 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 14 (sink6.inlet.m_flow,mCV6.dp_int,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 (217): * Single equations (assignments): 191 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 12 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(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 Backend phase and start with SimCode phase: time 0.006873/9.032, allocations: 1.542 MB / 1.554 GB, free: 117.3 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.01042/9.042, allocations: 2.826 MB / 1.557 GB, free: 116.2 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.17e-05/9.042, allocations: 0 / 1.557 GB, free: 116.2 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.007742/9.05, allocations: 2.1 MB / 1.559 GB, free: 115.2 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00667/9.057, allocations: 465.6 kB / 1.559 GB, free: 115.2 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01833/9.075, allocations: 3.308 MB / 1.563 GB, free: 114.4 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004633/9.08, allocations: 1.622 MB / 1.564 GB, free: 113.7 MB / 0.6198 GB Notification: Performance of SimCode: time 2.926e-06/9.08, allocations: 2.562 kB / 1.564 GB, free: 113.7 MB / 0.6198 GB (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_MCV_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_MCV.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV_res.mat does not exist to compare? outputFormat=mat