Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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 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: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 105.5 kB / 16.41 MB, free: 6.469 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.001228/0.001228, allocations: 189.5 kB / 17.34 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.427/1.427, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2241/0.2241, allocations: 43.52 MB / 314.1 MB, free: 464 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003217/0.003217, allocations: 71.91 kB / 441.3 MB, free: 6.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1341, allocations: 57.79 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001575/0.1357, allocations: 0.5298 MB / 499.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007503/0.1365, allocations: 405.6 kB / 0.4883 GB, free: 11.37 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.647e-05/0.1366, allocations: 4 kB / 0.4883 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.981e-05/0.1366, allocations: 3.938 kB / 0.4883 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.89e-05/0.1366, allocations: 3.938 kB / 0.4883 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004438/0.1371, allocations: 135.6 kB / 0.4884 GB, free: 11.22 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.042e-05/0.1371, allocations: 27.92 kB / 0.4885 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.067e-05/0.1372, allocations: 4 kB / 0.4885 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.057e-05/0.1372, allocations: 15.92 kB / 0.4885 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.653e-05/0.1373, allocations: 19.91 kB / 0.4885 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.182e-05/0.1373, allocations: 4 kB / 0.4885 GB, free: 11.15 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002648/0.1376, allocations: 155.8 kB / 0.4887 GB, free: 11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.368e-05/0.1376, allocations: 11.92 kB / 0.4887 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.798e-05/0.1376, allocations: 15.92 kB / 0.4887 GB, free: 10.97 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002122/0.1378, allocations: 123.6 kB / 0.4888 GB, free: 10.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.1379, allocations: 3.938 kB / 0.4888 GB, free: 10.85 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1379, allocations: 0 / 0.4888 GB, free: 10.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.727e-06/0.1379, allocations: 0 / 0.4888 GB, free: 10.85 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004711/0.1384, allocations: 379 kB / 0.4892 GB, free: 10.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.1384, allocations: 11.89 kB / 0.4892 GB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.072e-05/0.1384, allocations: 46.72 kB / 0.4892 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.091e-05/0.1385, allocations: 0.9375 kB / 0.4892 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001365/0.1386, allocations: 172.3 kB / 0.4894 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.039e-05/0.1386, allocations: 4.312 kB / 0.4894 GB, free: 10.15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.949e-05/0.1387, allocations: 4.375 kB / 0.4894 GB, free: 10.15 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001242/0.1388, allocations: 61.92 kB / 0.4895 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.1388, allocations: 0 / 0.4895 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.1388, allocations: 4 kB / 0.4895 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.1388, allocations: 8 kB / 0.4895 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.557e-05/0.1389, allocations: 23.98 kB / 0.4895 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001922/0.1391, allocations: 173.5 kB / 0.4897 GB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002044/0.1393, allocations: 58.59 kB / 0.4897 GB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.191e-05/0.1394, allocations: 28.84 kB / 0.4897 GB, free: 9.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002598/0.1396, allocations: 109.1 kB / 0.4898 GB, free: 9.605 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.62e-05/0.1397, allocations: 34.5 kB / 0.4899 GB, free: 9.562 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.132e-06/0.1397, allocations: 0 / 0.4899 GB, free: 9.562 MB / 382.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: k2 2: k1 3: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.1406/0.2803, allocations: 6.378 MB / 0.4961 GB, free: 3.148 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.092e-05/0.2804, allocations: 51.41 kB / 0.4962 GB, free: 3.086 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.163e-05/0.2805, allocations: 109.8 kB / 0.4963 GB, free: 2.969 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.121e-05/0.2806, allocations: 33.7 kB / 0.4963 GB, free: 2.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.737e-05/0.2806, allocations: 80.14 kB / 0.4964 GB, free: 2.848 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.078e-05/0.2807, allocations: 67.42 kB / 0.4964 GB, free: 2.781 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001914/0.2809, allocations: 85.59 kB / 0.4965 GB, free: 2.691 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.2811, allocations: 330.8 kB / 0.4968 GB, free: 2.359 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005934/0.2817, allocations: 223.8 kB / 0.497 GB, free: 2.141 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005817/0.2823, allocations: 240.2 kB / 0.4973 GB, free: 1.906 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002128/0.2844, allocations: 0.5551 MB / 0.4978 GB, free: 1.348 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.2844, allocations: 0 / 0.4978 GB, free: 1.348 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001925/0.2864, allocations: 0.6138 MB / 0.4984 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.2864, allocations: 4 kB / 0.4984 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.2864, allocations: 3.938 kB / 0.4984 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.2864, allocations: 4 kB / 0.4984 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00066/0.2871, allocations: 111.8 kB / 0.4985 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.2871, allocations: 0 / 0.4985 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000415/0.2875, allocations: 23.97 kB / 0.4986 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.575e-05/0.2876, allocations: 31.94 kB / 0.4986 GB, free: 0.5547 MB / 382.1 MB 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 (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001639/0.2878, allocations: 125.7 kB / 0.4987 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.119e-05/0.2878, allocations: 7.953 kB / 0.4987 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002196/0.29, allocations: 0.7279 MB / 0.4994 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.2901, allocations: 3.984 kB / 0.4994 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.2901, allocations: 4 kB / 0.4994 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.319e-06/0.2901, allocations: 0 / 0.4994 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004088/0.2942, allocations: 1.173 MB / 0.5006 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.2942, allocations: 0 / 0.5006 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005564/0.2948, allocations: 99.8 kB / 0.5007 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.66e-06/0.2948, allocations: 4.188 kB / 0.5007 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.339e-05/0.2948, allocations: 35.94 kB / 0.5007 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.001e-06/0.2949, allocations: 4 kB / 0.5007 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.2949, allocations: 256 / 0.5007 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001723/0.2966, allocations: 0.5743 MB / 0.5013 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.771e-05/0.2967, allocations: 85.06 kB / 0.5014 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.612e-05/0.2967, allocations: 11.98 kB / 0.5014 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003963/0.2971, allocations: 27.97 kB / 0.5014 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.821e-05/0.2972, allocations: 15.98 kB / 0.5014 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.387e-05/0.2972, allocations: 27.95 kB / 0.5014 GB, free: 13.48 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.43e-05/0.2973, allocations: 91.2 kB / 0.5015 GB, free: 13.39 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2973, allocations: 0 / 0.5015 GB, free: 13.39 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001706/0.299, allocations: 0.6441 MB / 0.5022 GB, free: 12.75 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 simulation (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005026/0.3041, allocations: 1.313 MB / 0.5034 GB, free: 11.39 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001236/0.3053, allocations: 455.5 kB / 0.5039 GB, free: 10.95 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3053, allocations: 0 / 0.5039 GB, free: 10.95 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005523/0.3059, allocations: 199.7 kB / 0.5041 GB, free: 10.75 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002795/0.3062, allocations: 8.375 kB / 0.5041 GB, free: 10.74 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00305/0.3092, allocations: 0.6202 MB / 0.5047 GB, free: 10.06 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003581/0.3096, allocations: 0.6926 MB / 0.5053 GB, free: 9.34 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004259/0.31, allocations: 128.9 kB / 0.5055 GB, free: 9.211 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003303/0.3104, allocations: 99.28 kB / 0.5056 GB, free: 9.113 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3104, allocations: 3.938 kB / 0.5056 GB, free: 9.109 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3198/0.6302, allocations: 58.55 MB / 0.5628 GB, free: 20.33 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.342/8.972, allocations: 11.5 kB / 0.5628 GB, free: 20.33 MB / 414.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches