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.007619/0.007619, allocations: 103.5 kB / 15.74 MB, free: 6.039 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.0017/0.0017, allocations: 198.1 kB / 16.68 MB, free: 5.953 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.383/1.383, allocations: 222.9 MB / 240.4 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7156/0.7156, allocations: 91.19 MB / 381.7 MB, free: 7.516 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001595/0.001595, allocations: 79.88 kB / 0.5168 GB, free: 4.121 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3096/0.3113, allocations: 67.69 MB / 0.5829 GB, free: 13.81 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.154/0.4653, allocations: 149.5 MB / 0.729 GB, free: 8.035 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.005798/0.4711, allocations: 4.643 MB / 0.7335 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007387/0.4719, allocations: 27.81 kB / 0.7335 GB, free: 3.352 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0009468/0.4729, allocations: 290.1 kB / 0.7338 GB, free: 3.066 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001926/0.4749, allocations: 0.6758 MB / 0.7344 GB, free: 2.387 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001273/0.4762, allocations: 0.4943 MB / 0.7349 GB, free: 1.891 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001295/0.4775, allocations: 0.9878 MB / 0.7359 GB, free: 0.8984 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003282/0.4778, allocations: 166.1 kB / 0.7361 GB, free: 0.7266 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001135/0.479, allocations: 0.529 MB / 0.7366 GB, free: 200 kB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.3235/0.8025, allocations: 452.5 kB / 0.737 GB, free: 3.082 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002075/0.8027, allocations: 44.09 kB / 0.737 GB, free: 3.082 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001777/0.8045, allocations: 0.7627 MB / 0.7378 GB, free: 3.082 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001371/0.8046, allocations: 119.7 kB / 0.7379 GB, free: 3.082 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003627/0.805, allocations: 315.2 kB / 0.7382 GB, free: 3.082 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001385/0.8064, allocations: 0.9646 MB / 0.7391 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.8064, allocations: 3.875 kB / 0.7392 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.863e-06/0.8064, allocations: 1.266 kB / 0.7392 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.667e-05/0.8065, allocations: 0.7812 kB / 0.7392 GB, free: 3.039 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.001494/0.808, allocations: 0.964 MB / 0.7401 GB, free: 18.43 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.808, allocations: 8.906 kB / 0.7401 GB, free: 18.43 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000109/0.8081, allocations: 76.56 kB / 0.7402 GB, free: 18.4 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007929/0.8089, allocations: 0.5456 MB / 0.7407 GB, free: 18.13 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.166e-05/0.8089, allocations: 29.66 kB / 0.7407 GB, free: 18.13 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.972e-05/0.809, allocations: 44.31 kB / 0.7408 GB, free: 18.13 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000786/0.8098, allocations: 0.5077 MB / 0.7413 GB, free: 18.05 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.8098, allocations: 1.656 kB / 0.7413 GB, free: 18.05 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.652e-05/0.8099, allocations: 16.41 kB / 0.7413 GB, free: 18.05 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.8099, allocations: 11.86 kB / 0.7413 GB, free: 18.05 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007721/0.8107, allocations: 482.8 kB / 0.7418 GB, free: 18.04 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002557/0.8132, allocations: 2.17 MB / 0.7439 GB, free: 16.74 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008711/0.8141, allocations: 367.1 kB / 0.7442 GB, free: 16.72 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004032/0.8145, allocations: 207.4 kB / 0.7444 GB, free: 16.71 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002422/0.817, allocations: 1.999 MB / 0.7464 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.485e-05/0.817, allocations: 40.09 kB / 0.7464 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 1.743e-06/0.817, allocations: 0 / 0.7464 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.001457/0.8185, allocations: 0.7907 MB / 0.7472 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.866e-05/0.8185, allocations: 58.31 kB / 0.7472 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005299/0.8191, allocations: 495.2 kB / 0.7477 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/0.8191, allocations: 32.2 kB / 0.7478 GB, free: 14.56 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002005/0.8193, allocations: 267.3 kB / 0.748 GB, free: 14.45 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.8195, allocations: 162.9 kB / 0.7482 GB, free: 14.34 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000147/0.8196, allocations: 84.02 kB / 0.7482 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001652/0.8198, allocations: 368.6 kB / 0.7486 GB, free: 14.01 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002958/0.8201, allocations: 133.3 kB / 0.7487 GB, free: 14.01 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002565/0.8204, allocations: 183.7 kB / 0.7489 GB, free: 13.97 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004981/0.8209, allocations: 342.8 kB / 0.7492 GB, free: 13.92 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.8209, allocations: 0 / 0.7492 GB, free: 13.92 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008816/0.8218, allocations: 0.5027 MB / 0.7497 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.8218, allocations: 6.938 kB / 0.7497 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.8218, allocations: 0.875 kB / 0.7497 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003052/0.8221, allocations: 65.72 kB / 0.7498 GB, free: 13.81 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003402/0.8225, allocations: 93.06 kB / 0.7499 GB, free: 13.81 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002074/0.8245, allocations: 2.921 MB / 0.7527 GB, free: 11.12 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002692/0.8248, allocations: 44.81 kB / 0.7528 GB, free: 11.09 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.122e-05/0.8249, allocations: 17.41 kB / 0.7528 GB, free: 11.09 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.0002292/0.8251, allocations: 174.5 kB / 0.753 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/0.8252, allocations: 59.75 kB / 0.753 GB, free: 10.95 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0013/0.8265, allocations: 0.7075 MB / 0.7537 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.8266, allocations: 7.719 kB / 0.7537 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.8266, allocations: 0 / 0.7537 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.8266, allocations: 2.953 kB / 0.7537 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001732/0.8283, allocations: 1.186 MB / 0.7549 GB, free: 10.42 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.8283, allocations: 3.875 kB / 0.7549 GB, free: 10.42 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000232/0.8286, allocations: 73.94 kB / 0.7549 GB, free: 10.42 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001947/0.8288, allocations: 73.12 kB / 0.755 GB, free: 10.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.209e-05/0.8288, allocations: 19.66 kB / 0.755 GB, free: 10.39 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001831/0.8307, allocations: 2.924 MB / 0.7579 GB, free: 7.699 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.8307, allocations: 0.875 kB / 0.7579 GB, free: 7.699 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.8317, allocations: 0.7672 MB / 0.7586 GB, free: 7.473 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.8319, allocations: 138.6 kB / 0.7588 GB, free: 7.34 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.161e-05/0.8319, allocations: 14.84 kB / 0.7588 GB, free: 7.34 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002129/0.8321, allocations: 15.58 kB / 0.7588 GB, free: 7.34 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.738e-05/0.8322, allocations: 38.58 kB / 0.7588 GB, free: 7.336 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.815e-05/0.8323, allocations: 17 kB / 0.7589 GB, free: 7.336 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003631/0.8326, allocations: 368.3 kB / 0.7592 GB, free: 7.254 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8.82e-07/0.8326, allocations: 2.406 kB / 0.7592 GB, free: 7.254 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006204/0.8333, allocations: 191.8 kB / 0.7594 GB, free: 7.234 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.0003715/0.8336, allocations: 276.9 kB / 0.7597 GB, free: 7.125 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000893/0.8345, allocations: 0.5897 MB / 0.7602 GB, free: 6.895 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.8346, allocations: 0 / 0.7602 GB, free: 6.895 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005295/0.8351, allocations: 431.2 kB / 0.7606 GB, free: 6.676 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008289/0.8359, allocations: 188.6 kB / 0.7608 GB, free: 6.652 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001823/0.8378, allocations: 1.134 MB / 0.7619 GB, free: 6.164 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004013/0.8382, allocations: 0.8714 MB / 0.7628 GB, free: 5.465 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003339/0.8385, allocations: 121.3 kB / 0.7629 GB, free: 5.441 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001246/0.8387, allocations: 60.33 kB / 0.7629 GB, free: 5.434 MB / 0.5919 GB Notification: Performance of SimCode: time 3.41e-07/0.8387, allocations: 0 / 0.7629 GB, free: 5.434 MB / 0.5919 GB Notification: Performance of Templates: time 0.01639/0.8551, allocations: 10.55 MB / 0.7733 GB, free: 4.562 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches