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.00957/0.00957, allocations: 102.6 kB / 15.73 MB, free: 6.496 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.002062/0.002062, allocations: 197.2 kB / 16.67 MB, free: 6.379 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.502/1.502, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.87/0.87, allocations: 91.2 MB / 381.7 MB, free: 9.348 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 79.88 kB / 0.5168 GB, free: 9.02 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1995/0.2009, allocations: 67.7 MB / 0.583 GB, free: 5.246 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleStream): time 1.363/1.564, allocations: 284.6 MB / 0.8608 GB, free: 1.707 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.0418/1.606, allocations: 27.33 MB / 0.8875 GB, free: 1.605 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002152/1.608, allocations: 47.75 kB / 0.8876 GB, free: 1.605 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.00401/1.612, allocations: 1.378 MB / 0.8889 GB, free: 1.605 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01774/1.63, allocations: 4.67 MB / 0.8935 GB, free: 1.512 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.008021/1.638, allocations: 2.034 MB / 0.8955 GB, free: 1.445 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.004641/1.642, allocations: 2.227 MB / 0.8976 GB, free: 1.445 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001129/1.644, allocations: 0.6372 MB / 0.8983 GB, free: 17.31 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003524/1.647, allocations: 1.363 MB / 0.8996 GB, free: 17.3 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001316/1.648, allocations: 0.9861 MB / 0.9006 GB, free: 17.3 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0001814/1.649, allocations: 134.5 kB / 0.9007 GB, free: 17.3 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02162/1.67, allocations: 8.902 MB / 0.9094 GB, free: 17.21 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.001282/1.672, allocations: 496.2 kB / 0.9099 GB, free: 17.21 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.00194/1.674, allocations: 0.8331 MB / 0.9107 GB, free: 17.04 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.02252/1.696, allocations: 5.539 MB / 0.9161 GB, free: 16.47 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/1.696, allocations: 3.938 kB / 0.9161 GB, free: 16.47 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.953e-06/1.696, allocations: 3.812 kB / 0.9161 GB, free: 16.47 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 0.0001126/1.696, allocations: 0 / 0.9161 GB, free: 16.47 MB / 0.6856 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.01039/1.707, allocations: 2.696 MB / 0.9187 GB, free: 15.14 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 5.458e-05/1.707, allocations: 11.27 kB / 0.9187 GB, free: 15.14 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008676/1.708, allocations: 174.6 kB / 0.9189 GB, free: 15.05 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002959/1.711, allocations: 1 MB / 0.9199 GB, free: 14.68 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001239/1.711, allocations: 86.91 kB / 0.92 GB, free: 14.68 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004406/1.711, allocations: 119 kB / 0.9201 GB, free: 14.68 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004439/1.716, allocations: 1.779 MB / 0.9218 GB, free: 14.4 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.666e-05/1.716, allocations: 0 / 0.9218 GB, free: 14.4 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001197/1.716, allocations: 51.53 kB / 0.9219 GB, free: 14.4 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001815/1.716, allocations: 110.9 kB / 0.922 GB, free: 14.38 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003059/1.719, allocations: 1.879 MB / 0.9238 GB, free: 14.11 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0108/1.73, allocations: 7.978 MB / 0.9316 GB, free: 8.469 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001462/1.731, allocations: 0.9054 MB / 0.9325 GB, free: 8.258 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009395/1.732, allocations: 0.6933 MB / 0.9332 GB, free: 8.168 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001779/1.734, allocations: 2.351 MB / 0.9354 GB, free: 5.484 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.003e-05/1.734, allocations: 45.06 kB / 0.9355 GB, free: 5.441 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=101): time 3.556e-06/1.734, allocations: 0 / 0.9355 GB, free: 5.441 MB / 0.6856 GB Notification: Performance of matching and sorting (n=103): time 0.007182/1.741, allocations: 3.834 MB / 0.9392 GB, free: 4.363 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.535e-05/1.742, allocations: 70.25 kB / 0.9393 GB, free: 4.293 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001206/1.743, allocations: 0.7891 MB / 0.9401 GB, free: 4.031 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 7.012e-05/1.743, allocations: 44.61 kB / 0.9401 GB, free: 4 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004206/1.743, allocations: 0.6027 MB / 0.9407 GB, free: 3.691 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002835/1.744, allocations: 353.4 kB / 0.941 GB, free: 3.434 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003084/1.744, allocations: 182.7 kB / 0.9412 GB, free: 3.395 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001521/1.744, allocations: 344.1 kB / 0.9415 GB, free: 3.074 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000711/1.745, allocations: 0.4964 MB / 0.942 GB, free: 3.016 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008202/1.746, allocations: 0.5801 MB / 0.9426 GB, free: 2.898 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.001903/1.747, allocations: 1.234 MB / 0.9438 GB, free: 2.68 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/1.747, allocations: 96 / 0.9438 GB, free: 2.68 MB / 0.6856 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002444/1.75, allocations: 1.496 MB / 0.9453 GB, free: 2.004 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/1.75, allocations: 6.188 kB / 0.9453 GB, free: 2 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.53e-05/1.75, allocations: 8.094 kB / 0.9453 GB, free: 1.992 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005638/1.751, allocations: 167.1 kB / 0.9454 GB, free: 1.859 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006376/1.751, allocations: 190.8 kB / 0.9456 GB, free: 1.691 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003181/1.754, allocations: 2.7 MB / 0.9483 GB, free: 15.45 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005128/1.755, allocations: 21.09 kB / 0.9483 GB, free: 15.44 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001641/1.755, allocations: 74.92 kB / 0.9483 GB, free: 15.38 MB / 0.7012 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.0006826/1.756, allocations: 339.4 kB / 0.9487 GB, free: 15.16 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002079/1.756, allocations: 110.6 kB / 0.9488 GB, free: 15.05 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003425/1.759, allocations: 2.133 MB / 0.9509 GB, free: 13.56 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.792e-05/1.759, allocations: 12 kB / 0.9509 GB, free: 13.55 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/1.759, allocations: 4 kB / 0.9509 GB, free: 13.55 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.301e-05/1.759, allocations: 3.984 kB / 0.9509 GB, free: 13.54 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005085/1.765, allocations: 3.361 MB / 0.9542 GB, free: 10.59 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.198e-05/1.765, allocations: 4 kB / 0.9542 GB, free: 10.59 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006218/1.765, allocations: 178.2 kB / 0.9543 GB, free: 10.42 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005191/1.766, allocations: 174.1 kB / 0.9545 GB, free: 10.25 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.495e-05/1.766, allocations: 45.19 kB / 0.9545 GB, free: 10.21 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003025/1.769, allocations: 2.693 MB / 0.9572 GB, free: 7.395 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/1.769, allocations: 0 / 0.9572 GB, free: 7.395 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003548/1.772, allocations: 2.35 MB / 0.9595 GB, free: 5.031 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003277/1.773, allocations: 179.7 kB / 0.9596 GB, free: 4.836 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000214/1.773, allocations: 18.58 kB / 0.9597 GB, free: 4.82 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005179/1.774, allocations: 31.92 kB / 0.9597 GB, free: 4.789 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000157/1.774, allocations: 88.08 kB / 0.9598 GB, free: 4.707 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001472/1.774, allocations: 63.95 kB / 0.9598 GB, free: 4.645 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0008756/1.775, allocations: 0.5826 MB / 0.9604 GB, free: 4.051 MB / 0.7012 GB Notification: Performance of sort global known variables: time 2.81e-07/1.775, allocations: 0 / 0.9604 GB, free: 4.051 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.003422/1.778, allocations: 0.9311 MB / 0.9613 GB, free: 3.121 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.00412/1.782, allocations: 1.215 MB / 0.9625 GB, free: 1.996 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.002961/1.785, allocations: 1.522 MB / 0.964 GB, free: 484 kB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/1.785, allocations: 0 / 0.964 GB, free: 484 kB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.00164/1.787, allocations: 0.922 MB / 0.9649 GB, free: 15.55 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002428/1.789, allocations: 412.9 kB / 0.9653 GB, free: 15.16 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00571/1.795, allocations: 2.731 MB / 0.9679 GB, free: 12.42 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001226/1.796, allocations: 1.267 MB / 0.9692 GB, free: 11.12 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.001514/1.798, allocations: 0.5947 MB / 0.9698 GB, free: 10.53 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004737/1.798, allocations: 139.4 kB / 0.9699 GB, free: 10.4 MB / 0.7169 GB Notification: Performance of SimCode: time 1.373e-06/1.798, allocations: 0 / 0.9699 GB, free: 10.4 MB / 0.7169 GB Notification: Performance of Templates: time 0.06755/1.866, allocations: 37.03 MB / 1.006 GB, free: 5.656 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.SimpleStream.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches