Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008418/0.0008418, allocations: 96.14 kB / 17 MB, free: 6.477 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.0009052/0.0009052, allocations: 185.7 kB / 17.89 MB, free: 5.922 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: 223.3 MB / 241.9 MB, free: 320 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2005/0.2005, allocations: 44.25 MB / 337.3 MB, free: 2.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003009/0.000301, allocations: 15 kB / 409.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1033, allocations: 61.92 MB / 471.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.0006051/0.1039, allocations: 254.6 kB / 471.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007054/0.1046, allocations: 385 kB / 472.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.445e-05/0.1047, allocations: 0 / 472.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.306e-05/0.1047, allocations: 0 / 472.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.14e-05/0.1048, allocations: 3.938 kB / 472.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004285/0.1052, allocations: 95.77 kB / 472.3 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.372e-05/0.1053, allocations: 23.97 kB / 472.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.126e-05/0.1053, allocations: 0 / 472.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.373e-05/0.1053, allocations: 19.92 kB / 472.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.44e-05/0.1054, allocations: 19.92 kB / 472.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.698e-06/0.1054, allocations: 0 / 472.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002623/0.1057, allocations: 155.8 kB / 472.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.454e-05/0.1057, allocations: 7.984 kB / 472.5 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.409e-05/0.1057, allocations: 25.7 kB / 472.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001796/0.1059, allocations: 87.75 kB / 472.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1059, allocations: 0 / 472.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1059, allocations: 0 / 472.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.957e-06/0.1059, allocations: 0 / 472.6 MB, free: 12.66 MB / 350.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.0003939/0.1063, allocations: 359.5 kB / 473 MB, free: 12.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.1064, allocations: 8.031 kB / 473 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.043e-05/0.1064, allocations: 4 kB / 473 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.1066, allocations: 171 kB / 473.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.1066, allocations: 0 / 473.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.185e-05/0.1066, allocations: 15.86 kB / 473.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001233/0.1067, allocations: 49.62 kB / 473.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.1068, allocations: 3.984 kB / 473.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.1068, allocations: 4 kB / 473.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.1068, allocations: 0 / 473.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.165e-05/0.1069, allocations: 23.98 kB / 473.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001792/0.1071, allocations: 169.7 kB / 473.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002039/0.1073, allocations: 62.56 kB / 473.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.859e-05/0.1073, allocations: 28.84 kB / 473.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002697/0.1076, allocations: 125 kB / 473.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.018e-05/0.1076, allocations: 34.5 kB / 473.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.162e-06/0.1076, allocations: 0 / 473.7 MB, free: 11.44 MB / 350.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.1233/0.231, allocations: 6.619 MB / 480.3 MB, free: 4.785 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.187e-05/0.231, allocations: 51.41 kB / 480.4 MB, free: 4.723 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.1e-05/0.2311, allocations: 109.8 kB / 480.5 MB, free: 4.605 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.899e-05/0.2312, allocations: 25.7 kB / 480.5 MB, free: 4.574 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.35e-05/0.2312, allocations: 84.14 kB / 480.6 MB, free: 4.488 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.867e-05/0.2313, allocations: 67 kB / 480.6 MB, free: 4.422 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.411e-05/0.2314, allocations: 0 / 480.6 MB, free: 4.422 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.2315, allocations: 322.8 kB / 480.9 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005394/0.232, allocations: 239.8 kB / 481.2 MB, free: 3.863 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000535/0.2326, allocations: 247.8 kB / 481.4 MB, free: 3.621 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001032/0.2336, allocations: 303.8 kB / 481.7 MB, free: 3.324 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2336, allocations: 0 / 481.7 MB, free: 3.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001767/0.2354, allocations: 0.6363 MB / 482.4 MB, free: 2.684 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.2354, allocations: 4 kB / 482.4 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.2354, allocations: 8 kB / 482.4 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.2355, allocations: 0 / 482.4 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006321/0.2361, allocations: 115.8 kB / 482.5 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.2361, allocations: 0 / 482.5 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004123/0.2365, allocations: 35.95 kB / 482.5 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.309e-05/0.2366, allocations: 31.94 kB / 482.5 MB, free: 2.492 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001432/0.2367, allocations: 126.3 kB / 482.7 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.39e-05/0.2368, allocations: 7.906 kB / 482.7 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002137/0.2389, allocations: 0.7555 MB / 483.4 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.239, allocations: 3.938 kB / 483.4 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.239, allocations: 0 / 483.4 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.239, allocations: 0 / 483.4 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00388/0.2429, allocations: 1.239 MB / 484.7 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.2429, allocations: 256 / 484.7 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005386/0.2434, allocations: 104.5 kB / 484.8 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/0.2434, allocations: 11.94 kB / 484.8 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.963e-05/0.2435, allocations: 27.95 kB / 484.8 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.382e-06/0.2435, allocations: 4 kB / 484.8 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.2435, allocations: 3.953 kB / 484.8 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001624/0.2451, allocations: 0.6198 MB / 485.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.804e-05/0.2452, allocations: 89.02 kB / 485.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.442e-05/0.2453, allocations: 8 kB / 485.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003978/0.2457, allocations: 31.95 kB / 485.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.883e-05/0.2457, allocations: 19.94 kB / 485.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.04e-05/0.2458, allocations: 27.95 kB / 485.6 MB, free: 15.28 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.765e-05/0.2458, allocations: 87.28 kB / 485.7 MB, free: 15.19 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2458, allocations: 0 / 485.7 MB, free: 15.19 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001712/0.2475, allocations: 0.6406 MB / 486.3 MB, free: 14.55 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003102/0.2506, allocations: 306.9 kB / 486.6 MB, free: 14.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001173/0.2518, allocations: 479.6 kB / 487.1 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.2518, allocations: 0 / 487.1 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005272/0.2524, allocations: 227.4 kB / 487.3 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003337/0.2527, allocations: 8 kB / 487.3 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002402/0.2551, allocations: 0.5896 MB / 487.9 MB, free: 12.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000295/0.2554, allocations: 0.6929 MB / 488.6 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005646/0.256, allocations: 128.9 kB / 488.7 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003066/0.2563, allocations: 83.3 kB / 488.8 MB, free: 11.98 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2563, allocations: 0 / 488.8 MB, free: 11.98 MB / 366.1 MB Notification: Performance of Templates: time 0.3161/0.5724, allocations: 56.91 MB / 0.533 GB, free: 29.5 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches