Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_OM_adaptions_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_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestConnectors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.008382/0.008382, allocations: 169.5 kB / 15.13 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.416/1.416, allocations: 205.4 MB / 221.3 MB, free: 13.81 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007894/0.0007892, allocations: 86.36 kB / 269.6 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.6753/0.6753, allocations: 90.59 MB / 408.5 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003196/0.0003196, allocations: 8 kB / 485.2 MB, free: 2.059 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3175/0.3178, allocations: 66.28 MB / 0.5386 GB, free: 45.46 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestConnectors): time 0.2101/0.5279, allocations: 207.1 MB / 0.7409 GB, free: 12.35 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.3051/0.8331, allocations: 28.58 MB / 0.7688 GB, free: 6.184 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002489/0.8356, allocations: 50.66 kB / 0.7688 GB, free: 6.184 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.003293/0.8389, allocations: 1.413 MB / 0.7702 GB, free: 6.137 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.006055/0.845, allocations: 2.513 MB / 0.7727 GB, free: 6.035 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.005637/0.8507, allocations: 1.803 MB / 0.7744 GB, free: 5.98 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.007036/0.8577, allocations: 4.765 MB / 0.7791 GB, free: 5.973 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001733/0.8595, allocations: 0.7321 MB / 0.7798 GB, free: 21.85 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005159/0.8646, allocations: 1.689 MB / 0.7814 GB, free: 21.84 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004401/0.8691, allocations: 2.062 MB / 0.7834 GB, free: 21.83 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0004272/0.8695, allocations: 103.7 kB / 0.7835 GB, free: 21.83 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008937/0.8785, allocations: 3.4 MB / 0.7869 GB, free: 21.75 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0006865/0.8792, allocations: 405.9 kB / 0.7872 GB, free: 21.75 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.001656/0.8808, allocations: 0.4943 MB / 0.7877 GB, free: 21.71 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.005768/0.8866, allocations: 3.139 MB / 0.7908 GB, free: 21.45 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.8866, allocations: 3 kB / 0.7908 GB, free: 21.45 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.884e-06/0.8867, allocations: 0 / 0.7908 GB, free: 21.45 MB / 0.573 GB Notification: Performance of Transformations before backend: time 8.559e-05/0.8868, allocations: 0 / 0.7908 GB, free: 21.45 MB / 0.573 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.006979/0.8937, allocations: 2.672 MB / 0.7934 GB, free: 20.13 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.8938, allocations: 13.28 kB / 0.7934 GB, free: 20.12 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007311/0.8945, allocations: 264.4 kB / 0.7937 GB, free: 20 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001899/0.8964, allocations: 1.073 MB / 0.7947 GB, free: 19.63 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001272/0.8966, allocations: 153.4 kB / 0.7949 GB, free: 19.62 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000328/0.8969, allocations: 214.2 kB / 0.7951 GB, free: 19.62 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003997/0.9009, allocations: 2.431 MB / 0.7974 GB, free: 19.45 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.474e-05/0.901, allocations: 3 kB / 0.7975 GB, free: 19.45 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001565/0.9011, allocations: 81.78 kB / 0.7975 GB, free: 19.45 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.171e-05/0.9012, allocations: 60.09 kB / 0.7976 GB, free: 19.45 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003233/0.9044, allocations: 2.272 MB / 0.7998 GB, free: 19.43 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01215/0.9166, allocations: 11.91 MB / 0.8114 GB, free: 12.47 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003068/0.9197, allocations: 2.304 MB / 0.8137 GB, free: 12.37 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001406/0.9211, allocations: 1.08 MB / 0.8147 GB, free: 12.34 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007316/0.9284, allocations: 6.431 MB / 0.821 GB, free: 8.078 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001882/0.9303, allocations: 1.233 MB / 0.8222 GB, free: 7.75 MB / 0.573 GB Notification: Performance of pre-optimization done (n=217): time 3.977e-06/0.9304, allocations: 1.938 kB / 0.8222 GB, free: 7.75 MB / 0.573 GB Notification: Performance of matching and sorting (n=218): time 0.01094/0.9413, allocations: 6.339 MB / 0.8284 GB, free: 5.332 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.428e-05/0.9414, allocations: 98.39 kB / 0.8285 GB, free: 5.238 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001026/0.9424, allocations: 0.9677 MB / 0.8295 GB, free: 4.945 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001273/0.9426, allocations: 61.23 kB / 0.8295 GB, free: 4.91 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004407/0.943, allocations: 0.7712 MB / 0.8303 GB, free: 4.52 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004101/0.9434, allocations: 0.7279 MB / 0.831 GB, free: 3.977 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.9436, allocations: 37.34 kB / 0.831 GB, free: 3.977 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.9437, allocations: 382 kB / 0.8314 GB, free: 3.645 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/0.945, allocations: 0.8061 MB / 0.8322 GB, free: 3.551 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001395/0.9464, allocations: 1.002 MB / 0.8331 GB, free: 3.316 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001485/0.9479, allocations: 0.9611 MB / 0.8341 GB, free: 3.219 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.9479, allocations: 0 / 0.8341 GB, free: 3.219 MB / 0.573 GB Notification: Performance of matching and sorting (n=240) (initialization): time 0.004943/0.9528, allocations: 2.794 MB / 0.8368 GB, free: 2.664 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 4.291e-05/0.9529, allocations: 31.89 kB / 0.8368 GB, free: 2.633 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.9529, allocations: 5.438 kB / 0.8368 GB, free: 2.633 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001978/0.9549, allocations: 0.6211 MB / 0.8374 GB, free: 2.43 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/0.9559, allocations: 300.6 kB / 0.8377 GB, free: 2.387 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01571/0.9717, allocations: 15.19 MB / 0.8526 GB, free: 6.062 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001973/0.9737, allocations: 179 kB / 0.8527 GB, free: 5.988 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004298/0.9741, allocations: 83.58 kB / 0.8528 GB, free: 5.977 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 16 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(3,77.8%) 18,(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001197/0.9753, allocations: 405.8 kB / 0.8532 GB, free: 5.844 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004967/0.9758, allocations: 171.4 kB / 0.8534 GB, free: 5.754 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006792/0.9826, allocations: 3.351 MB / 0.8566 GB, free: 3.879 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.783e-05/0.9827, allocations: 26.53 kB / 0.8567 GB, free: 3.855 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.781e-05/0.9827, allocations: 8 kB / 0.8567 GB, free: 3.848 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.727e-05/0.9828, allocations: 13.81 kB / 0.8567 GB, free: 3.836 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009777/0.9925, allocations: 5.738 MB / 0.8623 GB, free: 76 kB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.849e-06/0.9926, allocations: 0 / 0.8623 GB, free: 76 kB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00121/0.9938, allocations: 337.8 kB / 0.8626 GB, free: 15.78 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00169/0.9955, allocations: 0.5353 MB / 0.8631 GB, free: 15.31 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001894/0.9957, allocations: 83.2 kB / 0.8632 GB, free: 15.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01131/1.007, allocations: 14.05 MB / 0.8769 GB, free: 1.637 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/1.007, allocations: 3.938 kB / 0.8769 GB, free: 1.633 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008678/1.016, allocations: 4.344 MB / 0.8812 GB, free: 14.74 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007509/1.017, allocations: 263.9 kB / 0.8814 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005511/1.017, allocations: 52.06 kB / 0.8815 GB, free: 14.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00176/1.019, allocations: 160.5 kB / 0.8816 GB, free: 14.33 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005097/1.019, allocations: 207.5 kB / 0.8818 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002896/1.02, allocations: 89.33 kB / 0.8819 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0009653/1.021, allocations: 0.6481 MB / 0.8826 GB, free: 13.6 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.31e-07/1.021, allocations: 0 / 0.8826 GB, free: 13.6 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.00389/1.025, allocations: 0.9122 MB / 0.8834 GB, free: 12.82 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (198): * Single equations (assignments): 171 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 16 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 8,(3,77.8%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002054/1.027, allocations: 1.122 MB / 0.8845 GB, free: 11.87 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.006381/1.033, allocations: 3.842 MB / 0.8883 GB, free: 8.703 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/1.033, allocations: 4 kB / 0.8883 GB, free: 8.699 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.004453/1.038, allocations: 2.904 MB / 0.8911 GB, free: 6.18 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003961/1.042, allocations: 0.5504 MB / 0.8917 GB, free: 5.777 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008835/1.05, allocations: 5.349 MB / 0.8969 GB, free: 1 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001673/1.052, allocations: 1.53 MB / 0.8984 GB, free: 15.45 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.002139/1.054, allocations: 445.3 kB / 0.8988 GB, free: 15.06 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006596/1.055, allocations: 184.2 kB / 0.899 GB, free: 14.91 MB / 0.6355 GB Notification: Performance of SimCode: time 9.71e-07/1.055, allocations: 4 kB / 0.899 GB, free: 14.9 MB / 0.6355 GB Notification: Performance of Templates: time 0.07204/1.127, allocations: 46.64 MB / 0.9445 GB, free: 0.6758 MB / 0.6667 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestConnectors -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestConnectors_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Undirected.Topology.Tests.TestConnectors_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches