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: "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.MCV,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_MCV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.MCV,fileNamePrefix="ThermofluidStream_OM_adaptions_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 3.2.3+maint.om/package.mo): time 0.0009508/0.0009509, allocations: 183.3 kB / 7.463 MB, free: 484 kB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.086/1.086, allocations: 205.2 MB / 213.1 MB, free: 2.137 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008242/0.0008242, allocations: 93.08 kB / 261.1 MB, free: 1.387 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.5559/0.5559, allocations: 90.35 MB / 399.4 MB, free: 31.6 MB / 318.1 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.1213/0.6772, allocations: 72.39 MB / 471.8 MB, free: 7.055 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.7822, allocations: 66.27 MB / 0.5254 GB, free: 4.609 MB / 430.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7012/1.484, allocations: 438.4 MB / 0.9535 GB, free: 8.543 MB / 0.5919 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001713/1.484, allocations: 81.86 kB / 0.9536 GB, free: 8.504 MB / 0.5919 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 1.135/2.619, allocations: 412.7 MB / 1.357 GB, free: 89.79 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/2.619, allocations: 10.09 kB / 1.357 GB, free: 89.79 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008326/2.619, allocations: 211.9 kB / 1.357 GB, free: 89.68 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002264/2.622, allocations: 0.8764 MB / 1.358 GB, free: 89.01 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.116e-05/2.622, allocations: 48.03 kB / 1.358 GB, free: 89 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004107/2.622, allocations: 100.8 kB / 1.358 GB, free: 89 MB / 0.5919 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002806/2.625, allocations: 1.282 MB / 1.359 GB, free: 88.37 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002456/2.628, allocations: 1.352 MB / 1.36 GB, free: 86.96 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.338e-05/2.628, allocations: 4 kB / 1.36 GB, free: 86.95 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000115/2.628, allocations: 7.625 kB / 1.36 GB, free: 86.95 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.464e-05/2.628, allocations: 39.98 kB / 1.36 GB, free: 86.91 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007152/2.635, allocations: 6.545 MB / 1.367 GB, free: 79.96 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009981/2.636, allocations: 0.8135 MB / 1.368 GB, free: 79.11 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009053/2.637, allocations: 0.7923 MB / 1.368 GB, free: 78.3 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005513/2.637, allocations: 0.5916 MB / 1.369 GB, free: 77.62 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001162/2.639, allocations: 0.9306 MB / 1.37 GB, free: 76.66 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=192): time 5.059e-06/2.639, allocations: 0 / 1.37 GB, free: 76.66 MB / 0.5919 GB Notification: Performance of matching and sorting (n=192): time 0.003495/2.642, allocations: 1.694 MB / 1.372 GB, free: 74.95 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/2.642, allocations: 214.2 kB / 1.372 GB, free: 74.7 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007233/2.643, allocations: 0.6821 MB / 1.372 GB, free: 74 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001162/2.643, allocations: 37.7 kB / 1.372 GB, free: 73.96 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000196/2.643, allocations: 422 kB / 1.373 GB, free: 73.54 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003394/2.644, allocations: 0.5964 MB / 1.373 GB, free: 72.93 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.69e-05/2.644, allocations: 4 kB / 1.373 GB, free: 72.93 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.527e-05/2.644, allocations: 385.2 kB / 1.374 GB, free: 72.55 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008111/2.645, allocations: 0.5702 MB / 1.374 GB, free: 71.98 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008653/2.645, allocations: 0.7515 MB / 1.375 GB, free: 71.18 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001592/2.647, allocations: 0.6246 MB / 1.376 GB, free: 70.57 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/2.647, allocations: 7.922 kB / 1.376 GB, free: 70.56 MB / 0.5919 GB Notification: Performance of matching and sorting (n=229) (initialization): time 0.003268/2.65, allocations: 1.847 MB / 1.378 GB, free: 68.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/2.65, allocations: 4 kB / 1.378 GB, free: 68.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/2.65, allocations: 4 kB / 1.378 GB, free: 68.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006312/2.651, allocations: 231.9 kB / 1.378 GB, free: 68.45 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001472/2.652, allocations: 420.7 kB / 1.378 GB, free: 68.05 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004152/2.657, allocations: 8.009 MB / 1.386 GB, free: 59.41 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001623/2.658, allocations: 215.6 kB / 1.386 GB, free: 59.21 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001446/2.658, allocations: 75.95 kB / 1.386 GB, free: 59.14 MB / 0.5919 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.0002748/2.659, allocations: 142.9 kB / 1.386 GB, free: 59 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000219/2.659, allocations: 158.1 kB / 1.387 GB, free: 58.84 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00469/2.664, allocations: 2.199 MB / 1.389 GB, free: 56.64 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.741e-05/2.664, allocations: 20 kB / 1.389 GB, free: 56.62 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.356e-05/2.664, allocations: 8 kB / 1.389 GB, free: 56.61 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.25e-05/2.664, allocations: 11.95 kB / 1.389 GB, free: 56.6 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006394/2.67, allocations: 4.066 MB / 1.393 GB, free: 52.52 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/2.67, allocations: 0 / 1.393 GB, free: 52.52 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001562/2.672, allocations: 420.8 kB / 1.393 GB, free: 52.12 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006261/2.672, allocations: 243.8 kB / 1.393 GB, free: 51.87 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000145/2.673, allocations: 43.95 kB / 1.393 GB, free: 51.82 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004448/2.677, allocations: 8.019 MB / 1.401 GB, free: 43.16 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/2.677, allocations: 4 kB / 1.401 GB, free: 43.15 MB / 0.5919 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005417/2.682, allocations: 3.428 MB / 1.405 GB, free: 39.64 MB / 0.5919 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006172/2.689, allocations: 4.831 MB / 1.409 GB, free: 34.72 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005177/2.689, allocations: 246.6 kB / 1.41 GB, free: 34.46 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003513/2.69, allocations: 19.98 kB / 1.41 GB, free: 34.44 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001626/2.691, allocations: 145.9 kB / 1.41 GB, free: 34.32 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003321/2.692, allocations: 179.6 kB / 1.41 GB, free: 34.14 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001295/2.692, allocations: 75.94 kB / 1.41 GB, free: 34.07 MB / 0.5919 GB Notification: Performance of sort global known variables: time 0.000545/2.692, allocations: 0.5162 MB / 1.41 GB, free: 33.54 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003367/2.696, allocations: 1.095 MB / 1.412 GB, free: 32.45 MB / 0.5919 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.002001/2.698, allocations: 1.406 MB / 1.413 GB, free: 31.23 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002904/2.7, allocations: 2.551 MB / 1.415 GB, free: 28.56 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/2.7, allocations: 0 / 1.415 GB, free: 28.56 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.002239/2.703, allocations: 1.866 MB / 1.417 GB, free: 26.62 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002313/2.705, allocations: 425.7 kB / 1.418 GB, free: 26.23 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00558/2.711, allocations: 2.955 MB / 1.42 GB, free: 23.37 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001263/2.712, allocations: 1.54 MB / 1.422 GB, free: 21.79 MB / 0.5919 GB Notification: Performance of SimCode: time 1.482e-06/2.712, allocations: 0 / 1.422 GB, free: 21.79 MB / 0.5919 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_MCV_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_MCV.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV_res.mat does not exist to compare? outputFormat=mat