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.008988/0.008988, allocations: 94.81 kB / 15.73 MB, free: 6.039 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.001925/0.001926, allocations: 202.9 kB / 16.68 MB, free: 5.969 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.469/1.469, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8286/0.8286, allocations: 91.2 MB / 381.7 MB, free: 9.332 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 79.88 kB / 0.5169 GB, free: 8.996 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1623/0.1637, allocations: 67.68 MB / 0.5829 GB, free: 5.23 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleStream): time 1.259/1.422, allocations: 284.6 MB / 0.8608 GB, free: 1.707 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.03363/1.456, allocations: 27.33 MB / 0.8875 GB, free: 1.605 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002154/1.458, allocations: 48.09 kB / 0.8876 GB, free: 1.605 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.004276/1.462, allocations: 1.386 MB / 0.8889 GB, free: 1.605 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01819/1.481, allocations: 4.664 MB / 0.8935 GB, free: 1.512 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.007117/1.488, allocations: 2.037 MB / 0.8955 GB, free: 1.445 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.004873/1.493, allocations: 2.223 MB / 0.8977 GB, free: 1.445 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001215/1.494, allocations: 0.6329 MB / 0.8983 GB, free: 17.31 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003643/1.498, allocations: 1.356 MB / 0.8996 GB, free: 17.3 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002173/1.5, allocations: 0.9865 MB / 0.9006 GB, free: 17.3 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0003372/1.5, allocations: 136.6 kB / 0.9007 GB, free: 17.3 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02203/1.522, allocations: 8.892 MB / 0.9094 GB, free: 17.21 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.00163/1.524, allocations: 487.9 kB / 0.9098 GB, free: 17.21 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.002797/1.527, allocations: 0.8478 MB / 0.9107 GB, free: 17.03 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.02409/1.551, allocations: 5.56 MB / 0.9161 GB, free: 16.44 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 7.874e-06/1.551, allocations: 2.469 kB / 0.9161 GB, free: 16.44 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.703e-06/1.551, allocations: 4.812 kB / 0.9161 GB, free: 16.44 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 4.975e-05/1.551, allocations: 0 / 0.9161 GB, free: 16.44 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.009192/1.56, allocations: 2.781 MB / 0.9188 GB, free: 15.01 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/1.56, allocations: 12 kB / 0.9188 GB, free: 15.01 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004424/1.561, allocations: 187.6 kB / 0.919 GB, free: 14.91 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001847/1.563, allocations: 1.011 MB / 0.92 GB, free: 14.54 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.917e-05/1.563, allocations: 87.11 kB / 0.9201 GB, free: 14.53 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001913/1.563, allocations: 124 kB / 0.9202 GB, free: 14.52 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002826/1.566, allocations: 1.773 MB / 0.9219 GB, free: 14.21 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.423e-05/1.566, allocations: 6.516 kB / 0.9219 GB, free: 14.21 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001105/1.566, allocations: 52.75 kB / 0.922 GB, free: 14.21 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001427/1.566, allocations: 108.9 kB / 0.9221 GB, free: 14.19 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002667/1.569, allocations: 1.879 MB / 0.9239 GB, free: 13.92 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01023/1.579, allocations: 7.98 MB / 0.9317 GB, free: 8.277 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001581/1.581, allocations: 0.9131 MB / 0.9326 GB, free: 8.062 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009753/1.582, allocations: 0.6905 MB / 0.9333 GB, free: 7.973 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001894/1.583, allocations: 2.354 MB / 0.9356 GB, free: 5.285 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.116e-05/1.584, allocations: 45.97 kB / 0.9356 GB, free: 5.246 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=101): time 5.54e-06/1.584, allocations: 3.984 kB / 0.9356 GB, free: 5.242 MB / 0.6856 GB Notification: Performance of matching and sorting (n=103): time 0.007306/1.591, allocations: 3.856 MB / 0.9394 GB, free: 4.145 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.234e-05/1.591, allocations: 63.81 kB / 0.9395 GB, free: 4.078 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/1.592, allocations: 0.8004 MB / 0.9402 GB, free: 3.809 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 8.25e-05/1.592, allocations: 40.7 kB / 0.9403 GB, free: 3.777 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004782/1.593, allocations: 0.6028 MB / 0.9409 GB, free: 3.469 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003056/1.593, allocations: 370.1 kB / 0.9412 GB, free: 3.195 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003019/1.593, allocations: 187.2 kB / 0.9414 GB, free: 3.152 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001478/1.594, allocations: 348.2 kB / 0.9417 GB, free: 2.832 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007425/1.594, allocations: 0.4957 MB / 0.9422 GB, free: 2.773 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008103/1.595, allocations: 0.5765 MB / 0.9428 GB, free: 2.66 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.001825/1.597, allocations: 1.24 MB / 0.944 GB, free: 2.434 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/1.597, allocations: 0 / 0.944 GB, free: 2.434 MB / 0.6856 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002606/1.6, allocations: 1.507 MB / 0.9455 GB, free: 1.688 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/1.6, allocations: 8 kB / 0.9455 GB, free: 1.68 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/1.6, allocations: 0 / 0.9455 GB, free: 1.68 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006395/1.6, allocations: 173.7 kB / 0.9456 GB, free: 1.543 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006746/1.601, allocations: 194.8 kB / 0.9458 GB, free: 1.371 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003251/1.604, allocations: 2.692 MB / 0.9484 GB, free: 15.14 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007799/1.605, allocations: 28.89 kB / 0.9485 GB, free: 15.12 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002041/1.605, allocations: 64.47 kB / 0.9485 GB, free: 15.07 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.0007941/1.606, allocations: 343.7 kB / 0.9489 GB, free: 14.84 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003214/1.606, allocations: 119.2 kB / 0.949 GB, free: 14.72 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00371/1.61, allocations: 2.123 MB / 0.951 GB, free: 13.25 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.622e-05/1.61, allocations: 12 kB / 0.9511 GB, free: 13.23 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/1.61, allocations: 4 kB / 0.9511 GB, free: 13.23 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.591e-05/1.61, allocations: 7.969 kB / 0.9511 GB, free: 13.22 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005838/1.616, allocations: 3.366 MB / 0.9544 GB, free: 10.24 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/1.616, allocations: 0 / 0.9544 GB, free: 10.24 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006628/1.617, allocations: 178.1 kB / 0.9545 GB, free: 10.07 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006179/1.617, allocations: 175.2 kB / 0.9547 GB, free: 9.902 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001146/1.617, allocations: 47.16 kB / 0.9547 GB, free: 9.859 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003475/1.621, allocations: 2.691 MB / 0.9574 GB, free: 7.047 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/1.621, allocations: 0 / 0.9574 GB, free: 7.047 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004269/1.625, allocations: 2.36 MB / 0.9597 GB, free: 4.676 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005103/1.626, allocations: 184.4 kB / 0.9598 GB, free: 4.477 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003098/1.626, allocations: 20 kB / 0.9599 GB, free: 4.457 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006609/1.627, allocations: 27.92 kB / 0.9599 GB, free: 4.43 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001938/1.627, allocations: 87.97 kB / 0.96 GB, free: 4.348 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001632/1.627, allocations: 59.97 kB / 0.96 GB, free: 4.289 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.001047/1.628, allocations: 0.5826 MB / 0.9606 GB, free: 3.695 MB / 0.7012 GB Notification: Performance of sort global known variables: time 4.21e-07/1.628, allocations: 3.938 kB / 0.9606 GB, free: 3.691 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.003565/1.632, allocations: 0.9462 MB / 0.9615 GB, free: 2.746 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.004541/1.636, allocations: 1.223 MB / 0.9627 GB, free: 1.613 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.003602/1.64, allocations: 1.517 MB / 0.9642 GB, free: 92 kB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/1.64, allocations: 3.281 kB / 0.9642 GB, free: 92 kB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.001884/1.642, allocations: 0.929 MB / 0.9651 GB, free: 15.17 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002901/1.645, allocations: 409 kB / 0.9655 GB, free: 14.77 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006306/1.651, allocations: 2.78 MB / 0.9682 GB, free: 11.98 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001515/1.653, allocations: 1.256 MB / 0.9694 GB, free: 10.69 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.001997/1.655, allocations: 0.6021 MB / 0.97 GB, free: 10.1 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006078/1.655, allocations: 143.4 kB / 0.9702 GB, free: 9.961 MB / 0.7169 GB Notification: Performance of SimCode: time 2.064e-06/1.655, allocations: 0 / 0.9702 GB, free: 9.961 MB / 0.7169 GB Notification: Performance of Templates: time 0.06185/1.717, allocations: 36.63 MB / 1.006 GB, free: 5.617 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