Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_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_dev_ThermofluidStream.Examples.SimpleStream") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00157/0.00157, allocations: 109.4 kB / 16.41 MB, free: 6.508 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.001509/0.001509, allocations: 192 kB / 17.34 MB, free: 5.734 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.459/1.459, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.869/0.869, allocations: 97.64 MB / 388.8 MB, free: 1.426 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002492/0.002492, allocations: 86.48 kB / 0.5268 GB, free: 38.6 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1083, allocations: 69.24 MB / 0.5944 GB, free: 480 kB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleStream): time 0.626/0.7343, allocations: 285.3 MB / 0.873 GB, free: 3.039 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.03756/0.7719, allocations: 27.39 MB / 0.8998 GB, free: 9.043 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001633/0.7735, allocations: 51.69 kB / 0.8998 GB, free: 8.992 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.003937/0.7774, allocations: 1.45 MB / 0.9012 GB, free: 7.535 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.01372/0.7912, allocations: 4.745 MB / 0.9059 GB, free: 2.773 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.005812/0.797, allocations: 2.06 MB / 0.9079 GB, free: 0.707 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.003793/0.8008, allocations: 2.252 MB / 0.9101 GB, free: 14.45 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008879/0.8016, allocations: 443.3 kB / 0.9105 GB, free: 13.98 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00313/0.8048, allocations: 1.39 MB / 0.9119 GB, free: 12.58 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001583/0.8064, allocations: 0.9882 MB / 0.9128 GB, free: 11.59 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0003516/0.8067, allocations: 139.9 kB / 0.913 GB, free: 11.45 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0172/0.8239, allocations: 8.898 MB / 0.9217 GB, free: 2.539 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0008003/0.8247, allocations: 498.3 kB / 0.9221 GB, free: 2.051 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001435/0.8262, allocations: 0.8435 MB / 0.923 GB, free: 1.203 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.01443/0.8406, allocations: 5.565 MB / 0.9284 GB, free: 11.62 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.8406, allocations: 4 kB / 0.9284 GB, free: 11.61 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.984e-06/0.8406, allocations: 0 / 0.9284 GB, free: 11.61 MB / 0.67 GB Notification: Performance of Transformations before backend: time 5.936e-05/0.8406, allocations: 0 / 0.9284 GB, free: 11.61 MB / 0.67 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.0072/0.8478, allocations: 2.794 MB / 0.9311 GB, free: 8.754 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.8479, allocations: 8.031 kB / 0.9311 GB, free: 8.746 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000437/0.8483, allocations: 182.9 kB / 0.9313 GB, free: 8.566 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002087/0.8504, allocations: 1.025 MB / 0.9323 GB, free: 7.5 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.798e-05/0.8505, allocations: 90.33 kB / 0.9324 GB, free: 7.41 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002417/0.8507, allocations: 119.9 kB / 0.9325 GB, free: 7.293 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003175/0.8539, allocations: 1.773 MB / 0.9342 GB, free: 5.48 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.489e-05/0.854, allocations: 0 / 0.9342 GB, free: 5.48 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001184/0.8541, allocations: 47.98 kB / 0.9343 GB, free: 5.434 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001677/0.8542, allocations: 114.4 kB / 0.9344 GB, free: 5.32 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003238/0.8575, allocations: 1.88 MB / 0.9362 GB, free: 3.434 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01267/0.8701, allocations: 7.988 MB / 0.944 GB, free: 10.6 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00174/0.8719, allocations: 0.8322 MB / 0.9448 GB, free: 9.742 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00111/0.873, allocations: 0.6089 MB / 0.9454 GB, free: 9.133 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001975/0.875, allocations: 2.351 MB / 0.9477 GB, free: 6.266 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.642e-05/0.875, allocations: 43.56 kB / 0.9478 GB, free: 6.211 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=101): time 5.38e-06/0.875, allocations: 0 / 0.9478 GB, free: 6.211 MB / 0.6856 GB Notification: Performance of matching and sorting (n=103): time 0.008085/0.8831, allocations: 3.854 MB / 0.9515 GB, free: 2.27 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.439e-05/0.8832, allocations: 64.41 kB / 0.9516 GB, free: 2.195 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001351/0.8845, allocations: 0.809 MB / 0.9524 GB, free: 1.363 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0001671/0.8847, allocations: 41.7 kB / 0.9524 GB, free: 1.316 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005143/0.8852, allocations: 0.6105 MB / 0.953 GB, free: 0.6992 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003978/0.8856, allocations: 368.8 kB / 0.9534 GB, free: 344 kB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003313/0.8859, allocations: 190.6 kB / 0.9536 GB, free: 144 kB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001805/0.8861, allocations: 341.9 kB / 0.9539 GB, free: 15.8 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008634/0.887, allocations: 0.4951 MB / 0.9544 GB, free: 15.31 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00103/0.888, allocations: 0.5763 MB / 0.9549 GB, free: 14.72 MB / 0.7012 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.002217/0.8902, allocations: 1.235 MB / 0.9561 GB, free: 13.46 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.8902, allocations: 3.938 kB / 0.9561 GB, free: 13.45 MB / 0.7012 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.003034/0.8933, allocations: 1.489 MB / 0.9576 GB, free: 11.95 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 3.147e-05/0.8933, allocations: 14.48 kB / 0.9576 GB, free: 11.94 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.8933, allocations: 3.938 kB / 0.9576 GB, free: 11.94 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006879/0.894, allocations: 168.7 kB / 0.9578 GB, free: 11.77 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008175/0.8948, allocations: 187.7 kB / 0.958 GB, free: 11.59 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003807/0.8986, allocations: 2.708 MB / 0.9606 GB, free: 8.746 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007507/0.8994, allocations: 28.7 kB / 0.9606 GB, free: 8.719 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001957/0.8996, allocations: 63.97 kB / 0.9607 GB, free: 8.656 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.0007206/0.9003, allocations: 349.3 kB / 0.961 GB, free: 8.305 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003375/0.9006, allocations: 115.2 kB / 0.9611 GB, free: 8.191 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004217/0.9049, allocations: 2.111 MB / 0.9632 GB, free: 6.066 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.223e-05/0.9049, allocations: 8 kB / 0.9632 GB, free: 6.059 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.928e-06/0.9049, allocations: 4.812 kB / 0.9632 GB, free: 6.055 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.539e-05/0.9049, allocations: 3.984 kB / 0.9632 GB, free: 6.051 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006611/0.9115, allocations: 3.365 MB / 0.9665 GB, free: 2.594 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/0.9115, allocations: 0 / 0.9665 GB, free: 2.594 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007702/0.9123, allocations: 179.8 kB / 0.9667 GB, free: 2.418 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006485/0.9129, allocations: 175.2 kB / 0.9668 GB, free: 2.246 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001262/0.9131, allocations: 44.84 kB / 0.9669 GB, free: 2.203 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003686/0.9168, allocations: 2.698 MB / 0.9695 GB, free: 15.36 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.9168, allocations: 4.031 kB / 0.9695 GB, free: 15.36 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004277/0.921, allocations: 2.356 MB / 0.9718 GB, free: 12.98 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000395/0.9214, allocations: 188.3 kB / 0.972 GB, free: 12.77 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001912/0.9216, allocations: 16 kB / 0.972 GB, free: 12.76 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005157/0.9221, allocations: 23.98 kB / 0.972 GB, free: 12.73 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001983/0.9223, allocations: 92.88 kB / 0.9721 GB, free: 12.64 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001464/0.9225, allocations: 67.89 kB / 0.9722 GB, free: 12.58 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0009225/0.9234, allocations: 0.5908 MB / 0.9728 GB, free: 11.98 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9234, allocations: 0 / 0.9728 GB, free: 11.98 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.002801/0.9262, allocations: 0.9428 MB / 0.9737 GB, free: 11.03 MB / 0.7169 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.003185/0.9294, allocations: 1.22 MB / 0.9749 GB, free: 9.812 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.003095/0.9325, allocations: 1.452 MB / 0.9763 GB, free: 8.344 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.9325, allocations: 0 / 0.9763 GB, free: 8.344 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001703/0.9342, allocations: 0.8517 MB / 0.9771 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002197/0.9364, allocations: 412.2 kB / 0.9775 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005284/0.9417, allocations: 2.793 MB / 0.9802 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00109/0.9428, allocations: 1.26 MB / 0.9815 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.001549/0.9443, allocations: 0.6075 MB / 0.9821 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004653/0.9448, allocations: 139.4 kB / 0.9822 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of SimCode: time 8.91e-07/0.9448, allocations: 0 / 0.9822 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of Templates: time 0.06559/1.01, allocations: 36.86 MB / 1.018 GB, free: 13.55 MB / 0.7637 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Examples.SimpleStream.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Examples.SimpleStream.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Examples.SimpleStream.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Examples.SimpleStream.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Examples.SimpleStream.sim & ./ThermofluidStream_dev_ThermofluidStream.Examples.SimpleStream -abortSlowSimulation -alarm=1200 -s gbode -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Examples.SimpleStream.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Examples.SimpleStream_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.SimpleStream_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Examples.SimpleStream.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches