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: "" <> buildModelFMU(ThermofluidStream.Undirected.Topology.Tests.TestConnectors,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Topology_Tests_TestConnectors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Topology.Tests.TestConnectors,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Topology_Tests_TestConnectors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00113/0.00113, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.163/1.163, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.5584/0.5584, allocations: 91.21 MB / 381.3 MB, free: 9.539 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 84.98 kB / 459.9 MB, free: 23.24 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09583/0.09719, allocations: 67.7 MB / 0.5153 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestConnectors): time 0.3879/0.4852, allocations: 225.1 MB / 0.7351 GB, free: 14.84 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0298/0.515, allocations: 31.1 MB / 0.7655 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00304/0.5181, allocations: 162.9 kB / 0.7656 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.003431/0.5215, allocations: 1.551 MB / 0.7671 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00527/0.5268, allocations: 2.417 MB / 0.7695 GB, free: 11.49 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.005048/0.5319, allocations: 2.403 MB / 0.7718 GB, free: 9.082 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004144/0.536, allocations: 4.713 MB / 0.7764 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001133/0.5372, allocations: 1.048 MB / 0.7775 GB, free: 3.258 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00326/0.5405, allocations: 2.349 MB / 0.7798 GB, free: 0.8984 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00247/0.5429, allocations: 2.327 MB / 0.782 GB, free: 14.56 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0003013/0.5432, allocations: 268 kB / 0.7823 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005962/0.5492, allocations: 3.758 MB / 0.7859 GB, free: 10.54 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004152/0.5496, allocations: 0.6343 MB / 0.7866 GB, free: 9.898 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001136/0.5508, allocations: 1.559 MB / 0.7881 GB, free: 8.332 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.005223/0.556, allocations: 4.818 MB / 0.7928 GB, free: 3.5 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.556, allocations: 0 / 0.7928 GB, free: 3.5 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.183e-06/0.556, allocations: 0 / 0.7928 GB, free: 3.5 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.586e-05/0.5561, allocations: 0 / 0.7928 GB, free: 3.5 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: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.005427/0.5615, allocations: 3.536 MB / 0.7962 GB, free: 15.88 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.5616, allocations: 12.03 kB / 0.7963 GB, free: 15.87 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002889/0.5618, allocations: 291.7 kB / 0.7965 GB, free: 15.57 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004326/0.5623, allocations: 329 kB / 0.7969 GB, free: 15.25 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002389/0.5647, allocations: 1.796 MB / 0.7986 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.5648, allocations: 160.2 kB / 0.7988 GB, free: 13.22 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002592/0.5651, allocations: 219.9 kB / 0.799 GB, free: 13 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003524/0.5686, allocations: 2.472 MB / 0.8014 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.713e-05/0.5686, allocations: 0 / 0.8014 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001529/0.5688, allocations: 88 kB / 0.8015 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.506e-05/0.5688, allocations: 52 kB / 0.8015 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003218/0.5721, allocations: 2.222 MB / 0.8037 GB, free: 8.051 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0108/0.5829, allocations: 11.24 MB / 0.8147 GB, free: 11.94 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00287/0.5858, allocations: 1.77 MB / 0.8164 GB, free: 10.16 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001245/0.587, allocations: 0.9022 MB / 0.8173 GB, free: 9.254 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006428/0.5935, allocations: 6.522 MB / 0.8236 GB, free: 1.922 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001579/0.5951, allocations: 1.039 MB / 0.8247 GB, free: 0.8672 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=183): time 2.965e-06/0.5951, allocations: 0 / 0.8247 GB, free: 0.8672 MB / 0.6231 GB Notification: Performance of matching and sorting (n=184): time 0.2315/0.8266, allocations: 6.088 MB / 0.8306 GB, free: 159.1 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.472e-05/0.8267, allocations: 101.8 kB / 0.8307 GB, free: 159 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001815/0.8285, allocations: 1.839 MB / 0.8325 GB, free: 158.8 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 9.982e-05/0.8286, allocations: 57.05 kB / 0.8326 GB, free: 158.7 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005675/0.8292, allocations: 1.069 MB / 0.8336 GB, free: 158.4 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003286/0.8295, allocations: 0.6221 MB / 0.8342 GB, free: 158 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004152/0.8299, allocations: 291.1 kB / 0.8345 GB, free: 158 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 3.091e-05/0.83, allocations: 303.6 kB / 0.8348 GB, free: 157.7 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001092/0.8311, allocations: 0.6713 MB / 0.8354 GB, free: 157.7 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001268/0.8323, allocations: 0.8532 MB / 0.8363 GB, free: 157.6 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002692/0.8351, allocations: 1.663 MB / 0.8379 GB, free: 157.4 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.8351, allocations: 1.312 kB / 0.8379 GB, free: 157.4 MB / 0.6231 GB Notification: Performance of matching and sorting (n=208) (initialization): time 0.004826/0.8399, allocations: 2.557 MB / 0.8404 GB, free: 157.1 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.86e-05/0.84, allocations: 38.11 kB / 0.8404 GB, free: 157 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.84, allocations: 6.625 kB / 0.8404 GB, free: 157 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00184/0.8418, allocations: 0.6194 MB / 0.841 GB, free: 157 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009972/0.8428, allocations: 296.1 kB / 0.8413 GB, free: 157 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01233/0.8552, allocations: 16.23 MB / 0.8572 GB, free: 143 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001553/0.8568, allocations: 154.5 kB / 0.8573 GB, free: 142.9 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000145/0.8569, allocations: 77.02 kB / 0.8574 GB, free: 142.9 MB / 0.6231 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.0007423/0.8577, allocations: 423.2 kB / 0.8578 GB, free: 142.6 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000318/0.858, allocations: 262 kB / 0.858 GB, free: 142.5 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005153/0.8631, allocations: 3.464 MB / 0.8614 GB, free: 141 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.24e-05/0.8632, allocations: 18.62 kB / 0.8614 GB, free: 141 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.8632, allocations: 9.188 kB / 0.8614 GB, free: 141 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.476e-05/0.8632, allocations: 9.938 kB / 0.8614 GB, free: 141 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006797/0.87, allocations: 5.165 MB / 0.8665 GB, free: 138.6 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.87, allocations: 4.5 kB / 0.8665 GB, free: 138.6 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008989/0.8709, allocations: 280.4 kB / 0.8668 GB, free: 138.6 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001476/0.8724, allocations: 0.5535 MB / 0.8673 GB, free: 138.4 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001176/0.8726, allocations: 71.8 kB / 0.8674 GB, free: 138.4 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008027/0.8806, allocations: 15.25 MB / 0.8823 GB, free: 124.2 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.8806, allocations: 2.531 kB / 0.8823 GB, free: 124.2 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005434/0.8861, allocations: 3.7 MB / 0.8859 GB, free: 122.5 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003985/0.8865, allocations: 323.4 kB / 0.8862 GB, free: 122.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002763/0.8867, allocations: 60.27 kB / 0.8862 GB, free: 122.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001032/0.8878, allocations: 110.9 kB / 0.8864 GB, free: 122.2 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002856/0.8881, allocations: 175.2 kB / 0.8865 GB, free: 122.1 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001222/0.8882, allocations: 72.16 kB / 0.8866 GB, free: 122.1 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001264/0.8895, allocations: 1.305 MB / 0.8879 GB, free: 121.6 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8895, allocations: 0.9062 kB / 0.8879 GB, free: 121.6 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.002042/0.8915, allocations: 0.8939 MB / 0.8887 GB, free: 121.5 MB / 0.6231 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.006021/0.8976, allocations: 5.167 MB / 0.8938 GB, free: 118.9 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.004805/0.9024, allocations: 3.243 MB / 0.8969 GB, free: 116.8 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.9024, allocations: 0.5625 kB / 0.8969 GB, free: 116.8 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.002368/0.9048, allocations: 2.249 MB / 0.8991 GB, free: 115.2 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002852/0.9076, allocations: 0.8195 MB / 0.8999 GB, free: 114.8 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02442/0.9321, allocations: 23.22 MB / 0.9226 GB, free: 90.32 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007651/0.9329, allocations: 1.671 MB / 0.9243 GB, free: 88.61 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001384/0.9343, allocations: 0.5186 MB / 0.9248 GB, free: 88.16 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009709/0.9352, allocations: 1.144 MB / 0.9259 GB, free: 87.01 MB / 0.6231 GB Notification: Performance of SimCode: time 4.81e-07/0.9352, allocations: 0 / 0.9259 GB, free: 87.01 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0903/1.026, allocations: 75.72 MB / 0.9998 GB, free: 11.93 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001165/1.026, allocations: 236.2 kB / 1 GB, free: 11.68 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.53/4.555, allocations: 7.094 kB / 1 GB, free: 11.67 MB / 0.6231 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_Topology_Tests_TestConnectors_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_Topology_Tests_TestConnectors.fmu > 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