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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 110.1 kB / 16.41 MB, free: 6.477 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.001168/0.001168, allocations: 185.5 kB / 17.34 MB, free: 5.754 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.308/1.308, 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.6879/0.6879, allocations: 91.19 MB / 382.4 MB, free: 7.52 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001564/0.001564, allocations: 79.86 kB / 0.5175 GB, free: 4.133 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3112/0.3128, allocations: 67.69 MB / 0.5836 GB, free: 14 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.149/0.4619, allocations: 149.5 MB / 0.7296 GB, free: 8.051 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.005625/0.4676, allocations: 4.624 MB / 0.7341 GB, free: 3.414 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007315/0.4683, allocations: 27.81 kB / 0.7342 GB, free: 3.387 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001029/0.4694, allocations: 302 kB / 0.7345 GB, free: 3.09 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001812/0.4712, allocations: 0.6602 MB / 0.7351 GB, free: 2.426 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001287/0.4726, allocations: 498.2 kB / 0.7356 GB, free: 1.938 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001261/0.4738, allocations: 0.9917 MB / 0.7365 GB, free: 0.9414 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003241/0.4742, allocations: 162.2 kB / 0.7367 GB, free: 0.7734 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001113/0.4753, allocations: 0.5251 MB / 0.7372 GB, free: 252 kB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.3128/0.7881, allocations: 460.7 kB / 0.7377 GB, free: 3.117 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000179/0.7883, allocations: 43.22 kB / 0.7377 GB, free: 3.117 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001647/0.79, allocations: 0.7584 MB / 0.7384 GB, free: 3.117 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001222/0.7901, allocations: 120.5 kB / 0.7385 GB, free: 3.117 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003295/0.7905, allocations: 315.7 kB / 0.7388 GB, free: 3.117 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001203/0.7917, allocations: 0.9641 MB / 0.7398 GB, free: 3.074 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.7917, allocations: 0 / 0.7398 GB, free: 3.074 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.603e-06/0.7917, allocations: 1.094 kB / 0.7398 GB, free: 3.074 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.075e-06/0.7917, allocations: 0.9062 kB / 0.7398 GB, free: 3.074 MB / 0.5762 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.001439/0.7932, allocations: 0.9692 MB / 0.7407 GB, free: 18.47 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.7932, allocations: 10.56 kB / 0.7407 GB, free: 18.47 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.7933, allocations: 72.34 kB / 0.7408 GB, free: 18.43 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007539/0.7941, allocations: 0.5456 MB / 0.7414 GB, free: 18.16 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.7941, allocations: 27.62 kB / 0.7414 GB, free: 18.16 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.586e-05/0.7942, allocations: 43.91 kB / 0.7414 GB, free: 18.16 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000764/0.7949, allocations: 0.5129 MB / 0.7419 GB, free: 18.08 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.795, allocations: 3.047 kB / 0.7419 GB, free: 18.08 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.421e-05/0.795, allocations: 18.38 kB / 0.7419 GB, free: 18.08 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/0.795, allocations: 11.12 kB / 0.742 GB, free: 18.08 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007404/0.7958, allocations: 485.9 kB / 0.7424 GB, free: 18.08 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002421/0.7982, allocations: 2.173 MB / 0.7445 GB, free: 16.78 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007435/0.799, allocations: 364 kB / 0.7449 GB, free: 16.75 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003298/0.7993, allocations: 205.1 kB / 0.7451 GB, free: 16.75 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002407/0.8017, allocations: 1.994 MB / 0.747 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.747e-05/0.8018, allocations: 44.47 kB / 0.7471 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 1.834e-06/0.8018, allocations: 1.203 kB / 0.7471 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.001382/0.8032, allocations: 0.7875 MB / 0.7478 GB, free: 14.81 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.046e-05/0.8032, allocations: 57.59 kB / 0.7479 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004193/0.8036, allocations: 492.2 kB / 0.7484 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.739e-05/0.8037, allocations: 35.83 kB / 0.7484 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001627/0.8038, allocations: 263.9 kB / 0.7486 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 9.405e-05/0.8039, allocations: 164.1 kB / 0.7488 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001325/0.8041, allocations: 88.55 kB / 0.7489 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001478/0.8042, allocations: 368.8 kB / 0.7492 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002576/0.8045, allocations: 133.7 kB / 0.7494 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002729/0.8048, allocations: 181.9 kB / 0.7495 GB, free: 14 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004856/0.8053, allocations: 348.5 kB / 0.7499 GB, free: 13.96 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.8053, allocations: 0 / 0.7499 GB, free: 13.96 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007585/0.8061, allocations: 0.5006 MB / 0.7504 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.8061, allocations: 9.188 kB / 0.7504 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.8061, allocations: 0 / 0.7504 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002819/0.8064, allocations: 62.08 kB / 0.7504 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003247/0.8067, allocations: 96.67 kB / 0.7505 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002203/0.8089, allocations: 2.917 MB / 0.7534 GB, free: 11.15 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002745/0.8092, allocations: 41.56 kB / 0.7534 GB, free: 11.12 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.538e-05/0.8093, allocations: 20.08 kB / 0.7534 GB, free: 11.12 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0002351/0.8095, allocations: 171.8 kB / 0.7536 GB, free: 11.01 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.8096, allocations: 61.2 kB / 0.7537 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001247/0.8109, allocations: 0.7076 MB / 0.7543 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.8109, allocations: 7.031 kB / 0.7544 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.8109, allocations: 1.5 kB / 0.7544 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.8109, allocations: 4.812 kB / 0.7544 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001659/0.8126, allocations: 1.186 MB / 0.7555 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/0.8126, allocations: 7.188 kB / 0.7555 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002356/0.8128, allocations: 76.69 kB / 0.7556 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001848/0.813, allocations: 67.06 kB / 0.7557 GB, free: 10.43 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.861e-05/0.8131, allocations: 14.83 kB / 0.7557 GB, free: 10.43 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001881/0.815, allocations: 2.926 MB / 0.7585 GB, free: 7.734 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.815, allocations: 1.094 kB / 0.7585 GB, free: 7.734 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.816, allocations: 0.7683 MB / 0.7593 GB, free: 7.508 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.8161, allocations: 138.1 kB / 0.7594 GB, free: 7.375 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.824e-05/0.8162, allocations: 14.92 kB / 0.7594 GB, free: 7.375 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002108/0.8164, allocations: 8.547 kB / 0.7594 GB, free: 7.375 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.096e-05/0.8165, allocations: 43.7 kB / 0.7595 GB, free: 7.371 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.592e-05/0.8165, allocations: 20.98 kB / 0.7595 GB, free: 7.367 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003821/0.8169, allocations: 367.8 kB / 0.7598 GB, free: 7.285 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7.02e-07/0.8169, allocations: 2.047 kB / 0.7599 GB, free: 7.285 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.000635/0.8176, allocations: 196.2 kB / 0.76 GB, free: 7.266 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0003721/0.8179, allocations: 265.5 kB / 0.7603 GB, free: 7.16 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0008498/0.8188, allocations: 0.59 MB / 0.7609 GB, free: 6.93 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.8188, allocations: 0.75 kB / 0.7609 GB, free: 6.93 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004889/0.8193, allocations: 433.1 kB / 0.7613 GB, free: 6.711 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008856/0.8202, allocations: 194.3 kB / 0.7615 GB, free: 6.688 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00181/0.822, allocations: 1.161 MB / 0.7626 GB, free: 6.168 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003918/0.8224, allocations: 0.8739 MB / 0.7635 GB, free: 5.469 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/0.8226, allocations: 69.66 kB / 0.7635 GB, free: 5.461 MB / 0.5919 GB Notification: Performance of SimCode: time 2.51e-07/0.8226, allocations: 4.062 kB / 0.7635 GB, free: 5.461 MB / 0.5919 GB Notification: Performance of Templates: time 0.01481/0.8374, allocations: 14.54 MB / 0.7777 GB, free: 4.023 MB / 0.5919 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches