Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Examples.SimpleStream.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_ThermofluidStream.Examples.SimpleStream") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001012/0.001011, allocations: 91.22 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.564/1.564, allocations: 223.3 MB / 240 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7964/0.7964, allocations: 89.64 MB / 380.7 MB, free: 11.43 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004512/0.0004514, allocations: 12.97 kB / 460 MB, free: 24.43 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1531, allocations: 68.82 MB / 0.5164 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleStream): time 0.6995/0.8527, allocations: 260.6 MB / 0.7709 GB, free: 7.199 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.03857/0.8913, allocations: 25.29 MB / 0.7956 GB, free: 13.85 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002061/0.8934, allocations: 23.88 kB / 0.7956 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0034/0.8969, allocations: 0.8818 MB / 0.7965 GB, free: 12.94 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.01527/0.9122, allocations: 3.548 MB / 0.8 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.005664/0.9178, allocations: 1.378 MB / 0.8013 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.004315/0.9222, allocations: 2.697 MB / 0.8039 GB, free: 5.289 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008743/0.9231, allocations: 495.6 kB / 0.8044 GB, free: 4.801 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002833/0.9259, allocations: 1.098 MB / 0.8055 GB, free: 3.699 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001345/0.9273, allocations: 0.8716 MB / 0.8063 GB, free: 2.824 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001443/0.9274, allocations: 55.94 kB / 0.8064 GB, free: 2.77 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.585/1.512, allocations: 6.986 MB / 0.8132 GB, free: 13.13 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.001221/1.514, allocations: 384.2 kB / 0.8136 GB, free: 13.13 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0008713/1.515, allocations: 310.7 kB / 0.8139 GB, free: 13.1 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.01102/1.526, allocations: 3.524 MB / 0.8173 GB, free: 12.97 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 1.015e-05/1.526, allocations: 4.406 kB / 0.8173 GB, free: 12.97 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.334e-06/1.526, allocations: 3.281 kB / 0.8173 GB, free: 12.97 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.007e-05/1.526, allocations: 0 / 0.8173 GB, free: 12.97 MB / 0.6075 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.008796/1.535, allocations: 2.308 MB / 0.8196 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 6.378e-05/1.535, allocations: 12.08 kB / 0.8196 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007123/1.535, allocations: 160.5 kB / 0.8197 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001561/1.537, allocations: 0.7368 MB / 0.8205 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001113/1.537, allocations: 89.14 kB / 0.8205 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002274/1.537, allocations: 121.3 kB / 0.8207 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004162/1.541, allocations: 1.764 MB / 0.8224 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.938e-05/1.542, allocations: 2.109 kB / 0.8224 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001264/1.542, allocations: 52.78 kB / 0.8224 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002289/1.542, allocations: 109.9 kB / 0.8225 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003759/1.546, allocations: 1.875 MB / 0.8244 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01191/1.558, allocations: 7.935 MB / 0.8321 GB, free: 22.75 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001522/1.559, allocations: 0.912 MB / 0.833 GB, free: 22.62 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001026/1.56, allocations: 0.6829 MB / 0.8337 GB, free: 22.61 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001852/1.562, allocations: 2.351 MB / 0.836 GB, free: 19.99 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.77e-05/1.562, allocations: 45 kB / 0.836 GB, free: 19.95 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=101): time 4.509e-06/1.562, allocations: 0 / 0.836 GB, free: 19.95 MB / 0.6231 GB Notification: Performance of matching and sorting (n=103): time 0.007513/1.57, allocations: 3.781 MB / 0.8397 GB, free: 19.23 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.199e-05/1.57, allocations: 62.78 kB / 0.8398 GB, free: 19.17 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009834/1.571, allocations: 0.6602 MB / 0.8404 GB, free: 19.04 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 8.041e-05/1.571, allocations: 43.92 kB / 0.8405 GB, free: 19.01 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003919/1.571, allocations: 0.526 MB / 0.841 GB, free: 18.76 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002737/1.572, allocations: 357.8 kB / 0.8413 GB, free: 18.54 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.899e-05/1.572, allocations: 16.88 kB / 0.8413 GB, free: 18.54 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001508/1.572, allocations: 341.7 kB / 0.8416 GB, free: 18.23 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007759/1.573, allocations: 0.5035 MB / 0.8421 GB, free: 18.23 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00086/1.573, allocations: 0.5761 MB / 0.8427 GB, free: 18.19 MB / 0.6231 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.0009853/1.574, allocations: 0.647 MB / 0.8433 GB, free: 18.09 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/1.574, allocations: 0 / 0.8433 GB, free: 18.09 MB / 0.6231 GB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002579/1.577, allocations: 1.479 MB / 0.8448 GB, free: 17.98 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/1.577, allocations: 8.344 kB / 0.8448 GB, free: 17.98 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/1.577, allocations: 2.344 kB / 0.8448 GB, free: 17.98 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006078/1.578, allocations: 166.3 kB / 0.8449 GB, free: 17.97 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006922/1.578, allocations: 191.8 kB / 0.8451 GB, free: 17.97 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003131/1.582, allocations: 2.47 MB / 0.8475 GB, free: 16.6 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/1.583, allocations: 95.16 kB / 0.8476 GB, free: 16.58 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001656/1.583, allocations: 67.81 kB / 0.8477 GB, free: 16.58 MB / 0.6231 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): 90 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * 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.0007634/1.584, allocations: 319 kB / 0.848 GB, free: 16.47 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001951/1.584, allocations: 92.78 kB / 0.8481 GB, free: 16.42 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00351/1.587, allocations: 2.113 MB / 0.8502 GB, free: 16.22 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.436e-05/1.587, allocations: 11.28 kB / 0.8502 GB, free: 16.22 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.837e-06/1.587, allocations: 7.266 kB / 0.8502 GB, free: 16.22 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.367e-05/1.587, allocations: 5.672 kB / 0.8502 GB, free: 16.22 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005256/1.593, allocations: 3.335 MB / 0.8534 GB, free: 15.7 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/1.593, allocations: 0 / 0.8534 GB, free: 15.7 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006041/1.593, allocations: 181.1 kB / 0.8536 GB, free: 15.7 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000489/1.594, allocations: 171.9 kB / 0.8538 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.919e-05/1.594, allocations: 40.2 kB / 0.8538 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002729/1.597, allocations: 2.46 MB / 0.8562 GB, free: 14.31 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/1.597, allocations: 10.31 kB / 0.8562 GB, free: 14.3 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003212/1.6, allocations: 2.313 MB / 0.8585 GB, free: 14.05 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004809/1.6, allocations: 177 kB / 0.8586 GB, free: 13.91 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001457/1.6, allocations: 20.89 kB / 0.8587 GB, free: 13.91 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006073/1.601, allocations: 100 kB / 0.8588 GB, free: 13.89 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001526/1.601, allocations: 91.86 kB / 0.8589 GB, free: 13.89 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001298/1.601, allocations: 63.3 kB / 0.8589 GB, free: 13.89 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0006541/1.602, allocations: 0.4926 MB / 0.8594 GB, free: 13.79 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.11e-07/1.602, allocations: 4 kB / 0.8594 GB, free: 13.79 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.003483/1.605, allocations: 0.9219 MB / 0.8603 GB, free: 13.65 MB / 0.6231 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 (91): * Single equations (assignments): 85 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * 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.003346/1.609, allocations: 1.187 MB / 0.8615 GB, free: 13.3 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002543/1.611, allocations: 1.514 MB / 0.8629 GB, free: 13.14 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/1.611, allocations: 2.562 kB / 0.8629 GB, free: 13.14 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001307/1.613, allocations: 0.9218 MB / 0.8638 GB, free: 13 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002058/1.615, allocations: 373.7 kB / 0.8642 GB, free: 12.96 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004733/1.62, allocations: 3.125 MB / 0.8672 GB, free: 11.51 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009217/1.62, allocations: 1.211 MB / 0.8684 GB, free: 10.79 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001425/1.622, allocations: 0.5864 MB / 0.869 GB, free: 10.67 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003387/1.622, allocations: 123.8 kB / 0.8691 GB, free: 10.66 MB / 0.6231 GB Notification: Performance of SimCode: time 9.81e-07/1.622, allocations: 4 kB / 0.8691 GB, free: 10.66 MB / 0.6231 GB Notification: Performance of Templates: time 0.06337/1.686, allocations: 34.21 MB / 0.9025 GB, free: 7.426 MB / 0.6387 GB make -j1 -f ThermofluidStream_ThermofluidStream.Examples.SimpleStream.makefile (rm -f ThermofluidStream_ThermofluidStream.Examples.SimpleStream.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Examples.SimpleStream.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Examples.SimpleStream.pipe >> ../files/ThermofluidStream_ThermofluidStream.Examples.SimpleStream.sim & ./ThermofluidStream_ThermofluidStream.Examples.SimpleStream -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Examples.SimpleStream.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Examples.SimpleStream_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.SimpleStream_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.SimpleStream.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches