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.001476/0.001476, allocations: 104.8 kB / 15.99 MB, free: 5.883 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.001595/0.001595, allocations: 194.6 kB / 16.9 MB, free: 5.746 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.314/1.314, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8191/0.8191, allocations: 91.19 MB / 381.9 MB, free: 7.688 MB / 302.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001675/0.001675, allocations: 83.88 kB / 460.5 MB, free: 9.387 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1271, allocations: 67.68 MB / 0.5158 GB, free: 5.637 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleStream): time 0.8195/0.9466, allocations: 282.8 MB / 0.7919 GB, free: 1.234 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02745/0.9741, allocations: 27.36 MB / 0.8186 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002041/0.9762, allocations: 55.94 kB / 0.8187 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.003491/0.9797, allocations: 1.285 MB / 0.82 GB, free: 0.7305 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0127/0.9925, allocations: 4.279 MB / 0.8241 GB, free: 0.5234 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.00529/0.9978, allocations: 1.893 MB / 0.826 GB, free: 448 kB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003519/1.001, allocations: 2.235 MB / 0.8282 GB, free: 384 kB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001022/1.002, allocations: 0.6239 MB / 0.8288 GB, free: 16.23 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003016/1.005, allocations: 1.368 MB / 0.8301 GB, free: 16.08 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001721/1.007, allocations: 1.047 MB / 0.8311 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002858/1.007, allocations: 137 kB / 0.8313 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01656/1.024, allocations: 9.26 MB / 0.8403 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.001078/1.025, allocations: 493.2 kB / 0.8408 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001407/1.027, allocations: 0.8411 MB / 0.8416 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.008775/1.035, allocations: 3.895 MB / 0.8454 GB, free: 11.21 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 9.408e-06/1.035, allocations: 4 kB / 0.8454 GB, free: 11.2 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.583e-06/1.035, allocations: 0 / 0.8454 GB, free: 11.2 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 3.465e-05/1.035, allocations: 0 / 0.8454 GB, free: 11.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.006464/1.042, allocations: 2.704 MB / 0.848 GB, free: 8.738 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/1.042, allocations: 12.03 kB / 0.8481 GB, free: 8.727 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004055/1.042, allocations: 178.5 kB / 0.8482 GB, free: 8.551 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001367/1.044, allocations: 0.9306 MB / 0.8491 GB, free: 7.797 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.066e-05/1.044, allocations: 89.64 kB / 0.8492 GB, free: 7.746 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001628/1.044, allocations: 116.8 kB / 0.8493 GB, free: 7.672 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002498/1.047, allocations: 1.772 MB / 0.8511 GB, free: 6.457 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.157e-05/1.047, allocations: 0 / 0.8511 GB, free: 6.457 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.857e-05/1.047, allocations: 49.3 kB / 0.8511 GB, free: 6.449 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000132/1.047, allocations: 118.1 kB / 0.8512 GB, free: 6.348 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002438/1.049, allocations: 1.881 MB / 0.8531 GB, free: 5.008 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009441/1.059, allocations: 7.959 MB / 0.8608 GB, free: 12.34 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001555/1.06, allocations: 0.9107 MB / 0.8617 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009753/1.061, allocations: 0.6992 MB / 0.8624 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001556/1.063, allocations: 2.348 MB / 0.8647 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.106e-05/1.063, allocations: 54.08 kB / 0.8648 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=101): time 3.486e-06/1.063, allocations: 0 / 0.8648 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of matching and sorting (n=103): time 0.007306/1.07, allocations: 3.836 MB / 0.8685 GB, free: 3.887 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.773e-05/1.07, allocations: 60.41 kB / 0.8686 GB, free: 3.812 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001167/1.072, allocations: 0.7928 MB / 0.8693 GB, free: 2.996 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 9.247e-05/1.072, allocations: 45.7 kB / 0.8694 GB, free: 2.945 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003977/1.072, allocations: 0.5975 MB / 0.87 GB, free: 2.34 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002992/1.072, allocations: 355 kB / 0.8703 GB, free: 1.996 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003199/1.073, allocations: 181.5 kB / 0.8705 GB, free: 1.816 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001238/1.073, allocations: 341.9 kB / 0.8708 GB, free: 1.477 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00076/1.074, allocations: 0.5081 MB / 0.8713 GB, free: 0.9727 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008983/1.075, allocations: 0.5763 MB / 0.8719 GB, free: 392 kB / 0.6075 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.001863/1.076, allocations: 1.227 MB / 0.8731 GB, free: 15.13 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/1.076, allocations: 4 kB / 0.8731 GB, free: 15.13 MB / 0.6231 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002683/1.079, allocations: 1.499 MB / 0.8745 GB, free: 13.64 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/1.079, allocations: 8 kB / 0.8745 GB, free: 13.63 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-06/1.079, allocations: 0 / 0.8745 GB, free: 13.63 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006508/1.08, allocations: 168.3 kB / 0.8747 GB, free: 13.46 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000681/1.081, allocations: 191.5 kB / 0.8749 GB, free: 13.29 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003175/1.084, allocations: 2.701 MB / 0.8775 GB, free: 10.46 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009393/1.085, allocations: 94.36 kB / 0.8776 GB, free: 10.37 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002247/1.085, allocations: 70.16 kB / 0.8777 GB, free: 10.3 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 (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.0007425/1.086, allocations: 325.3 kB / 0.878 GB, free: 9.98 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004181/1.086, allocations: 118.6 kB / 0.8781 GB, free: 9.863 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003941/1.09, allocations: 2.129 MB / 0.8802 GB, free: 7.762 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.02e-05/1.09, allocations: 8 kB / 0.8802 GB, free: 7.754 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/1.09, allocations: 7.938 kB / 0.8802 GB, free: 7.746 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.446e-05/1.09, allocations: 7.969 kB / 0.8802 GB, free: 7.738 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005856/1.096, allocations: 3.376 MB / 0.8835 GB, free: 4.32 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/1.096, allocations: 0 / 0.8835 GB, free: 4.32 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006759/1.097, allocations: 175.5 kB / 0.8837 GB, free: 4.156 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005838/1.097, allocations: 183.8 kB / 0.8838 GB, free: 3.977 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/1.097, allocations: 43.97 kB / 0.8839 GB, free: 3.934 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003019/1.1, allocations: 2.691 MB / 0.8865 GB, free: 1.117 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/1.101, allocations: 1.172 kB / 0.8865 GB, free: 1.117 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003613/1.104, allocations: 2.35 MB / 0.8888 GB, free: 14.76 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003755/1.105, allocations: 179.7 kB / 0.889 GB, free: 14.56 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002333/1.105, allocations: 22.11 kB / 0.889 GB, free: 14.54 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007911/1.106, allocations: 99.77 kB / 0.8891 GB, free: 14.45 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001693/1.106, allocations: 84.81 kB / 0.8892 GB, free: 14.36 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001476/1.106, allocations: 67.95 kB / 0.8892 GB, free: 14.29 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.000841/1.107, allocations: 0.5788 MB / 0.8898 GB, free: 13.7 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.8e-07/1.107, allocations: 0 / 0.8898 GB, free: 13.7 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.002691/1.109, allocations: 0.931 MB / 0.8907 GB, free: 12.77 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.003322/1.113, allocations: 1.211 MB / 0.8919 GB, free: 11.67 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.003452/1.116, allocations: 1.721 MB / 0.8936 GB, free: 9.965 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/1.116, allocations: 0 / 0.8936 GB, free: 9.965 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001482/1.118, allocations: 0.9272 MB / 0.8945 GB, free: 9.039 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002351/1.12, allocations: 424 kB / 0.8949 GB, free: 8.68 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005584/1.126, allocations: 3.402 MB / 0.8982 GB, free: 5.258 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001028/1.127, allocations: 1.267 MB / 0.8994 GB, free: 3.957 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006016/1.127, allocations: 151.4 kB / 0.8996 GB, free: 3.809 MB / 0.6387 GB Notification: Performance of SimCode: time 8.02e-07/1.127, allocations: 0 / 0.8996 GB, free: 3.809 MB / 0.6387 GB Notification: Performance of Templates: time 0.0495/1.177, allocations: 36.25 MB / 0.935 GB, free: 15.72 MB / 0.6856 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