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.0009986/0.0009986, allocations: 168.2 kB / 16.1 MB, free: 5.695 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.335/1.335, allocations: 205 MB / 221.9 MB, free: 9.145 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.0006818/0.0006819, allocations: 85.33 kB / 269.9 MB, free: 8.676 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.7443/0.7443, allocations: 90.51 MB / 408.3 MB, free: 3.953 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003168/0.0003168, allocations: 8 kB / 484.8 MB, free: 7.219 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.328, allocations: 65.8 MB / 0.5377 GB, free: 34.89 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleStream): time 0.6123/0.9404, allocations: 300.9 MB / 0.8316 GB, free: 6.801 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.03864/0.9791, allocations: 32.83 MB / 0.8636 GB, free: 5.852 MB / 0.573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001934/0.9811, allocations: 23.88 kB / 0.8636 GB, free: 5.828 MB / 0.573 GB Notification: Performance of NFTyping.typeComponents: time 0.00365/0.9847, allocations: 1.288 MB / 0.8649 GB, free: 4.535 MB / 0.573 GB Notification: Performance of NFTyping.typeBindings: time 0.01338/0.9981, allocations: 4.067 MB / 0.8689 GB, free: 468 kB / 0.573 GB Notification: Performance of NFTyping.typeClassSections: time 0.008979/1.007, allocations: 2.692 MB / 0.8715 GB, free: 13.78 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.004492/1.012, allocations: 3.115 MB / 0.8745 GB, free: 10.65 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008762/1.013, allocations: 0.518 MB / 0.875 GB, free: 10.11 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002744/1.015, allocations: 1.098 MB / 0.8761 GB, free: 9.012 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001152/1.016, allocations: 0.8403 MB / 0.8769 GB, free: 8.168 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 0.0001166/1.017, allocations: 52 kB / 0.877 GB, free: 8.117 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02327/1.04, allocations: 11.93 MB / 0.8886 GB, free: 12.16 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0008145/1.041, allocations: 366.7 kB / 0.889 GB, free: 11.8 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.001172/1.042, allocations: 0.6528 MB / 0.8896 GB, free: 11.15 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.01141/1.053, allocations: 4.339 MB / 0.8939 GB, free: 6.801 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/1.053, allocations: 0 / 0.8939 GB, free: 6.801 MB / 0.6042 GB Notification: Performance of FrontEnd: time 4.278e-06/1.053, allocations: 0 / 0.8939 GB, free: 6.801 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 2.677e-05/1.053, allocations: 3.938 kB / 0.8939 GB, free: 6.797 MB / 0.6042 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.006373/1.06, allocations: 2.489 MB / 0.8963 GB, free: 4.254 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/1.06, allocations: 8.031 kB / 0.8963 GB, free: 4.246 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004643/1.06, allocations: 154.2 kB / 0.8965 GB, free: 4.094 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00113/1.062, allocations: 0.7004 MB / 0.8971 GB, free: 3.352 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.155e-05/1.062, allocations: 98.31 kB / 0.8972 GB, free: 3.254 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001757/1.062, allocations: 123.9 kB / 0.8973 GB, free: 3.133 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002577/1.064, allocations: 1.808 MB / 0.8991 GB, free: 1.289 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.126e-05/1.064, allocations: 0 / 0.8991 GB, free: 1.289 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001028/1.065, allocations: 44 kB / 0.8992 GB, free: 1.246 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001474/1.065, allocations: 110.4 kB / 0.8993 GB, free: 1.137 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002615/1.067, allocations: 1.915 MB / 0.9011 GB, free: 15.21 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009224/1.077, allocations: 8.065 MB / 0.909 GB, free: 6.273 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001559/1.078, allocations: 0.9533 MB / 0.9099 GB, free: 5.293 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009603/1.079, allocations: 0.7261 MB / 0.9106 GB, free: 4.562 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003412/1.083, allocations: 4.346 MB / 0.9149 GB, free: 15.38 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.419e-05/1.083, allocations: 39.56 kB / 0.9149 GB, free: 15.34 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=105): time 3.998e-06/1.083, allocations: 0 / 0.9149 GB, free: 15.34 MB / 0.6355 GB Notification: Performance of matching and sorting (n=107): time 0.00694/1.09, allocations: 3.993 MB / 0.9188 GB, free: 11.26 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.034e-05/1.09, allocations: 68.34 kB / 0.9189 GB, free: 11.18 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005579/1.09, allocations: 0.4914 MB / 0.9194 GB, free: 10.68 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 7.277e-05/1.09, allocations: 45.64 kB / 0.9194 GB, free: 10.62 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003047/1.091, allocations: 0.496 MB / 0.9199 GB, free: 10.12 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002917/1.091, allocations: 362.7 kB / 0.9202 GB, free: 9.762 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.715e-05/1.091, allocations: 16 kB / 0.9203 GB, free: 9.746 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001637/1.091, allocations: 394.7 kB / 0.9206 GB, free: 9.352 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007337/1.092, allocations: 0.5291 MB / 0.9212 GB, free: 8.824 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000843/1.093, allocations: 0.6154 MB / 0.9218 GB, free: 8.199 MB / 0.6355 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 = $START.thermalConduction.deltaE_system (0.0 = $START.thermalConduction.deltaE_system) Notification: Performance of analyzeInitialSystem (initialization): time 0.001896/1.095, allocations: 1.305 MB / 0.923 GB, free: 6.863 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/1.095, allocations: 4 kB / 0.923 GB, free: 6.859 MB / 0.6355 GB Notification: Performance of matching and sorting (n=115) (initialization): time 0.002639/1.097, allocations: 1.567 MB / 0.9246 GB, free: 5.281 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.951e-05/1.097, allocations: 8 kB / 0.9246 GB, free: 5.273 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/1.097, allocations: 0 / 0.9246 GB, free: 5.273 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005553/1.098, allocations: 167.4 kB / 0.9247 GB, free: 5.109 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006974/1.099, allocations: 199.8 kB / 0.9249 GB, free: 4.914 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003789/1.102, allocations: 2.47 MB / 0.9273 GB, free: 2.305 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001193/1.104, allocations: 95.86 kB / 0.9274 GB, free: 2.211 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002331/1.104, allocations: 95.89 kB / 0.9275 GB, free: 2.117 MB / 0.6355 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 = $START.thermalConduction.deltaE_system. 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007544/1.105, allocations: 319.5 kB / 0.9278 GB, free: 1.797 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004202/1.105, allocations: 86.97 kB / 0.9279 GB, free: 1.711 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2756/1.381, allocations: 1.969 MB / 0.9298 GB, free: 274.8 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.351e-05/1.381, allocations: 14.91 kB / 0.9298 GB, free: 274.8 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/1.381, allocations: 3.75 kB / 0.9298 GB, free: 274.8 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.072e-05/1.381, allocations: 6.531 kB / 0.9299 GB, free: 274.8 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006636/1.388, allocations: 3.517 MB / 0.9333 GB, free: 273.8 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.784e-06/1.388, allocations: 0.8125 kB / 0.9333 GB, free: 273.8 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007471/1.388, allocations: 202 kB / 0.9335 GB, free: 273.8 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005373/1.389, allocations: 169.7 kB / 0.9336 GB, free: 273.7 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001109/1.389, allocations: 52.31 kB / 0.9337 GB, free: 273.7 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002819/1.392, allocations: 2.464 MB / 0.9361 GB, free: 271.8 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/1.392, allocations: 9.141 kB / 0.9361 GB, free: 271.8 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004315/1.396, allocations: 2.548 MB / 0.9386 GB, free: 270.7 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002905/1.397, allocations: 156.7 kB / 0.9387 GB, free: 270.6 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001245/1.397, allocations: 21.3 kB / 0.9388 GB, free: 270.6 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006003/1.397, allocations: 100.7 kB / 0.9389 GB, free: 270.6 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002439/1.398, allocations: 100.2 kB / 0.939 GB, free: 270.6 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001705/1.398, allocations: 92.33 kB / 0.939 GB, free: 270.5 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0004532/1.398, allocations: 353.8 kB / 0.9394 GB, free: 270.4 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1e-07/1.398, allocations: 1.375 kB / 0.9394 GB, free: 270.4 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.003354/1.402, allocations: 1.171 MB / 0.9405 GB, free: 270.3 MB / 0.6355 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003994/1.406, allocations: 1.66 MB / 0.9421 GB, free: 270 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.002811/1.408, allocations: 1.658 MB / 0.9438 GB, free: 269.4 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/1.408, allocations: 0 / 0.9438 GB, free: 269.4 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.001522/1.41, allocations: 1.003 MB / 0.9447 GB, free: 268.9 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001665/1.412, allocations: 327.9 kB / 0.9451 GB, free: 268.8 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003694/1.415, allocations: 3.145 MB / 0.9481 GB, free: 267.1 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005523/1.416, allocations: 1.18 MB / 0.9493 GB, free: 266.4 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005886/1.416, allocations: 180.8 kB / 0.9495 GB, free: 266.3 MB / 0.6355 GB Notification: Performance of SimCode: time 5.91e-07/1.416, allocations: 0 / 0.9495 GB, free: 266.3 MB / 0.6355 GB Notification: Performance of Templates: time 0.04284/1.459, allocations: 36.43 MB / 0.985 GB, free: 235 MB / 0.6355 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