Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.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.Boundaries.Tests.TerminalSourceSink,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",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.009669/0.009669, allocations: 171.9 kB / 15.12 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 2.001/2.001, 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.001109/0.001109, allocations: 106.8 kB / 269.6 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 1.004/1.004, allocations: 90.59 MB / 408.5 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004599/0.00046, allocations: 8 kB / 485.3 MB, free: 1.973 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5278/0.5283, allocations: 66.28 MB / 0.5387 GB, free: 45.68 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9133/1.442, allocations: 431.8 MB / 0.9604 GB, free: 12.63 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003111/1.442, allocations: 78.58 kB / 0.9604 GB, free: 12.59 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.524/1.966, allocations: 47.43 MB / 1.007 GB, free: 203.7 MB / 0.5886 GB Notification: Performance of FrontEnd: time 3.076e-06/1.966, allocations: 0 / 1.007 GB, free: 203.7 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 5.134e-05/1.966, allocations: 3.156 kB / 1.007 GB, free: 203.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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001341/1.968, allocations: 0.5341 MB / 1.007 GB, free: 203.2 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 7.548e-05/1.968, allocations: 8.25 kB / 1.007 GB, free: 203.2 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.962e-05/1.968, allocations: 46.53 kB / 1.007 GB, free: 203.2 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.486e-05/1.968, allocations: 17.44 kB / 1.007 GB, free: 203.2 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003788/1.968, allocations: 225.1 kB / 1.008 GB, free: 202.9 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.207e-05/1.968, allocations: 12.97 kB / 1.008 GB, free: 202.9 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.627e-05/1.968, allocations: 16.16 kB / 1.008 GB, free: 202.9 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004346/1.969, allocations: 165.3 kB / 1.008 GB, free: 202.8 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/1.969, allocations: 0 / 1.008 GB, free: 202.8 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.24e-05/1.969, allocations: 9.328 kB / 1.008 GB, free: 202.8 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/1.969, allocations: 8.125 kB / 1.008 GB, free: 202.8 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003633/1.969, allocations: 108.9 kB / 1.008 GB, free: 202.8 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001184/1.97, allocations: 0.7764 MB / 1.009 GB, free: 202.1 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003449/1.971, allocations: 113.2 kB / 1.009 GB, free: 202 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001316/1.971, allocations: 82.41 kB / 1.009 GB, free: 202 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003009/1.971, allocations: 105.3 kB / 1.009 GB, free: 201.9 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=9): time 2.575e-06/1.971, allocations: 7.938 kB / 1.009 GB, free: 201.9 MB / 0.5886 GB Notification: Performance of matching and sorting (n=9): time 0.0007188/1.972, allocations: 264.2 kB / 1.009 GB, free: 201.7 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.381e-05/1.972, allocations: 61.61 kB / 1.009 GB, free: 201.6 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002268/1.972, allocations: 166.9 kB / 1.009 GB, free: 201.5 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.617e-05/1.972, allocations: 27.27 kB / 1.009 GB, free: 201.5 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/1.972, allocations: 147.7 kB / 1.01 GB, free: 201.4 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 3.644e-05/1.973, allocations: 25.94 kB / 1.01 GB, free: 201.3 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.153e-05/1.973, allocations: 5.062 kB / 1.01 GB, free: 201.3 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001062/1.973, allocations: 328.3 kB / 1.01 GB, free: 201 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001895/1.973, allocations: 62.31 kB / 1.01 GB, free: 201 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000194/1.973, allocations: 91.2 kB / 1.01 GB, free: 200.9 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002236/1.973, allocations: 89.64 kB / 1.01 GB, free: 200.9 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/1.973, allocations: 1.375 kB / 1.01 GB, free: 200.9 MB / 0.5886 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000576/1.974, allocations: 226.8 kB / 1.01 GB, free: 200.8 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 5.638e-05/1.974, allocations: 40.33 kB / 1.01 GB, free: 200.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/1.974, allocations: 1.25 kB / 1.01 GB, free: 200.7 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.345e-05/1.974, allocations: 1.5 kB / 1.01 GB, free: 200.7 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002209/1.974, allocations: 32.75 kB / 1.01 GB, free: 200.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.421e-05/1.974, allocations: 5.281 kB / 1.01 GB, free: 200.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002249/1.974, allocations: 24.81 kB / 1.01 GB, free: 200.7 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.485e-05/1.975, allocations: 10.14 kB / 1.01 GB, free: 200.7 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001614/1.975, allocations: 133.2 kB / 1.011 GB, free: 200.6 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.757e-05/1.975, allocations: 15.84 kB / 1.011 GB, free: 200.6 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004615/1.975, allocations: 168.9 kB / 1.011 GB, free: 200.5 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-05/1.975, allocations: 5.266 kB / 1.011 GB, free: 200.5 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/1.975, allocations: 3.938 kB / 1.011 GB, free: 200.5 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/1.975, allocations: 0 / 1.011 GB, free: 200.5 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002781/1.976, allocations: 217.6 kB / 1.011 GB, free: 200.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/1.976, allocations: 1.875 kB / 1.011 GB, free: 200.3 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001353/1.976, allocations: 22.56 kB / 1.011 GB, free: 200.3 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/1.976, allocations: 4 kB / 1.011 GB, free: 200.3 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/1.976, allocations: 1.688 kB / 1.011 GB, free: 200.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.98e-06/1.976, allocations: 5.172 kB / 1.011 GB, free: 200.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/1.976, allocations: 0 / 1.011 GB, free: 200.3 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005619/1.976, allocations: 228.3 kB / 1.011 GB, free: 200.1 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 6.8e-05/1.976, allocations: 89.02 kB / 1.011 GB, free: 200 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.361e-05/1.976, allocations: 5.562 kB / 1.011 GB, free: 200 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/1.977, allocations: 11.2 kB / 1.011 GB, free: 200 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.022e-05/1.977, allocations: 17.05 kB / 1.011 GB, free: 200 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/1.977, allocations: 11.12 kB / 1.011 GB, free: 200 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0001219/1.977, allocations: 138.1 kB / 1.011 GB, free: 199.9 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.2e-07/1.977, allocations: 0 / 1.011 GB, free: 199.9 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.000443/1.977, allocations: 54.38 kB / 1.012 GB, free: 199.9 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (terminalSource.p) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001158/1.978, allocations: 0.8678 MB / 1.012 GB, free: 199.2 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.000486/1.979, allocations: 181.5 kB / 1.013 GB, free: 199.2 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/1.979, allocations: 0 / 1.013 GB, free: 199.2 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0001862/1.979, allocations: 59.11 kB / 1.013 GB, free: 199.1 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003586/1.98, allocations: 35.58 kB / 1.013 GB, free: 199.1 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002555/1.982, allocations: 1.871 MB / 1.014 GB, free: 197.7 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002922/1.982, allocations: 0.7233 MB / 1.015 GB, free: 197 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0001279/1.983, allocations: 19.92 kB / 1.015 GB, free: 197 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.39e-05/1.983, allocations: 51.88 kB / 1.015 GB, free: 196.9 MB / 0.5886 GB Notification: Performance of SimCode: time 7.52e-07/1.983, allocations: 5.219 kB / 1.015 GB, free: 196.9 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02248/2.005, allocations: 5.469 MB / 1.021 GB, free: 194.9 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001836/2.005, allocations: 204.4 kB / 1.021 GB, free: 194.6 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.152/4.158, allocations: 7.938 kB / 1.021 GB, free: 194.6 MB / 0.5886 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Boundaries_Tests_TerminalSourceSink_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Boundaries_Tests_TerminalSourceSink.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat does not exist to compare? outputFormat=mat