Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.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.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007481/0.007481, allocations: 96.42 kB / 15.73 MB, free: 5.988 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.001513/0.001513, allocations: 187.9 kB / 16.67 MB, free: 5.918 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.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7274/0.7274, allocations: 91.19 MB / 381.7 MB, free: 9.348 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 79.86 kB / 0.5168 GB, free: 9.02 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1881/0.1896, allocations: 67.7 MB / 0.583 GB, free: 5.246 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.6062/0.7958, allocations: 164.4 MB / 0.7435 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01636/0.8122, allocations: 12.91 MB / 0.7561 GB, free: 6.758 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001959/0.8142, allocations: 35.75 kB / 0.7561 GB, free: 6.723 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002445/0.8167, allocations: 0.5785 MB / 0.7567 GB, free: 6.141 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.003697/0.8205, allocations: 0.8813 MB / 0.7575 GB, free: 5.254 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002831/0.8233, allocations: 0.8135 MB / 0.7583 GB, free: 4.438 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002214/0.8256, allocations: 1.337 MB / 0.7596 GB, free: 3.094 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005767/0.8261, allocations: 319.7 kB / 0.7599 GB, free: 2.773 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001037/0.8272, allocations: 0.5406 MB / 0.7605 GB, free: 2.23 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008397/0.828, allocations: 0.6691 MB / 0.7611 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001143/0.8282, allocations: 76 kB / 0.7612 GB, free: 1.484 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003353/0.8315, allocations: 1.388 MB / 0.7625 GB, free: 96 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002079/0.8318, allocations: 191.1 kB / 0.7627 GB, free: 15.91 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0005295/0.8323, allocations: 0.5128 MB / 0.7632 GB, free: 15.39 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.003072/0.8354, allocations: 1.569 MB / 0.7648 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.8354, allocations: 4 kB / 0.7648 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.194e-06/0.8354, allocations: 0 / 0.7648 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.302e-05/0.8354, allocations: 0 / 0.7648 GB, free: 13.82 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.002552/0.838, allocations: 1.474 MB / 0.7662 GB, free: 12.29 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.838, allocations: 8.031 kB / 0.7662 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002075/0.8382, allocations: 124.1 kB / 0.7663 GB, free: 12.16 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001192/0.8394, allocations: 0.7768 MB / 0.7671 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.158e-05/0.8395, allocations: 54 kB / 0.7671 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/0.8396, allocations: 75.94 kB / 0.7672 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001242/0.8409, allocations: 0.7275 MB / 0.7679 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.898e-05/0.8409, allocations: 0 / 0.7679 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.298e-05/0.841, allocations: 28 kB / 0.768 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.148e-05/0.841, allocations: 23.81 kB / 0.768 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001096/0.8421, allocations: 0.6325 MB / 0.7686 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003687/0.8458, allocations: 3.117 MB / 0.7716 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/0.847, allocations: 0.5752 MB / 0.7722 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004182/0.8474, allocations: 259.1 kB / 0.7724 GB, free: 5.523 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002545/0.85, allocations: 2.588 MB / 0.775 GB, free: 2.52 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.891e-05/0.85, allocations: 39.06 kB / 0.775 GB, free: 2.473 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=55): time 2.345e-06/0.85, allocations: 0 / 0.775 GB, free: 2.473 MB / 0.6075 GB Notification: Performance of matching and sorting (n=56): time 0.003629/0.8537, allocations: 1.787 MB / 0.7768 GB, free: 0.5938 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.276e-05/0.8538, allocations: 55.97 kB / 0.7768 GB, free: 0.5273 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009177/0.8547, allocations: 0.6927 MB / 0.7775 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.478e-05/0.8547, allocations: 33.7 kB / 0.7775 GB, free: 15.79 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003481/0.8551, allocations: 436.8 kB / 0.7779 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001502/0.8552, allocations: 218.2 kB / 0.7781 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001327/0.8554, allocations: 86.25 kB / 0.7782 GB, free: 15.05 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001279/0.8555, allocations: 326 kB / 0.7785 GB, free: 14.73 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003227/0.8558, allocations: 169 kB / 0.7787 GB, free: 14.56 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003597/0.8562, allocations: 223.2 kB / 0.7789 GB, free: 14.32 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007355/0.857, allocations: 431.8 kB / 0.7793 GB, free: 13.89 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.857, allocations: 4 kB / 0.7793 GB, free: 13.88 MB / 0.6231 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.00125/0.8582, allocations: 0.6512 MB / 0.78 GB, free: 13.22 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.668e-05/0.8583, allocations: 12.16 kB / 0.78 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.8583, allocations: 0 / 0.78 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004928/0.8588, allocations: 104.8 kB / 0.7801 GB, free: 13.1 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003883/0.8592, allocations: 103.9 kB / 0.7802 GB, free: 13 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00244/0.8616, allocations: 2.045 MB / 0.7822 GB, free: 10.82 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003622/0.862, allocations: 20.02 kB / 0.7822 GB, free: 10.8 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-05/0.8621, allocations: 20 kB / 0.7822 GB, free: 10.78 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003422/0.8624, allocations: 217.6 kB / 0.7824 GB, free: 10.55 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.8626, allocations: 91.38 kB / 0.7825 GB, free: 10.46 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001594/0.8642, allocations: 0.8728 MB / 0.7834 GB, free: 9.562 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.8642, allocations: 4 kB / 0.7834 GB, free: 9.559 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.8642, allocations: 4 kB / 0.7834 GB, free: 9.555 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/0.8642, allocations: 5.547 kB / 0.7834 GB, free: 9.551 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002372/0.8666, allocations: 1.531 MB / 0.7849 GB, free: 7.953 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.8666, allocations: 0 / 0.7849 GB, free: 7.953 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003242/0.8669, allocations: 103.8 kB / 0.785 GB, free: 7.852 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003621/0.8673, allocations: 112.7 kB / 0.7851 GB, free: 7.738 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.023e-05/0.8674, allocations: 23.98 kB / 0.7851 GB, free: 7.715 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002191/0.8696, allocations: 2.047 MB / 0.7871 GB, free: 5.531 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.8696, allocations: 4.031 kB / 0.7871 GB, free: 5.527 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001655/0.8712, allocations: 0.9805 MB / 0.7881 GB, free: 4.512 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000194/0.8714, allocations: 164.6 kB / 0.7882 GB, free: 4.332 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.405e-05/0.8715, allocations: 12 kB / 0.7882 GB, free: 4.32 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002999/0.8718, allocations: 15.98 kB / 0.7882 GB, free: 4.305 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.872, allocations: 48.5 kB / 0.7883 GB, free: 4.258 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.28e-05/0.872, allocations: 19.94 kB / 0.7883 GB, free: 4.238 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.000679/0.8727, allocations: 0.5029 MB / 0.7888 GB, free: 3.742 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.134e-06/0.8727, allocations: 0 / 0.7888 GB, free: 3.742 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001096/0.8738, allocations: 335.3 kB / 0.7891 GB, free: 3.414 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (flowResistance1.inlet.m_flow,flowResistance2.inlet.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 (48): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008357/0.8746, allocations: 491 kB / 0.7896 GB, free: 2.922 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001276/0.8759, allocations: 0.6194 MB / 0.7902 GB, free: 2.293 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.8759, allocations: 0 / 0.7902 GB, free: 2.293 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.000753/0.8767, allocations: 437.6 kB / 0.7906 GB, free: 1.852 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001239/0.878, allocations: 276.6 kB / 0.7909 GB, free: 1.594 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002847/0.8808, allocations: 1.601 MB / 0.7924 GB, free: 15.95 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005811/0.8814, allocations: 1.001 MB / 0.7934 GB, free: 14.92 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0004823/0.8819, allocations: 149.8 kB / 0.7935 GB, free: 14.77 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001734/0.8821, allocations: 71.42 kB / 0.7936 GB, free: 14.7 MB / 0.6387 GB Notification: Performance of SimCode: time 2.996e-06/0.8821, allocations: 0 / 0.7936 GB, free: 14.7 MB / 0.6387 GB Notification: Performance of Templates: time 0.02892/0.911, allocations: 16.59 MB / 0.8098 GB, free: 14.23 MB / 0.6544 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.makefile (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches