Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.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.Topology.Tests.TestConnectors,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Topology_Tests_TestConnectors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Topology.Tests.TestConnectors,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Topology_Tests_TestConnectors",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.006056/0.006056, allocations: 179 kB / 7.46 MB, free: 2.512 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.803/1.803, allocations: 221.4 MB / 229.3 MB, free: 3.078 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.001142/0.001142, allocations: 96.72 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.01487/0.01487, allocations: 1.556 MB / 332.5 MB, free: 12.98 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.7496/0.7496, allocations: 90.04 MB / 473.6 MB, free: 7.305 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3595/1.109, allocations: 76.21 MB / 0.537 GB, free: 14.26 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2373/1.346, allocations: 69.36 MB / 0.6047 GB, free: 8.812 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.518/2.865, allocations: 444.7 MB / 1.039 GB, free: 3.688 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004883/2.866, allocations: 94.23 kB / 1.039 GB, free: 3.645 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: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 2.494/5.36, allocations: 0.6024 GB / 1.642 GB, free: 47.2 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/5.36, allocations: 6.594 kB / 1.642 GB, free: 47.2 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003685/5.36, allocations: 269.2 kB / 1.642 GB, free: 47.07 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001661/5.362, allocations: 1.166 MB / 1.643 GB, free: 46.69 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.545e-05/5.362, allocations: 69.12 kB / 1.643 GB, free: 46.69 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000245/5.362, allocations: 132.4 kB / 1.643 GB, free: 46.69 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002854/5.365, allocations: 2.095 MB / 1.645 GB, free: 46.67 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002983/5.368, allocations: 2.114 MB / 1.647 GB, free: 46.52 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.008e-05/5.368, allocations: 0 / 1.647 GB, free: 46.52 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001467/5.368, allocations: 3.688 kB / 1.647 GB, free: 46.52 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.911e-05/5.368, allocations: 66.86 kB / 1.647 GB, free: 46.52 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01073/5.379, allocations: 11.75 MB / 1.659 GB, free: 39.64 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001343/5.38, allocations: 1.089 MB / 1.66 GB, free: 39.59 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001129/5.381, allocations: 0.9869 MB / 1.661 GB, free: 39.57 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006508/5.388, allocations: 6.003 MB / 1.667 GB, free: 36.32 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001418/5.389, allocations: 1.133 MB / 1.668 GB, free: 36.24 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=216): time 4.549e-06/5.389, allocations: 0 / 1.668 GB, free: 36.24 MB / 0.6042 GB Notification: Performance of matching and sorting (n=217): time 0.01153/5.401, allocations: 4.873 MB / 1.673 GB, free: 35.3 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/5.401, allocations: 96.45 kB / 1.673 GB, free: 35.21 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007538/5.402, allocations: 0.6724 MB / 1.673 GB, free: 35.07 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001101/5.402, allocations: 25.7 kB / 1.673 GB, free: 35.04 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003779/5.402, allocations: 0.5847 MB / 1.674 GB, free: 34.7 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004246/5.403, allocations: 0.7024 MB / 1.675 GB, free: 34.22 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/5.403, allocations: 6.312 kB / 1.675 GB, free: 34.22 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 9.918e-05/5.403, allocations: 374.6 kB / 1.675 GB, free: 33.91 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001026/5.404, allocations: 0.7517 MB / 1.676 GB, free: 33.91 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/5.405, allocations: 0.9286 MB / 1.677 GB, free: 33.79 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003927/5.409, allocations: 1.374 MB / 1.678 GB, free: 33.77 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/5.409, allocations: 3.938 kB / 1.678 GB, free: 33.77 MB / 0.6042 GB Notification: Performance of matching and sorting (n=240) (initialization): time 0.006869/5.416, allocations: 3.01 MB / 1.681 GB, free: 33.52 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/5.416, allocations: 9.844 kB / 1.681 GB, free: 33.52 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/5.416, allocations: 9.953 kB / 1.681 GB, free: 33.52 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001904/5.418, allocations: 0.6007 MB / 1.681 GB, free: 33.45 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/5.419, allocations: 299.3 kB / 1.682 GB, free: 33.45 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01037/5.429, allocations: 11.31 MB / 1.693 GB, free: 23.97 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001657/5.431, allocations: 147.7 kB / 1.693 GB, free: 23.93 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000212/5.431, allocations: 84.52 kB / 1.693 GB, free: 23.93 MB / 0.6042 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: connectRearOutlet1.r_rear:VARIABLE(unit = "Pa" protected = true ) type: Real $DER.connectRearOutlet1.outlet.m_flow:VARIABLE(flow=true unit = "kg/s" ) "Mass flow rate" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.connectorInletOutletFore.junctionRFF2_1.junctionMN.rears[1].m_flow:DUMMY_DER(flow=true fixed = false ) "mass flow rate" type: Real [1] $DER.sink3.inlet.m_flow:VARIABLE(flow=true unit = "kg/s" ) "mass flow rate" type: Real connectorInletOutletFore.junctionRFF2_1.junctionMN.r_mix:VARIABLE(unit = "Pa" protected = true ) "mixed r assuming positive massflow" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 16 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 2 {3 18,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004156/5.432, allocations: 145.3 kB / 1.693 GB, free: 23.79 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002627/5.432, allocations: 156.4 kB / 1.693 GB, free: 23.71 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008561/5.441, allocations: 3.674 MB / 1.697 GB, free: 23.41 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.191e-05/5.441, allocations: 28.75 kB / 1.697 GB, free: 23.41 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.259e-05/5.441, allocations: 11.09 kB / 1.697 GB, free: 23.41 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.212e-05/5.441, allocations: 9.938 kB / 1.697 GB, free: 23.41 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01106/5.452, allocations: 5.777 MB / 1.703 GB, free: 21.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-05/5.452, allocations: 3.75 kB / 1.703 GB, free: 21.39 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001733/5.454, allocations: 317.1 kB / 1.703 GB, free: 21.36 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001761/5.455, allocations: 0.5243 MB / 1.703 GB, free: 21.19 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000201/5.456, allocations: 56.67 kB / 1.703 GB, free: 21.18 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01087/5.466, allocations: 13.37 MB / 1.717 GB, free: 24.92 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.774e-06/5.466, allocations: 5.656 kB / 1.717 GB, free: 24.92 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009328/5.476, allocations: 4.461 MB / 1.721 GB, free: 22.94 MB / 0.6198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01061/5.486, allocations: 6.246 MB / 1.727 GB, free: 19.82 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005374/5.487, allocations: 241.6 kB / 1.727 GB, free: 19.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002642/5.487, allocations: 10.38 kB / 1.727 GB, free: 19.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001177/5.488, allocations: 112.2 kB / 1.727 GB, free: 19.59 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003266/5.489, allocations: 160.5 kB / 1.727 GB, free: 19.57 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001994/5.489, allocations: 82.14 kB / 1.728 GB, free: 19.55 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.0008277/5.49, allocations: 0.5106 MB / 1.728 GB, free: 19.3 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.005144/5.495, allocations: 1.309 MB / 1.729 GB, free: 18.72 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (connectRearRear.rear_a.m_flow,connectForeFore.fore_a.m_flow,connectInletFore.fore.m_flow,connectRearOutlet.outlet.m_flow,source1.outlet.m_flow,boundary_rear3.fore.m_flow,connectRearOutlet1.outlet.m_flow,flowResistance2.rear.m_flow,boundary_fore5.rear.m_flow,sink3.inlet.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (195): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 16 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 8,(3,77.8%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002772/5.498, allocations: 2.058 MB / 1.731 GB, free: 17.77 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.00493/5.503, allocations: 3.108 MB / 1.734 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/5.503, allocations: 1.125 kB / 1.734 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.003545/5.506, allocations: 2.455 MB / 1.737 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002402/5.509, allocations: 421.4 kB / 1.737 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007137/5.516, allocations: 3.546 MB / 1.741 GB, free: 12.77 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00179/5.518, allocations: 1.74 MB / 1.742 GB, free: 11.96 MB / 0.6198 GB Notification: Performance of SimCode: time 4.91e-07/5.518, allocations: 0 / 1.742 GB, free: 11.96 MB / 0.6198 GB (rm -f ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_Topology_Tests_TestConnectors_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_Topology_Tests_TestConnectors.fmu > ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors_res.mat does not exist to compare? outputFormat=mat