Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.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.Undirected.Topology.Tests.TestConnectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore1.rear.m_flow|boundary_fore2.rear.m_flow|boundary_fore3.rear.m_flow|boundary_fore5.rear.m_flow|boundary_rear.fore.m_flow|connectRearOutlet.rear.m_flow|flowResistance2.rear.m_flow|pulse.T_start|pulse.count|sink3.inlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors") translateModel(ThermofluidStream.Undirected.Topology.Tests.TestConnectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore1.rear.m_flow|boundary_fore2.rear.m_flow|boundary_fore3.rear.m_flow|boundary_fore5.rear.m_flow|boundary_rear.fore.m_flow|connectRearOutlet.rear.m_flow|flowResistance2.rear.m_flow|pulse.T_start|pulse.count|sink3.inlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 107.9 kB / 16.41 MB, free: 6.441 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.001224/0.001224, allocations: 189.6 kB / 17.34 MB, free: 5.742 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.281/1.281, allocations: 222.9 MB / 241 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.6897/0.6897, allocations: 91.19 MB / 382.4 MB, free: 7.535 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 75.88 kB / 0.5175 GB, free: 4.113 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3881/0.3896, allocations: 67.68 MB / 0.5836 GB, free: 13.89 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestConnectors): time 0.6169/1.007, allocations: 225 MB / 0.8033 GB, free: 436 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.03385/1.04, allocations: 30.89 MB / 0.8335 GB, free: 12.1 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004814/1.045, allocations: 137.6 kB / 0.8336 GB, free: 12.1 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.006168/1.052, allocations: 1.731 MB / 0.8353 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.01056/1.062, allocations: 2.628 MB / 0.8379 GB, free: 10.54 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.009398/1.072, allocations: 2.598 MB / 0.8404 GB, free: 9.234 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.008984/1.081, allocations: 4.737 MB / 0.845 GB, free: 7.055 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002698/1.083, allocations: 1.047 MB / 0.8461 GB, free: 5.973 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006633/1.09, allocations: 2.388 MB / 0.8484 GB, free: 3.938 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004995/1.095, allocations: 2.289 MB / 0.8506 GB, free: 1.828 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.001308/1.096, allocations: 264 kB / 0.8509 GB, free: 1.57 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01118/1.108, allocations: 3.724 MB / 0.8545 GB, free: 14.48 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.001587/1.109, allocations: 0.6269 MB / 0.8551 GB, free: 13.89 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.005171/1.114, allocations: 1.546 MB / 0.8566 GB, free: 12.36 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.01598/1.13, allocations: 4.935 MB / 0.8615 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 9.678e-06/1.13, allocations: 4 kB / 0.8615 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.646e-06/1.13, allocations: 4 kB / 0.8615 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001919/1.131, allocations: 0 / 0.8615 GB, free: 7.723 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01109/1.142, allocations: 3.534 MB / 0.8649 GB, free: 4.191 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.633e-05/1.142, allocations: 8.031 kB / 0.8649 GB, free: 4.184 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001281/1.143, allocations: 332.9 kB / 0.8653 GB, free: 3.855 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00555/1.149, allocations: 2.012 MB / 0.8672 GB, free: 1.883 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002065/1.149, allocations: 164.2 kB / 0.8674 GB, free: 1.719 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000691/1.15, allocations: 223.7 kB / 0.8676 GB, free: 1.504 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005159/1.155, allocations: 2.471 MB / 0.87 GB, free: 14.93 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.441e-05/1.155, allocations: 2.812 kB / 0.87 GB, free: 14.93 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001708/1.155, allocations: 87.98 kB / 0.8701 GB, free: 14.84 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-05/1.155, allocations: 52 kB / 0.8701 GB, free: 14.79 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003877/1.159, allocations: 2.22 MB / 0.8723 GB, free: 12.57 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01406/1.173, allocations: 11.19 MB / 0.8832 GB, free: 0.7031 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003488/1.177, allocations: 1.77 MB / 0.885 GB, free: 14.93 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001414/1.178, allocations: 0.8983 MB / 0.8858 GB, free: 14.02 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008254/1.186, allocations: 6.527 MB / 0.8922 GB, free: 6.746 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001905/1.188, allocations: 1.043 MB / 0.8932 GB, free: 5.688 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=183): time 7.054e-06/1.188, allocations: 0 / 0.8932 GB, free: 5.688 MB / 0.6387 GB Notification: Performance of matching and sorting (n=184): time 0.01317/1.201, allocations: 6.088 MB / 0.8992 GB, free: 15.33 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.444e-05/1.202, allocations: 103.1 kB / 0.8993 GB, free: 15.21 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002975/1.205, allocations: 1.841 MB / 0.9011 GB, free: 13.35 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001217/1.205, allocations: 57.7 kB / 0.9011 GB, free: 13.29 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009697/1.206, allocations: 1.069 MB / 0.9022 GB, free: 12.21 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005926/1.206, allocations: 0.6195 MB / 0.9028 GB, free: 11.59 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000492/1.207, allocations: 295.5 kB / 0.9031 GB, free: 11.3 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001295/1.207, allocations: 305.1 kB / 0.9034 GB, free: 11 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001324/1.208, allocations: 0.6677 MB / 0.904 GB, free: 10.33 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001633/1.21, allocations: 0.8648 MB / 0.9048 GB, free: 9.426 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003255/1.213, allocations: 1.657 MB / 0.9065 GB, free: 7.719 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.168e-05/1.213, allocations: 4 kB / 0.9065 GB, free: 7.715 MB / 0.6544 GB Notification: Performance of matching and sorting (n=208) (initialization): time 0.006001/1.219, allocations: 2.553 MB / 0.909 GB, free: 5.121 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.993e-05/1.219, allocations: 37.64 kB / 0.909 GB, free: 5.078 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/1.219, allocations: 4 kB / 0.909 GB, free: 5.074 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001936/1.221, allocations: 0.6126 MB / 0.9096 GB, free: 4.434 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/1.222, allocations: 291.6 kB / 0.9099 GB, free: 4.148 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01731/1.24, allocations: 16.22 MB / 0.9257 GB, free: 2.672 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001635/1.241, allocations: 99.44 kB / 0.9258 GB, free: 2.574 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002048/1.241, allocations: 71.97 kB / 0.9259 GB, free: 2.504 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (163): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(3,18,77.8%), (1,4,100.0%), (1,4,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009967/1.242, allocations: 433.4 kB / 0.9263 GB, free: 2.07 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005107/1.243, allocations: 260.7 kB / 0.9265 GB, free: 1.812 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006232/1.249, allocations: 3.456 MB / 0.9299 GB, free: 14.35 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.689e-05/1.249, allocations: 20 kB / 0.9299 GB, free: 14.33 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.296e-05/1.249, allocations: 8 kB / 0.9299 GB, free: 14.32 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-05/1.249, allocations: 7.969 kB / 0.93 GB, free: 14.32 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00843/1.258, allocations: 5.162 MB / 0.935 GB, free: 9.09 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/1.258, allocations: 0 / 0.935 GB, free: 9.09 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009695/1.259, allocations: 287.6 kB / 0.9353 GB, free: 8.809 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001656/1.26, allocations: 0.5345 MB / 0.9358 GB, free: 8.246 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001329/1.261, allocations: 75.89 kB / 0.9359 GB, free: 8.172 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01194/1.273, allocations: 15.24 MB / 0.9507 GB, free: 7.684 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.733e-06/1.273, allocations: 3.938 kB / 0.9507 GB, free: 7.68 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006696/1.279, allocations: 3.716 MB / 0.9544 GB, free: 3.902 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007459/1.28, allocations: 329.7 kB / 0.9547 GB, free: 3.559 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000276/1.28, allocations: 55.94 kB / 0.9547 GB, free: 3.504 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009318/1.281, allocations: 55.95 kB / 0.9548 GB, free: 3.449 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003902/1.282, allocations: 173.8 kB / 0.955 GB, free: 3.277 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001451/1.282, allocations: 75.95 kB / 0.955 GB, free: 3.203 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0017/1.284, allocations: 1.305 MB / 0.9563 GB, free: 1.891 MB / 0.7012 GB Notification: Performance of sort global known variables: time 2.11e-07/1.284, allocations: 0 / 0.9563 GB, free: 1.891 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.002866/1.286, allocations: 0.8981 MB / 0.9572 GB, free: 0.9922 MB / 0.7012 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 10 (connectRearRear.rear_a.m_flow,connectForeFore.fore_a.m_flow,connectInletFore.fore.m_flow,connectRearOutlet.rear.m_flow,sink1.inlet.m_flow,boundary_fore3.rear.m_flow,flowResistance.rear.m_flow,flowResistance2.rear.m_flow,flowResistance3.inlet.m_flow,flowResistance4.rear.m_flow) * 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 (158): * Single equations (assignments): 147 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(1,4,100.0%), (1,1,100.0%), (1,4,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,8,100.0%), (1,2,100.0%), (3,18,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001538/1.288, allocations: 0.9907 MB / 0.9582 GB, free: 68 kB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.005085/1.293, allocations: 3.089 MB / 0.9612 GB, free: 12.86 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/1.293, allocations: 0 / 0.9612 GB, free: 12.86 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.003192/1.296, allocations: 2.246 MB / 0.9634 GB, free: 10.5 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003496/1.3, allocations: 0.826 MB / 0.9642 GB, free: 9.703 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007929/1.308, allocations: 4.971 MB / 0.969 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001257/1.309, allocations: 1.664 MB / 0.9706 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007361/1.31, allocations: 247.3 kB / 0.9709 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of SimCode: time 9.42e-07/1.31, allocations: 0 / 0.9709 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of Templates: time 0.4285/1.738, allocations: 142 MB / 1.11 GB, free: 278.4 MB / 0.7794 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Topology.Tests.TestConnectors_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches