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.001581/0.001581, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001876/0.001876, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.445/1.445, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8212/0.8212, allocations: 91.19 MB / 381.6 MB, free: 9.434 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 81.3 kB / 460.3 MB, free: 23.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1422/0.1438, allocations: 67.69 MB / 0.5156 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleStream): time 0.6618/0.8057, allocations: 284.6 MB / 0.7935 GB, free: 2.758 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03206/0.8378, allocations: 27.34 MB / 0.8202 GB, free: 7.328 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001651/0.8395, allocations: 43.75 kB / 0.8202 GB, free: 7.285 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.003651/0.8431, allocations: 1.384 MB / 0.8216 GB, free: 5.895 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.01201/0.8552, allocations: 4.671 MB / 0.8262 GB, free: 1.207 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.4401/1.295, allocations: 2.024 MB / 0.8281 GB, free: 4.203 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.004218/1.3, allocations: 2.216 MB / 0.8303 GB, free: 4.203 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001086/1.301, allocations: 0.6387 MB / 0.8309 GB, free: 4.066 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00342/1.304, allocations: 1.346 MB / 0.8322 GB, free: 4.066 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001486/1.306, allocations: 0.9878 MB / 0.8332 GB, free: 4.066 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0002436/1.306, allocations: 135.3 kB / 0.8333 GB, free: 4.066 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01936/1.325, allocations: 8.852 MB / 0.842 GB, free: 4.066 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001194/1.326, allocations: 491.7 kB / 0.8424 GB, free: 4.066 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.002265/1.329, allocations: 0.8421 MB / 0.8433 GB, free: 4.066 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01867/1.347, allocations: 5.476 MB / 0.8486 GB, free: 3.938 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/1.347, allocations: 4.344 kB / 0.8486 GB, free: 3.938 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.944e-06/1.347, allocations: 0 / 0.8486 GB, free: 3.938 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0001225/1.348, allocations: 0 / 0.8486 GB, free: 3.938 MB / 0.6231 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.009043/1.357, allocations: 2.696 MB / 0.8512 GB, free: 18.79 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/1.357, allocations: 10.88 kB / 0.8513 GB, free: 18.79 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005403/1.357, allocations: 174.5 kB / 0.8514 GB, free: 18.7 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001592/1.359, allocations: 0.9368 MB / 0.8523 GB, free: 18.33 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.507e-05/1.359, allocations: 93.16 kB / 0.8524 GB, free: 18.33 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002121/1.359, allocations: 119.6 kB / 0.8525 GB, free: 18.32 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002744/1.362, allocations: 1.775 MB / 0.8543 GB, free: 18.21 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.996e-05/1.362, allocations: 4.75 kB / 0.8543 GB, free: 18.21 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000101/1.362, allocations: 46.23 kB / 0.8543 GB, free: 18.21 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001269/1.362, allocations: 110.6 kB / 0.8544 GB, free: 18.21 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002356/1.365, allocations: 1.879 MB / 0.8563 GB, free: 18.19 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008978/1.374, allocations: 8.018 MB / 0.8641 GB, free: 13.56 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001397/1.375, allocations: 0.9229 MB / 0.865 GB, free: 13.43 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008807/1.376, allocations: 0.6875 MB / 0.8657 GB, free: 13.42 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001472/1.377, allocations: 2.351 MB / 0.868 GB, free: 10.8 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/1.377, allocations: 46.75 kB / 0.868 GB, free: 10.76 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=101): time 3.406e-06/1.377, allocations: 0 / 0.868 GB, free: 10.76 MB / 0.6387 GB Notification: Performance of matching and sorting (n=103): time 0.006406/1.384, allocations: 3.837 MB / 0.8718 GB, free: 10.02 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.164e-05/1.384, allocations: 65.28 kB / 0.8718 GB, free: 9.957 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001124/1.385, allocations: 0.7926 MB / 0.8726 GB, free: 9.812 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 9.499e-05/1.385, allocations: 41.73 kB / 0.8726 GB, free: 9.781 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003587/1.386, allocations: 0.6022 MB / 0.8732 GB, free: 9.535 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.000221/1.386, allocations: 350 kB / 0.8736 GB, free: 9.309 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002593/1.386, allocations: 187.1 kB / 0.8737 GB, free: 9.293 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001281/1.386, allocations: 342.2 kB / 0.8741 GB, free: 8.988 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006317/1.387, allocations: 0.4989 MB / 0.8745 GB, free: 8.984 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007233/1.388, allocations: 0.5804 MB / 0.8751 GB, free: 8.949 MB / 0.6387 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.001696/1.389, allocations: 1.233 MB / 0.8763 GB, free: 8.816 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/1.389, allocations: 2.812 kB / 0.8763 GB, free: 8.816 MB / 0.6387 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002272/1.392, allocations: 1.492 MB / 0.8778 GB, free: 8.699 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/1.392, allocations: 7.5 kB / 0.8778 GB, free: 8.699 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/1.392, allocations: 4.703 kB / 0.8778 GB, free: 8.699 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005412/1.392, allocations: 174.4 kB / 0.878 GB, free: 8.691 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006113/1.393, allocations: 190.1 kB / 0.8781 GB, free: 8.688 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002935/1.396, allocations: 2.705 MB / 0.8808 GB, free: 7.156 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006552/1.396, allocations: 22.64 kB / 0.8808 GB, free: 7.156 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001431/1.397, allocations: 64.08 kB / 0.8809 GB, free: 7.156 MB / 0.6387 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.0006647/1.397, allocations: 343 kB / 0.8812 GB, free: 7.031 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002253/1.397, allocations: 109.6 kB / 0.8813 GB, free: 6.973 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003264/1.401, allocations: 2.13 MB / 0.8834 GB, free: 6.797 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.29e-05/1.401, allocations: 11.53 kB / 0.8834 GB, free: 6.797 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/1.401, allocations: 5.594 kB / 0.8834 GB, free: 6.797 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.44e-05/1.401, allocations: 5.203 kB / 0.8834 GB, free: 6.797 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004976/1.406, allocations: 3.374 MB / 0.8867 GB, free: 6.281 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/1.406, allocations: 3.094 kB / 0.8867 GB, free: 6.281 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005783/1.406, allocations: 180 kB / 0.8869 GB, free: 6.281 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004848/1.407, allocations: 174.4 kB / 0.887 GB, free: 6.27 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.053e-05/1.407, allocations: 46.41 kB / 0.8871 GB, free: 6.27 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002829/1.41, allocations: 2.697 MB / 0.8897 GB, free: 4.742 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/1.41, allocations: 1.125 kB / 0.8897 GB, free: 4.742 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003104/1.413, allocations: 2.347 MB / 0.892 GB, free: 4.48 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000307/1.413, allocations: 178.6 kB / 0.8922 GB, free: 4.324 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001516/1.413, allocations: 28.56 kB / 0.8922 GB, free: 4.324 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004324/1.414, allocations: 23.73 kB / 0.8922 GB, free: 4.324 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/1.414, allocations: 83.02 kB / 0.8923 GB, free: 4.324 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000115/1.414, allocations: 68.42 kB / 0.8924 GB, free: 4.324 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0006997/1.415, allocations: 0.5861 MB / 0.8929 GB, free: 4.211 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1e-07/1.415, allocations: 0.9688 kB / 0.8929 GB, free: 4.211 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.002861/1.418, allocations: 0.9288 MB / 0.8938 GB, free: 4.074 MB / 0.6387 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.002651/1.42, allocations: 1.207 MB / 0.895 GB, free: 3.789 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.00304/1.423, allocations: 1.714 MB / 0.8967 GB, free: 3.629 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 7.924e-06/1.423, allocations: 0.7188 kB / 0.8967 GB, free: 3.629 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001255/1.425, allocations: 0.9308 MB / 0.8976 GB, free: 3.488 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001862/1.427, allocations: 416 kB / 0.898 GB, free: 3.434 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004343/1.431, allocations: 2.765 MB / 0.9007 GB, free: 2.414 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007841/1.432, allocations: 1.257 MB / 0.9019 GB, free: 1.68 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001321/1.433, allocations: 0.6073 MB / 0.9025 GB, free: 1.566 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003506/1.433, allocations: 139.5 kB / 0.9027 GB, free: 1.555 MB / 0.6387 GB Notification: Performance of SimCode: time 7.51e-07/1.433, allocations: 3.938 kB / 0.9027 GB, free: 1.551 MB / 0.6387 GB Notification: Performance of Templates: time 0.06021/1.494, allocations: 36.4 MB / 0.9382 GB, free: 200 kB / 0.67 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