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.001313/0.001313, allocations: 101.8 kB / 16.27 MB, free: 5.93 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.001486/0.001486, allocations: 190.1 kB / 17.2 MB, free: 5.574 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.443/1.443, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.2269/0.2269, allocations: 43.52 MB / 313.9 MB, free: 0.5273 MB / 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.001453/0.001453, allocations: 74.89 kB / 382.8 MB, free: 56.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.111, allocations: 57.79 MB / 440.6 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001701/0.1128, allocations: 0.5302 MB / 441.2 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005747/0.1133, allocations: 403.3 kB / 441.5 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.546e-05/0.1134, allocations: 0 / 441.5 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.828e-05/0.1134, allocations: 7.875 kB / 441.6 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.646e-05/0.1134, allocations: 3.938 kB / 441.6 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003843/0.1138, allocations: 139.8 kB / 441.7 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.726e-05/0.1139, allocations: 27.86 kB / 441.7 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.853e-05/0.1139, allocations: 0 / 441.7 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.075e-05/0.114, allocations: 23.91 kB / 441.7 MB, free: 5.672 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.471e-05/0.114, allocations: 11.92 kB / 441.8 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.919e-06/0.114, allocations: 0 / 441.8 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002013/0.1142, allocations: 163.8 kB / 441.9 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.029e-05/0.1142, allocations: 4 kB / 441.9 MB, free: 5.496 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.252e-05/0.1143, allocations: 19.86 kB / 441.9 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001696/0.1144, allocations: 131.8 kB / 442.1 MB, free: 5.348 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1145, allocations: 3.938 kB / 442.1 MB, free: 5.344 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1145, allocations: 0 / 442.1 MB, free: 5.344 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.1145, allocations: 0 / 442.1 MB, free: 5.344 MB / 318.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.0003378/0.1148, allocations: 367.3 kB / 442.4 MB, free: 4.938 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.1149, allocations: 11.89 kB / 442.4 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.163e-05/0.1149, allocations: 38.69 kB / 442.5 MB, free: 4.879 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.739e-05/0.1149, allocations: 4.938 kB / 442.5 MB, free: 4.875 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.561e-05/0.115, allocations: 164.3 kB / 442.6 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.115, allocations: 8.375 kB / 442.7 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.341e-05/0.1151, allocations: 8.375 kB / 442.7 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001172/0.1152, allocations: 61.92 kB / 442.7 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.1152, allocations: 0 / 442.7 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.457e-06/0.1152, allocations: 0 / 442.7 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.1152, allocations: 0 / 442.7 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.895e-05/0.1153, allocations: 23.98 kB / 442.7 MB, free: 4.57 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001474/0.1155, allocations: 173.6 kB / 442.9 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001912/0.1156, allocations: 58.59 kB / 443 MB, free: 4.285 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.407e-05/0.1157, allocations: 36.84 kB / 443 MB, free: 4.246 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002437/0.116, allocations: 105.1 kB / 443.1 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.658e-05/0.116, allocations: 34.5 kB / 443.1 MB, free: 4.082 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.142e-06/0.116, allocations: 0 / 443.1 MB, free: 4.082 MB / 318.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.1408/0.2568, allocations: 6.391 MB / 449.5 MB, free: 13.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.724e-05/0.2569, allocations: 55.41 kB / 449.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.033e-05/0.257, allocations: 105.8 kB / 449.7 MB, free: 13.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.826e-05/0.257, allocations: 33.7 kB / 449.7 MB, free: 13.44 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.273e-05/0.2571, allocations: 80.14 kB / 449.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.854e-05/0.2572, allocations: 63.09 kB / 449.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001667/0.2573, allocations: 89.59 kB / 450 MB, free: 13.2 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.2575, allocations: 318.8 kB / 450.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005426/0.258, allocations: 231.8 kB / 450.5 MB, free: 12.65 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005437/0.2586, allocations: 227.8 kB / 450.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002096/0.2607, allocations: 0.562 MB / 451.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2607, allocations: 0 / 451.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001832/0.2625, allocations: 0.6068 MB / 451.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.2626, allocations: 8 kB / 451.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.2626, allocations: 0 / 451.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.2626, allocations: 4 kB / 451.9 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006536/0.2633, allocations: 111.8 kB / 452 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.2633, allocations: 0 / 452 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004419/0.2637, allocations: 23.95 kB / 452 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.876e-05/0.2638, allocations: 35.95 kB / 452.1 MB, free: 11.07 MB / 334.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.0001529/0.264, allocations: 125.7 kB / 452.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.788e-05/0.264, allocations: 7.906 kB / 452.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002107/0.2661, allocations: 0.7312 MB / 452.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.2662, allocations: 8 kB / 452.9 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.2662, allocations: 0 / 452.9 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.2662, allocations: 0 / 452.9 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003898/0.2701, allocations: 1.157 MB / 454.1 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.2701, allocations: 4 kB / 454.1 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005441/0.2707, allocations: 103.8 kB / 454.2 MB, free: 8.855 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.66e-06/0.2707, allocations: 4 kB / 454.2 MB, free: 8.852 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.482e-05/0.2707, allocations: 27.95 kB / 454.2 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.2707, allocations: 480 / 454.2 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.2707, allocations: 7.938 kB / 454.2 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001678/0.2724, allocations: 0.5861 MB / 454.8 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.435e-05/0.2725, allocations: 85.02 kB / 454.9 MB, free: 8.094 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.928e-05/0.2726, allocations: 11.98 kB / 454.9 MB, free: 8.082 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004096/0.273, allocations: 31.89 kB / 454.9 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.175e-05/0.273, allocations: 15.98 kB / 455 MB, free: 8.035 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.58e-05/0.2731, allocations: 27.95 kB / 455 MB, free: 8.008 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.969e-05/0.2731, allocations: 91.22 kB / 455.1 MB, free: 7.918 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2731, allocations: 0 / 455.1 MB, free: 7.918 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001915/0.2751, allocations: 0.6444 MB / 455.7 MB, free: 7.273 MB / 334.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.005168/0.2802, allocations: 1.307 MB / 457 MB, free: 5.922 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001218/0.2815, allocations: 455.2 kB / 457.5 MB, free: 5.48 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.2815, allocations: 0 / 457.5 MB, free: 5.48 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005252/0.282, allocations: 199.7 kB / 457.7 MB, free: 5.285 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003261/0.2824, allocations: 15.98 kB / 457.7 MB, free: 5.27 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003217/0.2856, allocations: 0.6171 MB / 458.3 MB, free: 4.594 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003911/0.286, allocations: 0.6926 MB / 459 MB, free: 3.871 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000562/0.2866, allocations: 124.9 kB / 459.1 MB, free: 3.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003262/0.2869, allocations: 99.28 kB / 459.2 MB, free: 3.652 MB / 334.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2869, allocations: 0 / 459.2 MB, free: 3.652 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09744/0.3844, allocations: 58.52 MB / 0.5056 GB, free: 8.902 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.918/8.302, allocations: 11.77 kB / 0.5056 GB, free: 8.891 MB / 398.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