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.005444/0.005444, allocations: 108.3 kB / 15.74 MB, free: 6.055 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.001328/0.001328, allocations: 198.1 kB / 16.68 MB, free: 5.965 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.368/1.368, allocations: 222.9 MB / 240.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8392/0.8392, allocations: 91.19 MB / 381.7 MB, free: 7.48 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001831/0.001831, allocations: 75.88 kB / 0.5168 GB, free: 4.094 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3793/0.3812, allocations: 67.68 MB / 0.5829 GB, free: 13.89 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleStream): time 0.7034/1.085, allocations: 284.6 MB / 0.8608 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.03195/1.117, allocations: 27.33 MB / 0.8875 GB, free: 0.7695 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002032/1.119, allocations: 47.69 kB / 0.8876 GB, free: 0.7227 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.004391/1.123, allocations: 1.446 MB / 0.889 GB, free: 15.27 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.01476/1.138, allocations: 4.739 MB / 0.8936 GB, free: 10.51 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.006049/1.144, allocations: 2.051 MB / 0.8956 GB, free: 8.453 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.003494/1.147, allocations: 2.225 MB / 0.8978 GB, free: 6.219 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001227/1.149, allocations: 0.6306 MB / 0.8984 GB, free: 5.562 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003173/1.152, allocations: 1.378 MB / 0.8998 GB, free: 4.18 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001774/1.154, allocations: 0.9842 MB / 0.9007 GB, free: 3.191 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0003991/1.154, allocations: 136 kB / 0.9008 GB, free: 3.059 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0201/1.174, allocations: 8.906 MB / 0.9095 GB, free: 10.14 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.000871/1.175, allocations: 494.4 kB / 0.91 GB, free: 9.652 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001858/1.177, allocations: 0.8357 MB / 0.9108 GB, free: 8.812 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.01583/1.193, allocations: 5.53 MB / 0.9162 GB, free: 3.27 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/1.193, allocations: 4 kB / 0.9162 GB, free: 3.266 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.583e-06/1.193, allocations: 0 / 0.9162 GB, free: 3.266 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 9.851e-05/1.193, allocations: 0 / 0.9162 GB, free: 3.266 MB / 0.6544 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.007262/1.2, allocations: 2.7 MB / 0.9189 GB, free: 0.5078 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/1.2, allocations: 12.03 kB / 0.9189 GB, free: 0.4961 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005176/1.201, allocations: 189.7 kB / 0.9191 GB, free: 316 kB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00189/1.203, allocations: 0.9967 MB / 0.92 GB, free: 15.27 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.794e-05/1.203, allocations: 86.34 kB / 0.9201 GB, free: 15.18 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002046/1.203, allocations: 123.9 kB / 0.9202 GB, free: 15.06 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002935/1.206, allocations: 1.77 MB / 0.922 GB, free: 13.25 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.452e-05/1.206, allocations: 0 / 0.922 GB, free: 13.25 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001014/1.206, allocations: 51.98 kB / 0.922 GB, free: 13.2 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001355/1.206, allocations: 106.4 kB / 0.9221 GB, free: 13.09 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002743/1.209, allocations: 1.883 MB / 0.924 GB, free: 11.2 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009976/1.219, allocations: 7.964 MB / 0.9317 GB, free: 2.395 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001713/1.221, allocations: 0.9176 MB / 0.9326 GB, free: 1.453 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001068/1.222, allocations: 0.6959 MB / 0.9333 GB, free: 0.75 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001649/1.224, allocations: 2.351 MB / 0.9356 GB, free: 13.88 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.721e-05/1.224, allocations: 47.5 kB / 0.9356 GB, free: 13.83 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=101): time 4.849e-06/1.224, allocations: 0 / 0.9356 GB, free: 13.83 MB / 0.6856 GB Notification: Performance of matching and sorting (n=103): time 0.008916/1.233, allocations: 3.839 MB / 0.9394 GB, free: 9.898 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.83e-05/1.233, allocations: 64.41 kB / 0.9395 GB, free: 9.824 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001548/1.234, allocations: 0.7927 MB / 0.9402 GB, free: 9.008 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 8.48e-05/1.234, allocations: 49.69 kB / 0.9403 GB, free: 8.953 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005146/1.235, allocations: 0.5937 MB / 0.9409 GB, free: 8.352 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003816/1.235, allocations: 350.8 kB / 0.9412 GB, free: 8.004 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003766/1.236, allocations: 186.6 kB / 0.9414 GB, free: 7.816 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001932/1.236, allocations: 345.9 kB / 0.9417 GB, free: 7.473 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008514/1.237, allocations: 0.4978 MB / 0.9422 GB, free: 6.973 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009573/1.238, allocations: 0.5763 MB / 0.9428 GB, free: 6.387 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.001839/1.24, allocations: 1.227 MB / 0.944 GB, free: 5.129 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/1.24, allocations: 4 kB / 0.944 GB, free: 5.125 MB / 0.6856 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002554/1.242, allocations: 1.5 MB / 0.9454 GB, free: 3.613 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/1.242, allocations: 4 kB / 0.9454 GB, free: 3.609 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/1.242, allocations: 4 kB / 0.9454 GB, free: 3.605 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006118/1.243, allocations: 171.5 kB / 0.9456 GB, free: 3.438 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006582/1.243, allocations: 187.8 kB / 0.9458 GB, free: 3.254 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003247/1.247, allocations: 2.698 MB / 0.9484 GB, free: 424 kB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006018/1.247, allocations: 20.03 kB / 0.9484 GB, free: 404 kB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001679/1.247, allocations: 67.95 kB / 0.9485 GB, free: 336 kB / 0.6856 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.0006562/1.248, allocations: 341.6 kB / 0.9488 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002933/1.248, allocations: 110.6 kB / 0.9489 GB, free: 15.88 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003577/1.252, allocations: 2.132 MB / 0.951 GB, free: 13.72 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-05/1.252, allocations: 12 kB / 0.951 GB, free: 13.71 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/1.252, allocations: 4 kB / 0.951 GB, free: 13.71 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.393e-05/1.252, allocations: 11.92 kB / 0.951 GB, free: 13.7 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005341/1.257, allocations: 3.353 MB / 0.9543 GB, free: 10.25 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/1.257, allocations: 4 kB / 0.9543 GB, free: 10.25 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006269/1.258, allocations: 179.7 kB / 0.9545 GB, free: 10.07 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005403/1.259, allocations: 178.8 kB / 0.9546 GB, free: 9.895 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.842e-05/1.259, allocations: 39.97 kB / 0.9547 GB, free: 9.855 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002933/1.262, allocations: 2.692 MB / 0.9573 GB, free: 7.031 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/1.262, allocations: 0 / 0.9573 GB, free: 7.031 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003437/1.265, allocations: 2.363 MB / 0.9596 GB, free: 4.641 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002814/1.265, allocations: 179.7 kB / 0.9598 GB, free: 4.445 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00017/1.266, allocations: 20 kB / 0.9598 GB, free: 4.426 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004712/1.266, allocations: 23.98 kB / 0.9598 GB, free: 4.402 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/1.266, allocations: 88.83 kB / 0.9599 GB, free: 4.316 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001373/1.266, allocations: 63.95 kB / 0.96 GB, free: 4.254 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0007674/1.267, allocations: 0.5748 MB / 0.9605 GB, free: 3.668 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.51e-07/1.267, allocations: 3.938 kB / 0.9605 GB, free: 3.664 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.002608/1.27, allocations: 0.9368 MB / 0.9615 GB, free: 2.727 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.003211/1.273, allocations: 1.205 MB / 0.9626 GB, free: 1.52 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.002512/1.276, allocations: 1.511 MB / 0.9641 GB, free: 15.99 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/1.276, allocations: 4 kB / 0.9641 GB, free: 15.98 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001434/1.277, allocations: 0.9256 MB / 0.965 GB, free: 15.05 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00167/1.279, allocations: 424.3 kB / 0.9654 GB, free: 14.65 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005037/1.284, allocations: 2.725 MB / 0.9681 GB, free: 11.89 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001077/1.285, allocations: 1.264 MB / 0.9693 GB, free: 10.59 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.001257/1.286, allocations: 0.5999 MB / 0.9699 GB, free: 9.996 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004068/1.287, allocations: 135.4 kB / 0.97 GB, free: 9.863 MB / 0.7169 GB Notification: Performance of SimCode: time 4.81e-07/1.287, allocations: 4 kB / 0.97 GB, free: 9.859 MB / 0.7169 GB Notification: Performance of Templates: time 0.05983/1.346, allocations: 36.63 MB / 1.006 GB, free: 5.422 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