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.001351/0.001351, allocations: 110.8 kB / 16.41 MB, free: 6.48 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.001329/0.001329, allocations: 185.5 kB / 17.34 MB, free: 5.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7337/0.7337, allocations: 91.19 MB / 382.4 MB, free: 7.52 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 72.08 kB / 0.5175 GB, free: 4.133 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.3212, allocations: 67.69 MB / 0.5836 GB, free: 13.96 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleStream): time 0.5781/0.8994, allocations: 284.6 MB / 0.8615 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.03104/0.9304, allocations: 27.33 MB / 0.8882 GB, free: 0.8164 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001629/0.9321, allocations: 47.69 kB / 0.8882 GB, free: 0.7695 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.00361/0.9358, allocations: 1.384 MB / 0.8896 GB, free: 15.38 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.01292/0.9487, allocations: 4.668 MB / 0.8942 GB, free: 10.69 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.005362/0.9541, allocations: 2.032 MB / 0.8961 GB, free: 8.652 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.003489/0.9576, allocations: 2.217 MB / 0.8983 GB, free: 6.43 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001108/0.9588, allocations: 0.6304 MB / 0.8989 GB, free: 5.773 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003133/0.9619, allocations: 1.374 MB / 0.9003 GB, free: 4.395 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001745/0.9637, allocations: 0.9882 MB / 0.9012 GB, free: 3.402 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0004594/0.9642, allocations: 136 kB / 0.9014 GB, free: 3.27 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01675/0.9809, allocations: 8.902 MB / 0.9101 GB, free: 10.35 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0007447/0.9817, allocations: 486.5 kB / 0.9105 GB, free: 9.875 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001467/0.9832, allocations: 0.8435 MB / 0.9113 GB, free: 9.027 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.01423/0.9974, allocations: 5.53 MB / 0.9167 GB, free: 3.484 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.9975, allocations: 0 / 0.9167 GB, free: 3.484 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.204e-06/0.9975, allocations: 0 / 0.9167 GB, free: 3.484 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 9.621e-05/0.9976, allocations: 0 / 0.9167 GB, free: 3.484 MB / 0.6544 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.00712/1.005, allocations: 2.704 MB / 0.9194 GB, free: 0.7227 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/1.005, allocations: 12.03 kB / 0.9194 GB, free: 0.7109 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004928/1.005, allocations: 181.8 kB / 0.9196 GB, free: 0.5312 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001898/1.007, allocations: 0.9968 MB / 0.9205 GB, free: 15.48 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.81e-05/1.007, allocations: 94.27 kB / 0.9206 GB, free: 15.39 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002107/1.008, allocations: 119.9 kB / 0.9207 GB, free: 15.27 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00286/1.01, allocations: 1.77 MB / 0.9225 GB, free: 13.46 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.275e-05/1.01, allocations: 3.984 kB / 0.9225 GB, free: 13.46 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001065/1.011, allocations: 51.98 kB / 0.9225 GB, free: 13.41 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001399/1.011, allocations: 110.4 kB / 0.9226 GB, free: 13.3 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002643/1.013, allocations: 1.887 MB / 0.9245 GB, free: 11.41 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009133/1.022, allocations: 7.964 MB / 0.9322 GB, free: 2.598 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001494/1.024, allocations: 0.9112 MB / 0.9331 GB, free: 1.66 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00093/1.025, allocations: 0.694 MB / 0.9338 GB, free: 0.9609 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001474/1.026, allocations: 2.351 MB / 0.9361 GB, free: 14.09 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.451e-05/1.027, allocations: 43.5 kB / 0.9362 GB, free: 14.04 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=101): time 3.537e-06/1.027, allocations: 0 / 0.9362 GB, free: 14.04 MB / 0.6856 GB Notification: Performance of matching and sorting (n=103): time 0.006634/1.033, allocations: 3.839 MB / 0.9399 GB, free: 10.11 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.468e-05/1.033, allocations: 68.41 kB / 0.94 GB, free: 10.04 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001049/1.034, allocations: 0.7927 MB / 0.9407 GB, free: 9.219 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 8.832e-05/1.034, allocations: 41.7 kB / 0.9408 GB, free: 9.172 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003891/1.035, allocations: 0.5975 MB / 0.9414 GB, free: 8.566 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002811/1.035, allocations: 354.8 kB / 0.9417 GB, free: 8.215 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003198/1.035, allocations: 190.6 kB / 0.9419 GB, free: 8.023 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001142/1.036, allocations: 341.9 kB / 0.9422 GB, free: 7.684 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007324/1.036, allocations: 0.4939 MB / 0.9427 GB, free: 7.188 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008287/1.037, allocations: 0.5763 MB / 0.9433 GB, free: 6.602 MB / 0.6856 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.001797/1.039, allocations: 1.238 MB / 0.9445 GB, free: 5.332 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/1.039, allocations: 0 / 0.9445 GB, free: 5.332 MB / 0.6856 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002466/1.041, allocations: 1.493 MB / 0.9459 GB, free: 3.828 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/1.041, allocations: 8 kB / 0.9459 GB, free: 3.82 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/1.041, allocations: 0 / 0.9459 GB, free: 3.82 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005679/1.042, allocations: 172.7 kB / 0.9461 GB, free: 3.648 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006487/1.043, allocations: 187.8 kB / 0.9463 GB, free: 3.465 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003134/1.046, allocations: 2.704 MB / 0.9489 GB, free: 0.625 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006775/1.047, allocations: 24.02 kB / 0.9489 GB, free: 0.6016 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001891/1.047, allocations: 63.97 kB / 0.949 GB, free: 0.5391 MB / 0.6856 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: 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 (95): * Single equations (assignments): 89 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * 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.0006221/1.047, allocations: 345.1 kB / 0.9493 GB, free: 200 kB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003023/1.048, allocations: 110.7 kB / 0.9494 GB, free: 88 kB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003468/1.051, allocations: 2.122 MB / 0.9515 GB, free: 13.94 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.954e-05/1.051, allocations: 16 kB / 0.9515 GB, free: 13.92 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.3e-05/1.051, allocations: 7.938 kB / 0.9515 GB, free: 13.91 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.647e-05/1.051, allocations: 11.91 kB / 0.9515 GB, free: 13.9 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005259/1.057, allocations: 3.353 MB / 0.9548 GB, free: 10.46 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/1.057, allocations: 0 / 0.9548 GB, free: 10.46 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006437/1.057, allocations: 179.8 kB / 0.955 GB, free: 10.29 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005572/1.058, allocations: 172.7 kB / 0.9552 GB, free: 10.11 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.785e-05/1.058, allocations: 47.95 kB / 0.9552 GB, free: 10.07 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002953/1.061, allocations: 2.687 MB / 0.9578 GB, free: 7.25 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/1.061, allocations: 4.062 kB / 0.9578 GB, free: 7.246 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003696/1.065, allocations: 2.359 MB / 0.9601 GB, free: 4.859 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003402/1.065, allocations: 175.7 kB / 0.9603 GB, free: 4.668 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002352/1.065, allocations: 16 kB / 0.9603 GB, free: 4.652 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005434/1.066, allocations: 27.98 kB / 0.9603 GB, free: 4.625 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/1.066, allocations: 88.81 kB / 0.9604 GB, free: 4.539 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001513/1.066, allocations: 63.97 kB / 0.9605 GB, free: 4.477 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0008292/1.067, allocations: 0.5826 MB / 0.9611 GB, free: 3.883 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.5e-07/1.067, allocations: 4 kB / 0.9611 GB, free: 3.879 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.002667/1.07, allocations: 0.9329 MB / 0.962 GB, free: 2.945 MB / 0.7012 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 (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.003116/1.073, allocations: 1.207 MB / 0.9631 GB, free: 1.738 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.002731/1.076, allocations: 1.518 MB / 0.9646 GB, free: 208 kB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/1.076, allocations: 0 / 0.9646 GB, free: 208 kB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.001468/1.077, allocations: 0.9296 MB / 0.9655 GB, free: 15.27 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002203/1.079, allocations: 416.7 kB / 0.9659 GB, free: 14.87 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005004/1.084, allocations: 2.811 MB / 0.9687 GB, free: 12.02 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009576/1.085, allocations: 1.256 MB / 0.9699 GB, free: 10.73 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005684/1.086, allocations: 151.4 kB / 0.9701 GB, free: 10.58 MB / 0.7169 GB Notification: Performance of SimCode: time 1.392e-06/1.086, allocations: 4 kB / 0.9701 GB, free: 10.57 MB / 0.7169 GB Notification: Performance of Templates: time 0.04888/1.135, allocations: 36.36 MB / 1.006 GB, free: 6.219 MB / 0.7481 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.SimpleStream.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches