Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.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.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009729/0.0009729, allocations: 174.5 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.384/1.384, allocations: 205.3 MB / 213.4 MB, free: 13.69 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.0008832/0.0008832, allocations: 93.89 kB / 261.4 MB, free: 13.45 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.6745/0.6745, allocations: 90.37 MB / 399.7 MB, free: 12.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.385e-05/2.42e-05, allocations: 7.938 kB / 472.3 MB, free: 3.371 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.3299, allocations: 66.25 MB / 0.5259 GB, free: 28.9 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.945/1.275, allocations: 436.5 MB / 0.9522 GB, free: 218.8 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002091/1.275, allocations: 79.95 kB / 0.9523 GB, free: 218.7 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.2015/1.477, allocations: 101 MB / 1.051 GB, free: 116.7 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.725e-06/1.477, allocations: 0 / 1.051 GB, free: 116.7 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 6.335e-05/1.477, allocations: 19.92 kB / 1.051 GB, free: 116.7 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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.002229/1.479, allocations: 0.8025 MB / 1.052 GB, free: 115.9 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 6.07e-05/1.479, allocations: 16.03 kB / 1.052 GB, free: 115.8 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005606/1.48, allocations: 83.22 kB / 1.052 GB, free: 115.8 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005988/1.48, allocations: 379.4 kB / 1.052 GB, free: 115.3 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.39e-05/1.48, allocations: 12 kB / 1.052 GB, free: 115.3 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.04e-05/1.48, allocations: 28 kB / 1.052 GB, free: 115.3 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00064/1.481, allocations: 454.4 kB / 1.053 GB, free: 114.9 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005988/1.482, allocations: 391.9 kB / 1.053 GB, free: 114.5 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/1.482, allocations: 0 / 1.053 GB, free: 114.5 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.283e-05/1.482, allocations: 0 / 1.053 GB, free: 114.5 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/1.482, allocations: 12 kB / 1.053 GB, free: 114.5 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002229/1.484, allocations: 2.111 MB / 1.055 GB, free: 112.1 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006775/1.485, allocations: 0.512 MB / 1.056 GB, free: 111.6 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002732/1.485, allocations: 234.5 kB / 1.056 GB, free: 111.4 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001907/1.487, allocations: 1.821 MB / 1.058 GB, free: 109.3 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.711e-05/1.487, allocations: 43 kB / 1.058 GB, free: 109.3 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=55): time 2.004e-06/1.487, allocations: 0 / 1.058 GB, free: 109.3 MB / 0.5886 GB Notification: Performance of matching and sorting (n=55): time 0.001363/1.488, allocations: 0.5813 MB / 1.058 GB, free: 108.7 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.141e-05/1.488, allocations: 63.84 kB / 1.058 GB, free: 108.6 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002009/1.489, allocations: 253.1 kB / 1.058 GB, free: 108.4 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.78e-05/1.489, allocations: 25.7 kB / 1.059 GB, free: 108.3 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 8.382e-05/1.489, allocations: 216.5 kB / 1.059 GB, free: 108.1 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 9.271e-05/1.489, allocations: 185.2 kB / 1.059 GB, free: 107.9 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.101e-05/1.489, allocations: 0 / 1.059 GB, free: 107.9 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 6.625e-05/1.489, allocations: 358.7 kB / 1.059 GB, free: 107.6 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002019/1.489, allocations: 149.1 kB / 1.059 GB, free: 107.4 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002161/1.489, allocations: 213.2 kB / 1.06 GB, free: 107.2 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007628/1.49, allocations: 277.8 kB / 1.06 GB, free: 106.9 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/1.49, allocations: 4 kB / 1.06 GB, free: 106.9 MB / 0.5886 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001233/1.491, allocations: 0.6048 MB / 1.06 GB, free: 106.3 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/1.491, allocations: 9.047 kB / 1.06 GB, free: 106.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/1.491, allocations: 0 / 1.06 GB, free: 106.3 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002348/1.492, allocations: 65.67 kB / 1.061 GB, free: 106.2 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003288/1.492, allocations: 87.83 kB / 1.061 GB, free: 106.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001404/1.493, allocations: 2.615 MB / 1.063 GB, free: 103.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003204/1.494, allocations: 31.56 kB / 1.063 GB, free: 103.3 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.238e-05/1.494, allocations: 23.98 kB / 1.063 GB, free: 103.2 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001029/1.494, allocations: 109.7 kB / 1.063 GB, free: 103.1 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001257/1.495, allocations: 0.5852 MB / 1.064 GB, free: 102.5 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.356e-05/1.495, allocations: 47.44 kB / 1.064 GB, free: 102.5 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001529/1.497, allocations: 0.7311 MB / 1.065 GB, free: 101.7 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/1.497, allocations: 8 kB / 1.065 GB, free: 101.7 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/1.497, allocations: 3.938 kB / 1.065 GB, free: 101.7 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/1.497, allocations: 3.984 kB / 1.065 GB, free: 101.7 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001965/1.499, allocations: 1.3 MB / 1.066 GB, free: 100.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/1.499, allocations: 16.02 kB / 1.066 GB, free: 100.4 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002904/1.499, allocations: 79.89 kB / 1.066 GB, free: 100.3 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001991/1.499, allocations: 73.64 kB / 1.066 GB, free: 100.2 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.69e-05/1.499, allocations: 11.98 kB / 1.066 GB, free: 100.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001258/1.501, allocations: 2.618 MB / 1.069 GB, free: 97.34 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/1.501, allocations: 4.031 kB / 1.069 GB, free: 97.34 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0015/1.502, allocations: 0.99 MB / 1.07 GB, free: 96.3 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 9.668e-05/1.502, allocations: 124.5 kB / 1.07 GB, free: 96.16 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.639e-05/1.502, allocations: 7.953 kB / 1.07 GB, free: 96.16 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002475/1.503, allocations: 16 kB / 1.07 GB, free: 96.14 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.814e-05/1.503, allocations: 44.36 kB / 1.07 GB, free: 96.1 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.208e-05/1.503, allocations: 19.98 kB / 1.07 GB, free: 96.08 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0001467/1.503, allocations: 192.6 kB / 1.07 GB, free: 95.89 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.6e-07/1.503, allocations: 0 / 1.07 GB, free: 95.89 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0006348/1.504, allocations: 199.6 kB / 1.07 GB, free: 95.7 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (flowResistance.rear.m_flow,flowResistance1.rear.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 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.002121/1.506, allocations: 1.948 MB / 1.072 GB, free: 93.7 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0008993/1.507, allocations: 0.6408 MB / 1.073 GB, free: 93.05 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/1.507, allocations: 0 / 1.073 GB, free: 93.05 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0004614/1.507, allocations: 481.4 kB / 1.073 GB, free: 92.56 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007236/1.508, allocations: 129.2 kB / 1.073 GB, free: 92.43 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001377/1.509, allocations: 0.8008 MB / 1.074 GB, free: 91.59 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002197/1.509, allocations: 0.8515 MB / 1.075 GB, free: 90.7 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0003003/1.51, allocations: 91.06 kB / 1.075 GB, free: 90.61 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001958/1.51, allocations: 171.4 kB / 1.075 GB, free: 90.45 MB / 0.5886 GB Notification: Performance of SimCode: time 3.41e-07/1.51, allocations: 0 / 1.075 GB, free: 90.45 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03155/1.541, allocations: 13.46 MB / 1.088 GB, free: 77.05 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001581/1.542, allocations: 185.4 kB / 1.089 GB, free: 76.85 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.353/3.895, allocations: 0 / 1.089 GB, free: 76.85 MB / 0.5886 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat does not exist to compare? outputFormat=mat