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.01254/0.01254, allocations: 169.7 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.826/1.826, allocations: 205.4 MB / 221.3 MB, free: 13.82 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.0009244/0.0009245, allocations: 102.8 kB / 269.6 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.8679/0.8679, allocations: 90.59 MB / 408.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003523/0.0003523, allocations: 8 kB / 485.3 MB, free: 1.961 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4448/0.4451, allocations: 66.28 MB / 0.5387 GB, free: 45.64 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9085/1.354, allocations: 437.2 MB / 0.9656 GB, free: 7.605 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002936/1.354, allocations: 84.61 kB / 0.9657 GB, free: 7.562 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.5845/1.938, allocations: 101.9 MB / 1.065 GB, free: 157.4 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.313e-06/1.939, allocations: 0 / 1.065 GB, free: 157.4 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.71e-05/1.939, allocations: 14.89 kB / 1.065 GB, free: 157.4 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.001778/1.94, allocations: 0.8547 MB / 1.066 GB, free: 156.5 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 6.139e-05/1.94, allocations: 12.03 kB / 1.066 GB, free: 156.5 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.738e-05/1.941, allocations: 78.53 kB / 1.066 GB, free: 156.4 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004252/1.941, allocations: 91.14 kB / 1.066 GB, free: 156.3 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004737/1.941, allocations: 371.3 kB / 1.067 GB, free: 155.9 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.645e-05/1.942, allocations: 33 kB / 1.067 GB, free: 155.9 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.466e-05/1.942, allocations: 40 kB / 1.067 GB, free: 155.9 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006969/1.942, allocations: 459.2 kB / 1.067 GB, free: 155.4 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/1.942, allocations: 4 kB / 1.067 GB, free: 155.4 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.83e-05/1.942, allocations: 19.95 kB / 1.067 GB, free: 155.4 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.717e-05/1.942, allocations: 16 kB / 1.067 GB, free: 155.4 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006719/1.943, allocations: 491.7 kB / 1.068 GB, free: 154.9 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00218/1.945, allocations: 2.208 MB / 1.07 GB, free: 152.4 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007833/1.946, allocations: 0.5405 MB / 1.07 GB, free: 151.9 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002111/1.948, allocations: 1.809 MB / 1.072 GB, free: 149.9 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.774e-05/1.948, allocations: 39 kB / 1.072 GB, free: 149.8 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=55): time 2.425e-06/1.948, allocations: 0 / 1.072 GB, free: 149.8 MB / 0.5886 GB Notification: Performance of matching and sorting (n=55): time 0.001672/1.95, allocations: 1.235 MB / 1.073 GB, free: 148.5 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.297e-05/1.95, allocations: 55.84 kB / 1.073 GB, free: 148.4 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002663/1.95, allocations: 292.9 kB / 1.074 GB, free: 148.1 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 3.307e-05/1.95, allocations: 37.7 kB / 1.074 GB, free: 148.1 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/1.95, allocations: 220.5 kB / 1.074 GB, free: 147.9 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 9.769e-05/1.95, allocations: 187.8 kB / 1.074 GB, free: 147.7 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.152e-05/1.951, allocations: 8 kB / 1.074 GB, free: 147.7 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001036/1.951, allocations: 354.8 kB / 1.074 GB, free: 147.3 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002572/1.951, allocations: 169.1 kB / 1.075 GB, free: 147.2 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003082/1.951, allocations: 238.2 kB / 1.075 GB, free: 146.9 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002887/1.951, allocations: 198 kB / 1.075 GB, free: 146.7 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/1.952, allocations: 3.953 kB / 1.075 GB, free: 146.7 MB / 0.5886 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008575/1.952, allocations: 0.5813 MB / 1.076 GB, free: 146.1 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/1.952, allocations: 8 kB / 1.076 GB, free: 146.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/1.952, allocations: 0 / 1.076 GB, free: 146.1 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002772/1.953, allocations: 73.75 kB / 1.076 GB, free: 146 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003313/1.953, allocations: 83.83 kB / 1.076 GB, free: 145.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0016/1.955, allocations: 2.728 MB / 1.078 GB, free: 143 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003851/1.955, allocations: 43.69 kB / 1.078 GB, free: 142.9 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.139e-05/1.955, allocations: 24.77 kB / 1.078 GB, free: 142.9 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 () * Number of clocked 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.0002692/1.955, allocations: 165.6 kB / 1.079 GB, free: 142.7 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.545e-05/1.955, allocations: 43.44 kB / 1.079 GB, free: 142.7 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001321/1.957, allocations: 0.711 MB / 1.079 GB, free: 141.9 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/1.957, allocations: 8 kB / 1.079 GB, free: 141.9 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/1.957, allocations: 0 / 1.079 GB, free: 141.9 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/1.957, allocations: 7.984 kB / 1.079 GB, free: 141.9 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002028/1.959, allocations: 1.33 MB / 1.081 GB, free: 140.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/1.959, allocations: 0 / 1.081 GB, free: 140.6 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004264/1.959, allocations: 83.89 kB / 1.081 GB, free: 140.5 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002618/1.96, allocations: 69.64 kB / 1.081 GB, free: 140.4 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.147e-05/1.96, allocations: 23.98 kB / 1.081 GB, free: 140.4 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001836/1.962, allocations: 2.732 MB / 1.084 GB, free: 137.4 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/1.962, allocations: 0 / 1.084 GB, free: 137.4 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001427/1.963, allocations: 0.9783 MB / 1.084 GB, free: 136.4 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002542/1.963, allocations: 128.4 kB / 1.085 GB, free: 136.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.633e-05/1.963, allocations: 8 kB / 1.085 GB, free: 136.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002857/1.964, allocations: 16 kB / 1.085 GB, free: 136.2 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001225/1.964, allocations: 40.38 kB / 1.085 GB, free: 136.1 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.96e-05/1.964, allocations: 23.98 kB / 1.085 GB, free: 136.1 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0002587/1.964, allocations: 239.2 kB / 1.085 GB, free: 135.9 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.4e-07/1.964, allocations: 0 / 1.085 GB, free: 135.9 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0009875/1.965, allocations: 211.6 kB / 1.085 GB, free: 135.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 () * Number of clocked 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.002062/1.967, allocations: 1.926 MB / 1.087 GB, free: 133.7 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.001091/1.968, allocations: 0.7079 MB / 1.088 GB, free: 133 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/1.968, allocations: 0 / 1.088 GB, free: 133 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.000548/1.969, allocations: 0.496 MB / 1.088 GB, free: 132.5 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007288/1.97, allocations: 145.9 kB / 1.088 GB, free: 132.4 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003775/1.973, allocations: 3.498 MB / 1.092 GB, free: 128.8 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002696/1.974, allocations: 0.8556 MB / 1.093 GB, free: 127.9 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0004021/1.974, allocations: 95.95 kB / 1.093 GB, free: 127.8 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002185/1.974, allocations: 175.4 kB / 1.093 GB, free: 127.6 MB / 0.5886 GB Notification: Performance of SimCode: time 1.422e-06/1.974, allocations: 4 kB / 1.093 GB, free: 127.6 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02981/2.004, allocations: 16.07 MB / 1.109 GB, free: 111.7 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001734/2.004, allocations: 238.5 kB / 1.109 GB, free: 111.5 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.996/5, allocations: 0 / 1.109 GB, free: 111.5 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