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.001575/0.001575, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001802/0.001802, allocations: 192.2 kB / 16.14 MB, free: 6.719 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.408/1.408, allocations: 222.9 MB / 239.8 MB, free: 4.492 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6844/0.6844, allocations: 91.2 MB / 381.2 MB, free: 9.586 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001708/0.001709, allocations: 73.89 kB / 459.6 MB, free: 23.34 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1313, allocations: 67.69 MB / 0.515 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.3963/0.5276, allocations: 147.7 MB / 0.6592 GB, free: 3.98 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.006118/0.5338, allocations: 4.726 MB / 0.6639 GB, free: 140 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008586/0.5347, allocations: 33.31 kB / 0.6639 GB, free: 124 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001/0.5357, allocations: 250.1 kB / 0.6641 GB, free: 15.92 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001821/0.5376, allocations: 0.6226 MB / 0.6647 GB, free: 15.41 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001257/0.5389, allocations: 451.4 kB / 0.6652 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001393/0.5403, allocations: 1.243 MB / 0.6664 GB, free: 14.38 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002996/0.5406, allocations: 163.8 kB / 0.6665 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00113/0.5417, allocations: 483.7 kB / 0.667 GB, free: 14.01 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006983/0.5425, allocations: 457.6 kB / 0.6674 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001147/0.5426, allocations: 33.69 kB / 0.6675 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001617/0.5442, allocations: 0.7456 MB / 0.6682 GB, free: 13.39 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001628/0.5444, allocations: 107.5 kB / 0.6683 GB, free: 13.31 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003656/0.5448, allocations: 306.5 kB / 0.6686 GB, free: 13.11 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001522/0.5463, allocations: 0.8965 MB / 0.6695 GB, free: 12.53 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.5463, allocations: 2.625 kB / 0.6695 GB, free: 12.53 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.41e-07/0.5463, allocations: 0 / 0.6695 GB, free: 12.53 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.05e-05/0.5464, allocations: 0 / 0.6695 GB, free: 12.53 MB / 494.1 MB 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.001791/0.5482, allocations: 0.957 MB / 0.6704 GB, free: 11.74 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.5482, allocations: 14.8 kB / 0.6704 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001472/0.5484, allocations: 75.25 kB / 0.6705 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006977/0.5491, allocations: 0.4979 MB / 0.671 GB, free: 11.25 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.352e-05/0.5491, allocations: 34.72 kB / 0.671 GB, free: 11.24 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.79e-05/0.5492, allocations: 40.38 kB / 0.671 GB, free: 11.23 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008245/0.55, allocations: 0.5184 MB / 0.6716 GB, free: 10.89 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.5501, allocations: 0 / 0.6716 GB, free: 10.89 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.562e-05/0.5501, allocations: 18.81 kB / 0.6716 GB, free: 10.88 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.5501, allocations: 16.56 kB / 0.6716 GB, free: 10.87 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007623/0.5509, allocations: 486.2 kB / 0.6721 GB, free: 10.64 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002799/0.5537, allocations: 2.177 MB / 0.6742 GB, free: 8.637 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007951/0.5545, allocations: 365.9 kB / 0.6745 GB, free: 8.453 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000324/0.5549, allocations: 205.7 kB / 0.6747 GB, free: 8.348 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002489/0.5574, allocations: 1.997 MB / 0.6767 GB, free: 6.297 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.14e-05/0.5574, allocations: 38.62 kB / 0.6767 GB, free: 6.254 MB / 494.1 MB Notification: Performance of pre-optimization done (n=47): time 2.415e-06/0.5574, allocations: 0 / 0.6767 GB, free: 6.254 MB / 494.1 MB Notification: Performance of matching and sorting (n=47): time 0.001656/0.5591, allocations: 0.7899 MB / 0.6775 GB, free: 5.73 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.015e-05/0.5592, allocations: 60.7 kB / 0.6775 GB, free: 5.664 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005318/0.5597, allocations: 484.6 kB / 0.678 GB, free: 5.375 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.893e-05/0.5597, allocations: 36.7 kB / 0.678 GB, free: 5.336 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001815/0.5599, allocations: 268.3 kB / 0.6783 GB, free: 5.098 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000116/0.5601, allocations: 165.8 kB / 0.6784 GB, free: 4.953 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001279/0.5602, allocations: 82.61 kB / 0.6785 GB, free: 4.898 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.5603, allocations: 371.7 kB / 0.6789 GB, free: 4.539 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002515/0.5606, allocations: 124.2 kB / 0.679 GB, free: 4.484 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002917/0.5609, allocations: 185.2 kB / 0.6792 GB, free: 4.367 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005719/0.5615, allocations: 343.8 kB / 0.6795 GB, free: 4.172 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.5615, allocations: 0 / 0.6795 GB, free: 4.172 MB / 494.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009898/0.5625, allocations: 0.4975 MB / 0.68 GB, free: 3.898 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.5625, allocations: 7.406 kB / 0.68 GB, free: 3.898 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/0.5625, allocations: 4 kB / 0.68 GB, free: 3.895 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002957/0.5628, allocations: 67.3 kB / 0.6801 GB, free: 3.852 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003129/0.5632, allocations: 93.77 kB / 0.6802 GB, free: 3.824 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002048/0.5652, allocations: 2.71 MB / 0.6828 GB, free: 1.039 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003636/0.5656, allocations: 44.33 kB / 0.6828 GB, free: 1.008 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.144e-05/0.5657, allocations: 18.69 kB / 0.6829 GB, free: 1.004 MB / 494.1 MB 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.0002525/0.5659, allocations: 179.9 kB / 0.683 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001348/0.5661, allocations: 62.92 kB / 0.6831 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001318/0.5674, allocations: 0.7051 MB / 0.6838 GB, free: 364 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.5674, allocations: 7.438 kB / 0.6838 GB, free: 364 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.5674, allocations: 3.984 kB / 0.6838 GB, free: 360 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.5674, allocations: 7.984 kB / 0.6838 GB, free: 352 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00194/0.5694, allocations: 1.193 MB / 0.685 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.5694, allocations: 0 / 0.685 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002793/0.5697, allocations: 77.7 kB / 0.685 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000233/0.5699, allocations: 64.31 kB / 0.6851 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.619e-05/0.57, allocations: 12.41 kB / 0.6851 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002003/0.572, allocations: 2.725 MB / 0.6878 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.572, allocations: 7 kB / 0.6878 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001281/0.5733, allocations: 0.7672 MB / 0.6885 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001884/0.5735, allocations: 137.9 kB / 0.6887 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.837e-05/0.5737, allocations: 12.97 kB / 0.6887 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002772/0.5739, allocations: 22.66 kB / 0.6887 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.413e-05/0.574, allocations: 41.48 kB / 0.6887 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.393e-05/0.5741, allocations: 20.73 kB / 0.6888 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004202/0.5745, allocations: 362.3 kB / 0.6891 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5745, allocations: 0 / 0.6891 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006777/0.5752, allocations: 195.7 kB / 0.6893 GB, free: 11.64 MB / 0.4981 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.0004373/0.5756, allocations: 277.6 kB / 0.6896 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001048/0.5767, allocations: 0.5841 MB / 0.6901 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.5767, allocations: 0 / 0.6901 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006137/0.5773, allocations: 444.6 kB / 0.6905 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001234/0.5786, allocations: 168.1 kB / 0.6907 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002554/0.5812, allocations: 1.326 MB / 0.692 GB, free: 9.414 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005393/0.5817, allocations: 0.8749 MB / 0.6929 GB, free: 8.512 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004546/0.5822, allocations: 132.7 kB / 0.693 GB, free: 8.402 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001613/0.5824, allocations: 63.42 kB / 0.693 GB, free: 8.34 MB / 0.4981 GB Notification: Performance of SimCode: time 2.615e-06/0.5824, allocations: 0 / 0.693 GB, free: 8.34 MB / 0.4981 GB Notification: Performance of Templates: time 0.01859/0.601, allocations: 10.07 MB / 0.7029 GB, free: 14.37 MB / 0.5137 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