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.00155/0.00155, allocations: 103.5 kB / 16.35 MB, free: 6.285 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.001798/0.001798, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.285/1.285, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8588/0.8588, allocations: 89.5 MB / 380.6 MB, free: 8.676 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 79.88 kB / 459.7 MB, free: 10.62 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1357, allocations: 67.31 MB / 0.5146 GB, free: 7.23 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleStream): time 0.8898/1.025, allocations: 284.4 MB / 0.7923 GB, free: 1.258 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02803/1.054, allocations: 27.26 MB / 0.8189 GB, free: 0.7773 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001687/1.055, allocations: 21.31 kB / 0.819 GB, free: 0.7773 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.003683/1.059, allocations: 1.383 MB / 0.8203 GB, free: 0.7188 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01363/1.073, allocations: 4.62 MB / 0.8248 GB, free: 0.5117 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.005779/1.079, allocations: 2.036 MB / 0.8268 GB, free: 436 kB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003896/1.082, allocations: 2.119 MB / 0.8289 GB, free: 308 kB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009103/1.083, allocations: 0.6016 MB / 0.8295 GB, free: 16.14 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002945/1.086, allocations: 1.288 MB / 0.8307 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00123/1.088, allocations: 0.975 MB / 0.8317 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001802/1.088, allocations: 135.6 kB / 0.8318 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01749/1.105, allocations: 8.895 MB / 0.8405 GB, free: 13.56 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0009258/1.106, allocations: 485.1 kB / 0.841 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001519/1.108, allocations: 0.7962 MB / 0.8417 GB, free: 13.13 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.017/1.125, allocations: 5.406 MB / 0.847 GB, free: 10.2 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/1.125, allocations: 0 / 0.847 GB, free: 10.2 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.263e-06/1.125, allocations: 2.531 kB / 0.847 GB, free: 10.2 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.332e-05/1.125, allocations: 0 / 0.847 GB, free: 10.2 MB / 0.5919 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.005637/1.13, allocations: 2.552 MB / 0.8495 GB, free: 7.859 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/1.131, allocations: 12.03 kB / 0.8495 GB, free: 7.848 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003103/1.131, allocations: 162.1 kB / 0.8497 GB, free: 7.688 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001206/1.132, allocations: 0.7806 MB / 0.8504 GB, free: 7.059 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.688e-05/1.132, allocations: 98 kB / 0.8505 GB, free: 7 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001644/1.132, allocations: 120.5 kB / 0.8506 GB, free: 6.922 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002402/1.135, allocations: 1.771 MB / 0.8524 GB, free: 5.711 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.082e-05/1.135, allocations: 7.938 kB / 0.8524 GB, free: 5.703 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.522e-05/1.135, allocations: 45.78 kB / 0.8524 GB, free: 5.695 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001262/1.135, allocations: 114 kB / 0.8525 GB, free: 5.598 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002399/1.137, allocations: 1.884 MB / 0.8544 GB, free: 4.039 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008504/1.146, allocations: 7.918 MB / 0.8621 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001458/1.147, allocations: 0.9165 MB / 0.863 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009409/1.148, allocations: 0.6862 MB / 0.8637 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001611/1.15, allocations: 2.351 MB / 0.866 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.364e-05/1.15, allocations: 42.19 kB / 0.866 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=101): time 3.466e-06/1.15, allocations: 0 / 0.866 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of matching and sorting (n=103): time 0.006419/1.156, allocations: 3.797 MB / 0.8697 GB, free: 3.012 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.699e-05/1.157, allocations: 60.41 kB / 0.8698 GB, free: 2.938 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008607/1.157, allocations: 0.6648 MB / 0.8704 GB, free: 2.266 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.117e-05/1.157, allocations: 45.7 kB / 0.8705 GB, free: 2.215 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003393/1.158, allocations: 0.5271 MB / 0.871 GB, free: 1.68 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002708/1.158, allocations: 353.3 kB / 0.8713 GB, free: 1.34 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002871/1.158, allocations: 189.1 kB / 0.8715 GB, free: 1.152 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001204/1.159, allocations: 337.9 kB / 0.8718 GB, free: 0.8164 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007144/1.159, allocations: 0.5017 MB / 0.8723 GB, free: 324 kB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008249/1.16, allocations: 0.5777 MB / 0.8729 GB, free: 15.73 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 = $START.thermalConduction.deltaE_system (0.0 = $START.thermalConduction.deltaE_system) Notification: Performance of analyzeInitialSystem (initialization): time 0.00177/1.162, allocations: 1.239 MB / 0.8741 GB, free: 14.46 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/1.162, allocations: 2.531 kB / 0.8741 GB, free: 14.46 MB / 0.6231 GB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002417/1.164, allocations: 1.494 MB / 0.8755 GB, free: 12.97 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/1.164, allocations: 4 kB / 0.8755 GB, free: 12.96 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/1.164, allocations: 1.5 kB / 0.8755 GB, free: 12.96 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005513/1.165, allocations: 168.8 kB / 0.8757 GB, free: 12.8 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006706/1.166, allocations: 190.1 kB / 0.8759 GB, free: 12.62 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003033/1.169, allocations: 2.699 MB / 0.8785 GB, free: 9.793 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005396/1.169, allocations: 24.06 kB / 0.8785 GB, free: 9.77 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001661/1.169, allocations: 70.86 kB / 0.8786 GB, free: 9.703 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 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 (96): * Single equations (assignments): 90 * 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.0006138/1.17, allocations: 317.4 kB / 0.8789 GB, free: 9.391 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002245/1.17, allocations: 101.2 kB / 0.879 GB, free: 9.293 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003412/1.174, allocations: 2.122 MB / 0.8811 GB, free: 7.203 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-05/1.174, allocations: 12 kB / 0.8811 GB, free: 7.191 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/1.174, allocations: 4 kB / 0.8811 GB, free: 7.188 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/1.174, allocations: 3.984 kB / 0.8811 GB, free: 7.184 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00497/1.179, allocations: 3.313 MB / 0.8843 GB, free: 3.816 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/1.179, allocations: 3.938 kB / 0.8843 GB, free: 3.812 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006348/1.179, allocations: 175.6 kB / 0.8845 GB, free: 3.648 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005128/1.18, allocations: 189.6 kB / 0.8847 GB, free: 3.465 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.327e-05/1.18, allocations: 39.97 kB / 0.8847 GB, free: 3.426 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002919/1.183, allocations: 2.689 MB / 0.8874 GB, free: 0.6133 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/1.183, allocations: 6.469 kB / 0.8874 GB, free: 0.6094 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003396/1.186, allocations: 2.336 MB / 0.8896 GB, free: 14.27 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002956/1.187, allocations: 164 kB / 0.8898 GB, free: 14.09 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001378/1.187, allocations: 19.52 kB / 0.8898 GB, free: 14.07 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004325/1.187, allocations: 28.08 kB / 0.8898 GB, free: 14.04 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001536/1.187, allocations: 88.86 kB / 0.8899 GB, free: 13.96 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001328/1.188, allocations: 67.95 kB / 0.89 GB, free: 13.89 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0006312/1.188, allocations: 0.5029 MB / 0.8905 GB, free: 13.39 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.3e-07/1.188, allocations: 2.438 kB / 0.8905 GB, free: 13.39 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.002609/1.191, allocations: 0.9251 MB / 0.8914 GB, free: 12.46 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.002571/1.193, allocations: 1.201 MB / 0.8926 GB, free: 11.37 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002499/1.196, allocations: 1.533 MB / 0.8941 GB, free: 9.836 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/1.196, allocations: 0 / 0.8941 GB, free: 9.836 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001398/1.197, allocations: 0.9233 MB / 0.895 GB, free: 8.922 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001734/1.199, allocations: 402.6 kB / 0.8953 GB, free: 8.574 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004355/1.203, allocations: 2.559 MB / 0.8978 GB, free: 6.008 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008455/1.204, allocations: 1.217 MB / 0.899 GB, free: 4.762 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001403/1.206, allocations: 0.5908 MB / 0.8996 GB, free: 4.211 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003425/1.206, allocations: 127.4 kB / 0.8997 GB, free: 4.086 MB / 0.6387 GB Notification: Performance of SimCode: time 7.11e-07/1.206, allocations: 0 / 0.8997 GB, free: 4.086 MB / 0.6387 GB Notification: Performance of Templates: time 0.05495/1.261, allocations: 36.07 MB / 0.935 GB, free: 432 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 -s cvode -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