Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.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.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/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.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00112/0.00112, allocations: 183.5 kB / 15.98 MB, free: 5.77 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.239/1.239, allocations: 205.1 MB / 221.8 MB, free: 8.48 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.001036/0.001036, allocations: 96.19 kB / 269.2 MB, free: 8.453 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo): time 0.6303/0.6303, allocations: 91.22 MB / 407.8 MB, free: 2.543 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009796/0.0009797, allocations: 51.92 kB / 483.5 MB, free: 6.602 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2331/0.2341, allocations: 64.97 MB / 0.5357 GB, free: 33.67 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.1301/0.3643, allocations: 147.6 MB / 0.6798 GB, free: 1.539 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.2286/0.593, allocations: 4.65 MB / 0.6844 GB, free: 1.465 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003577/0.5934, allocations: 7.938 kB / 0.6844 GB, free: 1.465 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0006722/0.5941, allocations: 240.6 kB / 0.6846 GB, free: 1.461 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.001179/0.5953, allocations: 0.6206 MB / 0.6852 GB, free: 1.43 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008571/0.5962, allocations: 442.9 kB / 0.6856 GB, free: 1.414 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.001172/0.5973, allocations: 1.26 MB / 0.6869 GB, free: 1.41 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000203/0.5976, allocations: 132.7 kB / 0.687 GB, free: 1.387 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008226/0.5984, allocations: 457.9 kB / 0.6874 GB, free: 1.379 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005608/0.599, allocations: 478.5 kB / 0.6879 GB, free: 1.379 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 6.666e-05/0.599, allocations: 35.09 kB / 0.6879 GB, free: 1.375 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001663/0.6007, allocations: 0.9014 MB / 0.6888 GB, free: 1.359 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 9.81e-05/0.6008, allocations: 104.8 kB / 0.6889 GB, free: 1.359 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0003061/0.6011, allocations: 278.1 kB / 0.6892 GB, free: 1.355 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.001298/0.6024, allocations: 0.9437 MB / 0.6901 GB, free: 1.293 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.6025, allocations: 0.5625 kB / 0.6901 GB, free: 1.293 MB / 0.4948 GB Notification: Performance of FrontEnd: time 7.62e-07/0.6025, allocations: 0 / 0.6901 GB, free: 1.293 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.143e-05/0.6025, allocations: 0.6562 kB / 0.6901 GB, free: 1.293 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.001482/0.604, allocations: 0.8758 MB / 0.6909 GB, free: 16.73 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.436e-05/0.604, allocations: 9.812 kB / 0.691 GB, free: 16.73 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.6041, allocations: 60.66 kB / 0.691 GB, free: 16.7 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004078/0.6045, allocations: 384.8 kB / 0.6914 GB, free: 16.45 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.124e-05/0.6046, allocations: 29.38 kB / 0.6914 GB, free: 16.45 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.538e-05/0.6046, allocations: 42.5 kB / 0.6915 GB, free: 16.45 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006276/0.6053, allocations: 461.7 kB / 0.6919 GB, free: 16.4 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.6053, allocations: 1.094 kB / 0.6919 GB, free: 16.4 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.371e-05/0.6053, allocations: 18.09 kB / 0.6919 GB, free: 16.4 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.6054, allocations: 9.406 kB / 0.6919 GB, free: 16.4 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000641/0.606, allocations: 493.1 kB / 0.6924 GB, free: 16.4 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002304/0.6083, allocations: 2.169 MB / 0.6945 GB, free: 15.04 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009583/0.6093, allocations: 0.5509 MB / 0.695 GB, free: 15 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000423/0.6097, allocations: 270.7 kB / 0.6953 GB, free: 14.99 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000834/0.6106, allocations: 0.5694 MB / 0.6959 GB, free: 14.43 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.6106, allocations: 37.5 kB / 0.6959 GB, free: 14.39 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=59): time 2.214e-06/0.6106, allocations: 4 kB / 0.6959 GB, free: 14.39 MB / 0.5105 GB Notification: Performance of matching and sorting (n=59): time 0.001848/0.6125, allocations: 0.992 MB / 0.6969 GB, free: 14.1 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/0.6125, allocations: 57.19 kB / 0.6969 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003294/0.6129, allocations: 324.2 kB / 0.6972 GB, free: 13.93 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.709e-05/0.6129, allocations: 35.39 kB / 0.6973 GB, free: 13.89 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.613, allocations: 205.8 kB / 0.6975 GB, free: 13.79 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/0.6131, allocations: 207.9 kB / 0.6977 GB, free: 13.65 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001427/0.6133, allocations: 87.34 kB / 0.6977 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001232/0.6134, allocations: 357.6 kB / 0.6981 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003185/0.6137, allocations: 191.2 kB / 0.6983 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003401/0.6141, allocations: 197.8 kB / 0.6985 GB, free: 13.31 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006862/0.6148, allocations: 447.5 kB / 0.6989 GB, free: 13.3 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.6148, allocations: 0 / 0.6989 GB, free: 13.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009303/0.6157, allocations: 0.599 MB / 0.6995 GB, free: 13.21 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.6158, allocations: 8.812 kB / 0.6995 GB, free: 13.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.6158, allocations: 2.859 kB / 0.6995 GB, free: 13.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002602/0.616, allocations: 64.53 kB / 0.6995 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002893/0.6163, allocations: 95.27 kB / 0.6996 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001957/0.6183, allocations: 2.712 MB / 0.7023 GB, free: 10.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003279/0.6186, allocations: 43.19 kB / 0.7023 GB, free: 10.64 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.462e-05/0.6187, allocations: 19.27 kB / 0.7023 GB, free: 10.64 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (53): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001983/0.6189, allocations: 169.7 kB / 0.7025 GB, free: 10.52 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.322e-05/0.619, allocations: 45.25 kB / 0.7025 GB, free: 10.49 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001365/0.6204, allocations: 0.7771 MB / 0.7033 GB, free: 10.39 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.285e-06/0.6204, allocations: 5.5 kB / 0.7033 GB, free: 10.39 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.6204, allocations: 2.844 kB / 0.7033 GB, free: 10.39 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.417e-06/0.6204, allocations: 7.344 kB / 0.7033 GB, free: 10.39 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002013/0.6224, allocations: 1.45 MB / 0.7047 GB, free: 10.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.6225, allocations: 4.562 kB / 0.7047 GB, free: 10.02 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003212/0.6228, allocations: 92.11 kB / 0.7048 GB, free: 10.02 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002182/0.623, allocations: 75.77 kB / 0.7049 GB, free: 9.996 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.127e-05/0.6231, allocations: 16.16 kB / 0.7049 GB, free: 9.996 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001869/0.6249, allocations: 2.731 MB / 0.7076 GB, free: 7.469 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.625, allocations: 0 / 0.7076 GB, free: 7.469 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02254/0.6475, allocations: 9.792 MB / 0.7171 GB, free: 3.574 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.6476, allocations: 127.1 kB / 0.7173 GB, free: 3.449 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.049e-05/0.6477, allocations: 12.72 kB / 0.7173 GB, free: 3.449 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002499/0.648, allocations: 27.03 kB / 0.7173 GB, free: 3.441 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.6481, allocations: 44.47 kB / 0.7173 GB, free: 3.441 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.392e-05/0.6481, allocations: 23.28 kB / 0.7174 GB, free: 3.441 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0002037/0.6484, allocations: 238.2 kB / 0.7176 GB, free: 3.352 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6484, allocations: 0 / 0.7176 GB, free: 3.352 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0009516/0.6493, allocations: 314 kB / 0.7179 GB, free: 3.324 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (flowResistance.rear.m_flow,flowResistance1.rear.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 (59): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004141/0.6497, allocations: 290 kB / 0.7182 GB, free: 3.188 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001188/0.6509, allocations: 0.8159 MB / 0.719 GB, free: 2.887 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.651, allocations: 0 / 0.719 GB, free: 2.887 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0007054/0.6517, allocations: 0.6104 MB / 0.7196 GB, free: 2.59 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009014/0.6526, allocations: 154 kB / 0.7197 GB, free: 2.578 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00219/0.6548, allocations: 1.868 MB / 0.7215 GB, free: 1.488 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003566/0.6552, allocations: 0.8633 MB / 0.7224 GB, free: 0.7812 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0004629/0.6556, allocations: 128.2 kB / 0.7225 GB, free: 0.7422 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002197/0.6559, allocations: 62.98 kB / 0.7226 GB, free: 0.7344 MB / 0.5105 GB Notification: Performance of SimCode: time 5.51e-07/0.6559, allocations: 0 / 0.7226 GB, free: 0.7344 MB / 0.5105 GB Notification: Performance of Templates: time 0.02014/0.676, allocations: 14.55 MB / 0.7368 GB, free: 12.68 MB / 0.5261 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","../files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches