Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.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.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") translateModel(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001083/0.001084, allocations: 89.97 kB / 15.36 MB, free: 0.7383 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.00895/0.00895, allocations: 174.1 kB / 16.26 MB, free: 6.336 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.412/1.412, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6633/0.6633, allocations: 91.33 MB / 382.8 MB, free: 9.676 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004112/0.0004112, allocations: 10.16 kB / 462.7 MB, free: 23.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1259, allocations: 69.21 MB / 0.5195 GB, free: 9.129 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.4687/0.5946, allocations: 136.8 MB / 0.653 GB, free: 9.312 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002405/0.5971, allocations: 2.12 MB / 0.6551 GB, free: 7.59 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002691/0.5974, allocations: 18.16 kB / 0.6551 GB, free: 7.578 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004396/0.5978, allocations: 105.2 kB / 0.6552 GB, free: 7.496 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003254/0.5981, allocations: 114.9 kB / 0.6553 GB, free: 7.402 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004327/0.5986, allocations: 163.4 kB / 0.6555 GB, free: 7.277 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003494/0.5989, allocations: 332.6 kB / 0.6558 GB, free: 7.09 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.5991, allocations: 59.09 kB / 0.6559 GB, free: 7.059 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004052/0.5995, allocations: 173.1 kB / 0.656 GB, free: 6.953 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001722/0.5997, allocations: 121 kB / 0.6561 GB, free: 6.883 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.932e-05/0.5997, allocations: 5.25 kB / 0.6562 GB, free: 6.883 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003516/0.6001, allocations: 198.9 kB / 0.6563 GB, free: 6.793 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.248e-05/0.6002, allocations: 33.09 kB / 0.6564 GB, free: 6.766 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001159/0.6003, allocations: 118.6 kB / 0.6565 GB, free: 6.676 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003495/0.6006, allocations: 253.9 kB / 0.6567 GB, free: 6.512 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.6007, allocations: 3.031 kB / 0.6567 GB, free: 6.512 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.6007, allocations: 0 / 0.6567 GB, free: 6.512 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.6007, allocations: 0 / 0.6567 GB, free: 6.512 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0009306/0.6016, allocations: 0.5341 MB / 0.6573 GB, free: 5.996 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.6017, allocations: 8.781 kB / 0.6573 GB, free: 5.996 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.723e-05/0.6017, allocations: 30.06 kB / 0.6573 GB, free: 5.98 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003294/0.6021, allocations: 289.5 kB / 0.6576 GB, free: 5.699 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.948e-05/0.6021, allocations: 14.25 kB / 0.6576 GB, free: 5.691 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.628e-05/0.6021, allocations: 15.25 kB / 0.6576 GB, free: 5.688 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003498/0.6025, allocations: 171.7 kB / 0.6578 GB, free: 5.559 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.6025, allocations: 7.938 kB / 0.6578 GB, free: 5.551 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.715e-05/0.6025, allocations: 6.688 kB / 0.6578 GB, free: 5.547 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.341e-06/0.6025, allocations: 2.969 kB / 0.6578 GB, free: 5.547 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003178/0.6029, allocations: 111 kB / 0.6579 GB, free: 5.5 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001013/0.6039, allocations: 0.9172 MB / 0.6588 GB, free: 4.59 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003116/0.6042, allocations: 95.77 kB / 0.6589 GB, free: 4.535 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001327/0.6044, allocations: 45.75 kB / 0.6589 GB, free: 4.512 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.333e-05/0.6045, allocations: 83.84 kB / 0.659 GB, free: 4.414 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002691/0.6047, allocations: 94.45 kB / 0.6591 GB, free: 4.34 MB / 478.1 MB Notification: Performance of pre-optimization done (n=7): time 3.357e-06/0.6047, allocations: 7.984 kB / 0.6591 GB, free: 4.332 MB / 478.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005012/0.6053, allocations: 168 kB / 0.6592 GB, free: 4.242 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.951e-05/0.6053, allocations: 57.69 kB / 0.6593 GB, free: 4.176 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002423/0.6056, allocations: 256.9 kB / 0.6595 GB, free: 3.996 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.218e-05/0.6056, allocations: 29.7 kB / 0.6596 GB, free: 3.961 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.6057, allocations: 177.1 kB / 0.6597 GB, free: 3.797 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.208e-05/0.6057, allocations: 21.02 kB / 0.6598 GB, free: 3.781 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.157e-05/0.6058, allocations: 16.56 kB / 0.6598 GB, free: 3.762 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.6059, allocations: 335.8 kB / 0.6601 GB, free: 3.43 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001591/0.6061, allocations: 54.47 kB / 0.6602 GB, free: 3.406 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001653/0.6062, allocations: 90.23 kB / 0.6602 GB, free: 3.332 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003005/0.6065, allocations: 160.1 kB / 0.6604 GB, free: 3.207 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.6066, allocations: 4 kB / 0.6604 GB, free: 3.203 MB / 478.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004238/0.607, allocations: 214.8 kB / 0.6606 GB, free: 3.074 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.257e-05/0.607, allocations: 35.69 kB / 0.6606 GB, free: 3.039 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.607, allocations: 2.344 kB / 0.6606 GB, free: 3.039 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.6071, allocations: 14.88 kB / 0.6607 GB, free: 3.027 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.6072, allocations: 36.92 kB / 0.6607 GB, free: 3.016 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.6072, allocations: 0 / 0.6607 GB, free: 3.016 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001649/0.6074, allocations: 29.52 kB / 0.6607 GB, free: 3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.591e-05/0.6074, allocations: 9.766 kB / 0.6607 GB, free: 2.996 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001198/0.6075, allocations: 140.5 kB / 0.6609 GB, free: 2.859 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.381e-05/0.6076, allocations: 18.81 kB / 0.6609 GB, free: 2.852 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003557/0.6079, allocations: 140.7 kB / 0.661 GB, free: 2.762 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.608, allocations: 6.844 kB / 0.661 GB, free: 2.758 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.608, allocations: 3.938 kB / 0.661 GB, free: 2.754 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.608, allocations: 4 kB / 0.661 GB, free: 2.75 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001973/0.6082, allocations: 241.3 kB / 0.6613 GB, free: 2.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.6082, allocations: 0.8125 kB / 0.6613 GB, free: 2.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/0.6083, allocations: 20.7 kB / 0.6613 GB, free: 2.496 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.6083, allocations: 0 / 0.6613 GB, free: 2.496 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/0.6083, allocations: 7.984 kB / 0.6613 GB, free: 2.488 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.6083, allocations: 3.938 kB / 0.6613 GB, free: 2.484 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.6083, allocations: 5.344 kB / 0.6613 GB, free: 2.484 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000477/0.6088, allocations: 204.8 kB / 0.6615 GB, free: 2.352 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.603e-05/0.6089, allocations: 93.7 kB / 0.6616 GB, free: 2.246 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.626e-05/0.6089, allocations: 6.938 kB / 0.6616 GB, free: 2.242 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001231/0.6091, allocations: 15.86 kB / 0.6616 GB, free: 2.234 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.499e-05/0.6091, allocations: 14.14 kB / 0.6616 GB, free: 2.227 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.6091, allocations: 0 / 0.6616 GB, free: 2.227 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001475/0.6093, allocations: 184 kB / 0.6618 GB, free: 2.105 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6093, allocations: 0 / 0.6618 GB, free: 2.105 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0002493/0.6096, allocations: 44.55 kB / 0.6618 GB, free: 2.098 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (terminalSource.p) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001775/0.6097, allocations: 139.9 kB / 0.662 GB, free: 1.984 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0003723/0.6101, allocations: 176.7 kB / 0.6621 GB, free: 1.871 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.6101, allocations: 0 / 0.6621 GB, free: 1.871 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000144/0.6103, allocations: 46.88 kB / 0.6622 GB, free: 1.855 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003563/0.6107, allocations: 49.02 kB / 0.6622 GB, free: 1.824 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007619/0.6114, allocations: 0.5335 MB / 0.6627 GB, free: 1.406 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002839/0.6117, allocations: 0.7367 MB / 0.6635 GB, free: 0.6836 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 8.262e-05/0.6118, allocations: 21.12 kB / 0.6635 GB, free: 0.6758 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.183e-05/0.6119, allocations: 23.16 kB / 0.6635 GB, free: 0.6641 MB / 478.1 MB Notification: Performance of SimCode: time 3.21e-07/0.6119, allocations: 0 / 0.6635 GB, free: 0.6641 MB / 478.1 MB Notification: Performance of Templates: time 0.005561/0.6174, allocations: 2.324 MB / 0.6658 GB, free: 15.49 MB / 494.1 MB make -j1 -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.makefile (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & ./ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.TerminalSourceSink_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches