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.001249/0.001249, allocations: 105.3 kB / 16.4 MB, free: 6.457 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.0013/0.0013, 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.293/1.293, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.1963/0.1963, allocations: 43.53 MB / 314.1 MB, free: 440 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.001327/0.001327, allocations: 65.47 kB / 441.3 MB, free: 6.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1083, allocations: 57.8 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001981/0.1104, allocations: 0.53 MB / 499.6 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008833/0.1113, allocations: 413.5 kB / 0.4883 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.412e-05/0.1113, allocations: 0 / 0.4883 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.237e-05/0.1114, allocations: 3.938 kB / 0.4883 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.518e-05/0.1114, allocations: 0 / 0.4883 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005982/0.112, allocations: 135.5 kB / 0.4884 GB, free: 11.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.836e-05/0.1121, allocations: 19.98 kB / 0.4885 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.22e-05/0.1122, allocations: 4 kB / 0.4885 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.68e-05/0.1122, allocations: 19.91 kB / 0.4885 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.608e-05/0.1123, allocations: 15.92 kB / 0.4885 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.366e-05/0.1123, allocations: 4 kB / 0.4885 GB, free: 11.15 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003111/0.1126, allocations: 167.8 kB / 0.4887 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.721e-05/0.1127, allocations: 3.938 kB / 0.4887 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.983e-05/0.1127, allocations: 15.92 kB / 0.4887 GB, free: 10.97 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002604/0.113, allocations: 127.6 kB / 0.4888 GB, free: 10.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.113, allocations: 3.938 kB / 0.4888 GB, free: 10.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.113, allocations: 0 / 0.4888 GB, free: 10.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.113, allocations: 3.938 kB / 0.4888 GB, free: 10.84 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.0005586/0.1136, allocations: 375 kB / 0.4892 GB, free: 10.42 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.388e-05/0.1136, allocations: 11.89 kB / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.335e-05/0.1137, allocations: 38.75 kB / 0.4892 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.447e-05/0.1137, allocations: 0.9375 kB / 0.4892 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001547/0.1139, allocations: 172.3 kB / 0.4894 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/0.1139, allocations: 384 / 0.4894 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.318e-05/0.1139, allocations: 8.375 kB / 0.4894 GB, free: 10.15 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000171/0.1141, allocations: 57.98 kB / 0.4894 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.885e-05/0.1141, allocations: 3.984 kB / 0.4895 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.1141, allocations: 8 kB / 0.4895 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.1142, allocations: 0 / 0.4895 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.499e-05/0.1142, allocations: 27.92 kB / 0.4895 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002149/0.1145, allocations: 173.5 kB / 0.4897 GB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002405/0.1147, allocations: 54.56 kB / 0.4897 GB, free: 9.766 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.734e-05/0.1148, allocations: 28.84 kB / 0.4897 GB, free: 9.734 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002942/0.1151, allocations: 109.1 kB / 0.4898 GB, free: 9.609 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/0.1151, allocations: 38.72 kB / 0.4899 GB, free: 9.562 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.493e-06/0.1151, 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.1357/0.2509, allocations: 6.383 MB / 0.4961 GB, free: 3.137 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.383e-05/0.251, allocations: 51.41 kB / 0.4962 GB, free: 3.074 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.428e-05/0.2511, allocations: 105.8 kB / 0.4963 GB, free: 2.961 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.521e-05/0.2511, allocations: 34.17 kB / 0.4963 GB, free: 2.922 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.719e-05/0.2512, allocations: 80.14 kB / 0.4964 GB, free: 2.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.2513, allocations: 67.42 kB / 0.4964 GB, free: 2.773 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001675/0.2514, allocations: 89.59 kB / 0.4965 GB, free: 2.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.2516, allocations: 326.8 kB / 0.4968 GB, free: 2.352 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005432/0.2521, allocations: 231.8 kB / 0.497 GB, free: 2.125 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000535/0.2527, allocations: 235.8 kB / 0.4973 GB, free: 1.895 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002132/0.2548, allocations: 0.5507 MB / 0.4978 GB, free: 1.344 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2548, allocations: 4 kB / 0.4978 GB, free: 1.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001817/0.2566, allocations: 0.6104 MB / 0.4984 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.2567, allocations: 4 kB / 0.4984 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.2567, allocations: 0 / 0.4984 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.2567, allocations: 4 kB / 0.4984 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006557/0.2574, allocations: 111.8 kB / 0.4985 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.2574, allocations: 0 / 0.4985 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004309/0.2578, allocations: 23.95 kB / 0.4985 GB, free: 0.582 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.007e-05/0.2579, allocations: 31.95 kB / 0.4986 GB, free: 0.5508 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.0001512/0.2581, allocations: 129.6 kB / 0.4987 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.132e-05/0.2581, allocations: 7.953 kB / 0.4987 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002115/0.2603, allocations: 0.7243 MB / 0.4994 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.2603, allocations: 4 kB / 0.4994 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.2603, allocations: 4 kB / 0.4994 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.2603, allocations: 0 / 0.4994 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003952/0.2642, allocations: 1.176 MB / 0.5006 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.2643, allocations: 0 / 0.5006 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005168/0.2648, allocations: 99.84 kB / 0.5007 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.2648, allocations: 8.188 kB / 0.5007 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.949e-05/0.2649, allocations: 27.95 kB / 0.5007 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.2649, allocations: 4 kB / 0.5007 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.2649, allocations: 3.938 kB / 0.5007 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001626/0.2665, allocations: 0.5744 MB / 0.5013 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.029e-05/0.2666, allocations: 85.06 kB / 0.5013 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.577e-05/0.2666, allocations: 8 kB / 0.5014 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004/0.267, allocations: 27.95 kB / 0.5014 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.422e-05/0.2671, allocations: 19.92 kB / 0.5014 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.617e-05/0.2671, allocations: 27.95 kB / 0.5014 GB, free: 13.48 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5e-05/0.2672, allocations: 87.22 kB / 0.5015 GB, free: 13.39 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2672, allocations: 0 / 0.5015 GB, free: 13.39 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001793/0.269, allocations: 0.6441 MB / 0.5021 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.005164/0.2742, allocations: 1.318 MB / 0.5034 GB, free: 11.38 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001134/0.2753, allocations: 451.5 kB / 0.5039 GB, free: 10.94 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.2753, allocations: 0 / 0.5039 GB, free: 10.94 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005177/0.2759, allocations: 195.8 kB / 0.504 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.0003116/0.2762, allocations: 16.36 kB / 0.5041 GB, free: 10.73 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003297/0.2795, allocations: 0.6202 MB / 0.5047 GB, free: 10.05 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002926/0.2798, allocations: 0.6926 MB / 0.5053 GB, free: 9.332 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004084/0.2802, allocations: 128.9 kB / 0.5055 GB, free: 9.203 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000341/0.2806, allocations: 95.28 kB / 0.5056 GB, free: 9.109 MB / 398.1 MB Notification: Performance of SimCode: time 1.903e-06/0.2806, allocations: 0 / 0.5056 GB, free: 9.109 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3023/0.5829, allocations: 58.58 MB / 0.5628 GB, free: 20.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.802/8.385, allocations: 6.938 kB / 0.5628 GB, free: 20.25 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