Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleStream.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: translateModel(ThermofluidStream.Examples.SimpleStream,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|heatCapacitor.T|source.outlet.m_flow|thermalConduction.h|thermalConduction.inlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleStream") translateModel(ThermofluidStream.Examples.SimpleStream,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|heatCapacitor.T|source.outlet.m_flow|thermalConduction.h|thermalConduction.inlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleStream") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.005561/0.00556, allocations: 167.8 kB / 15.13 MB, free: 6.023 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.381/1.381, allocations: 205.4 MB / 221.3 MB, free: 13.8 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.0007034/0.0007034, allocations: 78.38 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.7018/0.7018, allocations: 90.61 MB / 408.5 MB, free: 14.96 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.000318/0.0003182, allocations: 8 kB / 485.2 MB, free: 2.07 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3413/0.3416, allocations: 66.28 MB / 0.5386 GB, free: 45.49 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleStream): time 0.5929/0.9346, allocations: 276.4 MB / 0.8085 GB, free: 5.371 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0257/0.9604, allocations: 29.87 MB / 0.8377 GB, free: 4.812 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001333/0.9617, allocations: 20.41 kB / 0.8377 GB, free: 4.812 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.002761/0.9645, allocations: 0.8747 MB / 0.8386 GB, free: 4.785 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.01037/0.9749, allocations: 3.553 MB / 0.842 GB, free: 4 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.007032/0.982, allocations: 2.266 MB / 0.8443 GB, free: 3.445 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.003025/0.985, allocations: 2.6 MB / 0.8468 GB, free: 2.953 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000634/0.9856, allocations: 490.3 kB / 0.8473 GB, free: 2.793 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00216/0.9878, allocations: 1.055 MB / 0.8483 GB, free: 2.621 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000883/0.9887, allocations: 0.8217 MB / 0.8491 GB, free: 2.488 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 9.612e-05/0.9888, allocations: 50.25 kB / 0.8491 GB, free: 2.488 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01646/1.005, allocations: 8.748 MB / 0.8577 GB, free: 364 kB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0008186/1.006, allocations: 366.9 kB / 0.858 GB, free: 248 kB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0007166/1.007, allocations: 293.3 kB / 0.8583 GB, free: 16.21 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.009071/1.016, allocations: 4.134 MB / 0.8624 GB, free: 14.62 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/1.016, allocations: 0.5 kB / 0.8624 GB, free: 14.62 MB / 0.573 GB Notification: Performance of FrontEnd: time 3.737e-06/1.016, allocations: 1.906 kB / 0.8624 GB, free: 14.62 MB / 0.573 GB Notification: Performance of Transformations before backend: time 2.968e-05/1.016, allocations: 0 / 0.8624 GB, free: 14.62 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.006652/1.023, allocations: 2.506 MB / 0.8648 GB, free: 12.88 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/1.023, allocations: 12.03 kB / 0.8648 GB, free: 12.87 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003681/1.023, allocations: 154.2 kB / 0.865 GB, free: 12.72 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001149/1.024, allocations: 0.6775 MB / 0.8656 GB, free: 12.18 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.479e-05/1.024, allocations: 86.95 kB / 0.8657 GB, free: 12.12 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001793/1.025, allocations: 121.5 kB / 0.8658 GB, free: 12.05 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003052/1.028, allocations: 1.794 MB / 0.8676 GB, free: 10.82 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.946e-05/1.028, allocations: 4 kB / 0.8676 GB, free: 10.82 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001121/1.028, allocations: 45.31 kB / 0.8676 GB, free: 10.81 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001456/1.028, allocations: 114.5 kB / 0.8677 GB, free: 10.71 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002531/1.03, allocations: 1.909 MB / 0.8696 GB, free: 9.438 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009456/1.04, allocations: 8.056 MB / 0.8775 GB, free: 2.133 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/1.041, allocations: 0.953 MB / 0.8784 GB, free: 1.504 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009601/1.042, allocations: 0.7197 MB / 0.8791 GB, free: 1.078 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003505/1.046, allocations: 4.354 MB / 0.8833 GB, free: 12.06 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.062e-05/1.046, allocations: 49.12 kB / 0.8834 GB, free: 12.01 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=105): time 4.528e-06/1.046, allocations: 0 / 0.8834 GB, free: 12.01 MB / 0.5886 GB Notification: Performance of matching and sorting (n=107): time 0.006932/1.053, allocations: 3.96 MB / 0.8873 GB, free: 9.25 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/1.053, allocations: 71.03 kB / 0.8873 GB, free: 9.172 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005914/1.054, allocations: 0.4912 MB / 0.8878 GB, free: 8.781 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 8.16e-05/1.054, allocations: 44.44 kB / 0.8878 GB, free: 8.746 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.000279/1.054, allocations: 0.4941 MB / 0.8883 GB, free: 8.383 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003142/1.054, allocations: 360.8 kB / 0.8887 GB, free: 8.078 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.378e-05/1.054, allocations: 20.69 kB / 0.8887 GB, free: 8.074 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001596/1.055, allocations: 388.9 kB / 0.8891 GB, free: 7.719 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007354/1.055, allocations: 0.5306 MB / 0.8896 GB, free: 7.402 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007945/1.056, allocations: 0.6138 MB / 0.8902 GB, free: 7.008 MB / 0.5886 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: thermalConduction.deltaE_system = 0.0 ($START.thermalConduction.deltaE_system = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0009779/1.057, allocations: 0.6816 MB / 0.8908 GB, free: 6.586 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/1.057, allocations: 0 / 0.8908 GB, free: 6.586 MB / 0.5886 GB Notification: Performance of matching and sorting (n=115) (initialization): time 0.002519/1.06, allocations: 1.559 MB / 0.8924 GB, free: 5.559 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/1.06, allocations: 4 kB / 0.8924 GB, free: 5.555 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/1.06, allocations: 9.266 kB / 0.8924 GB, free: 5.547 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005392/1.06, allocations: 161.4 kB / 0.8925 GB, free: 5.422 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006875/1.061, allocations: 199.6 kB / 0.8927 GB, free: 5.246 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002944/1.064, allocations: 2.473 MB / 0.8951 GB, free: 3.195 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008735/1.065, allocations: 91.05 kB / 0.8952 GB, free: 3.117 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001999/1.065, allocations: 98.58 kB / 0.8953 GB, free: 3.035 MB / 0.5886 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: thermalConduction.deltaE_system = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (96): * Single equations (assignments): 89 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006375/1.066, allocations: 322.3 kB / 0.8956 GB, free: 2.82 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001591/1.066, allocations: 82.97 kB / 0.8957 GB, free: 2.738 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003619/1.069, allocations: 1.982 MB / 0.8976 GB, free: 1.434 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.197e-05/1.069, allocations: 14.06 kB / 0.8977 GB, free: 1.422 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/1.069, allocations: 4 kB / 0.8977 GB, free: 1.418 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.333e-05/1.069, allocations: 7.969 kB / 0.8977 GB, free: 1.41 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00541/1.075, allocations: 3.503 MB / 0.9011 GB, free: 15.01 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.072e-06/1.075, allocations: 0 / 0.9011 GB, free: 15.01 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007175/1.076, allocations: 204.5 kB / 0.9013 GB, free: 14.83 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005244/1.076, allocations: 168.5 kB / 0.9014 GB, free: 14.7 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001127/1.076, allocations: 53.33 kB / 0.9015 GB, free: 14.66 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002957/1.079, allocations: 2.459 MB / 0.9039 GB, free: 12.62 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/1.079, allocations: 2.906 kB / 0.9039 GB, free: 12.62 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003837/1.083, allocations: 2.551 MB / 0.9064 GB, free: 10.98 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000373/1.084, allocations: 151.7 kB / 0.9065 GB, free: 10.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001782/1.084, allocations: 16.81 kB / 0.9066 GB, free: 10.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007544/1.085, allocations: 100.8 kB / 0.9066 GB, free: 10.73 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001585/1.085, allocations: 102.7 kB / 0.9067 GB, free: 10.65 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001844/1.085, allocations: 92.33 kB / 0.9068 GB, free: 10.57 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0004214/1.085, allocations: 353.5 kB / 0.9072 GB, free: 10.3 MB / 0.6042 GB Notification: Performance of sort global known variables: time 9.81e-07/1.085, allocations: 0 / 0.9072 GB, free: 10.3 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.003971/1.089, allocations: 1.171 MB / 0.9083 GB, free: 9.254 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (thermalConduction.h,heatCapacitor.T,flowResistance2.inlet.m_flow,flowResistance3.inlet.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 (97): * Single equations (assignments): 90 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004937/1.094, allocations: 1.629 MB / 0.9099 GB, free: 7.809 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.003074/1.097, allocations: 1.652 MB / 0.9115 GB, free: 6.676 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/1.097, allocations: 0 / 0.9115 GB, free: 6.676 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.001809/1.099, allocations: 1.003 MB / 0.9125 GB, free: 5.98 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001877/1.101, allocations: 327.3 kB / 0.9128 GB, free: 5.742 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00484/1.106, allocations: 3.071 MB / 0.9158 GB, free: 2.977 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009861/1.107, allocations: 1.183 MB / 0.917 GB, free: 1.805 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0015/1.108, allocations: 373.1 kB / 0.9173 GB, free: 1.449 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005441/1.109, allocations: 161.2 kB / 0.9175 GB, free: 1.309 MB / 0.6042 GB Notification: Performance of SimCode: time 2.014e-06/1.109, allocations: 0 / 0.9175 GB, free: 1.309 MB / 0.6042 GB Notification: Performance of Templates: time 0.05963/1.169, allocations: 38.68 MB / 0.9552 GB, free: 10.96 MB / 0.6511 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleStream.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleStream.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleStream.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleStream.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleStream.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleStream -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleStream.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleStream_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Examples.SimpleStream_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleStream.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches