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.001017/0.001018, allocations: 94.19 kB / 17.35 MB, free: 6.371 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.001281/0.001282, allocations: 180 kB / 18.26 MB, free: 5.52 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.332/1.332, allocations: 223.3 MB / 242.3 MB, free: 184 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.1943/0.1943, allocations: 44.26 MB / 337.7 MB, free: 2.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003132/0.0003133, allocations: 8 kB / 410.3 MB, free: 27.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1033, allocations: 61.92 MB / 472.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.0006172/0.104, allocations: 254.7 kB / 472.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007393/0.1047, allocations: 432.6 kB / 472.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.483e-05/0.1048, allocations: 0 / 472.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.222e-05/0.1048, allocations: 0 / 472.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.68e-05/0.1048, allocations: 3.938 kB / 472.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003883/0.1052, allocations: 99.77 kB / 473 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.056e-05/0.1053, allocations: 19.98 kB / 473 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.142e-05/0.1054, allocations: 8 kB / 473.1 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.595e-05/0.1054, allocations: 19.91 kB / 473.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.764e-05/0.1055, allocations: 19.92 kB / 473.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.828e-06/0.1055, allocations: 0 / 473.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002458/0.1057, allocations: 159.8 kB / 473.2 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.211e-05/0.1057, allocations: 3.938 kB / 473.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.409e-05/0.1058, allocations: 41.62 kB / 473.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001921/0.106, allocations: 127.7 kB / 473.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.106, allocations: 3.984 kB / 473.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.106, allocations: 0 / 473.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.486e-06/0.106, allocations: 0 / 473.4 MB, free: 12.15 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.0003665/0.1064, allocations: 359.7 kB / 473.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.1064, allocations: 8.031 kB / 473.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.809e-05/0.1065, allocations: 4.938 kB / 473.8 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000114/0.1066, allocations: 176.2 kB / 474 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.1066, allocations: 4.375 kB / 474 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.532e-05/0.1066, allocations: 12.38 kB / 474 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001182/0.1068, allocations: 50.25 kB / 474 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.1068, allocations: 3.938 kB / 474 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.1068, allocations: 0 / 474 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.1068, allocations: 4 kB / 474 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.023e-05/0.1069, allocations: 35.84 kB / 474.1 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00018/0.1071, allocations: 165.7 kB / 474.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001911/0.1073, allocations: 54.55 kB / 474.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.945e-05/0.1073, allocations: 24.86 kB / 474.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002847/0.1076, allocations: 121.1 kB / 474.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.1077, allocations: 34.78 kB / 474.5 MB, free: 10.94 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.292e-06/0.1077, allocations: 0 / 474.5 MB, free: 10.94 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.1524/0.2601, allocations: 6.626 MB / 481.1 MB, free: 4.277 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.693e-05/0.2601, allocations: 59.41 kB / 481.1 MB, free: 4.207 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.831e-05/0.2602, allocations: 105.8 kB / 481.2 MB, free: 4.094 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.98e-05/0.2603, allocations: 25.7 kB / 481.3 MB, free: 4.062 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.518e-05/0.2603, allocations: 88.14 kB / 481.4 MB, free: 3.973 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.284e-05/0.2604, allocations: 59.09 kB / 481.4 MB, free: 3.914 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.853e-05/0.2605, allocations: 25.7 kB / 481.4 MB, free: 3.883 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.2606, allocations: 318.8 kB / 481.8 MB, free: 3.562 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005834/0.2612, allocations: 247.8 kB / 482 MB, free: 3.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005908/0.2618, allocations: 247.8 kB / 482.2 MB, free: 3.078 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002184/0.264, allocations: 0.5889 MB / 482.8 MB, free: 2.488 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.264, allocations: 0 / 482.8 MB, free: 2.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00194/0.266, allocations: 0.6455 MB / 483.5 MB, free: 1.836 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.266, allocations: 4 kB / 483.5 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.266, allocations: 0 / 483.5 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.266, allocations: 4 kB / 483.5 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006754/0.2667, allocations: 111.8 kB / 483.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.2667, allocations: 0 / 483.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004611/0.2672, allocations: 39.95 kB / 483.6 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.039e-05/0.2673, allocations: 27.95 kB / 483.7 MB, free: 1.652 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001605/0.2674, allocations: 126.2 kB / 483.8 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.193e-05/0.2675, allocations: 11.91 kB / 483.8 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002266/0.2698, allocations: 0.758 MB / 484.5 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.2698, allocations: 11.92 kB / 484.6 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.2698, allocations: 0 / 484.6 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.2698, allocations: 3.938 kB / 484.6 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004287/0.2741, allocations: 1.239 MB / 485.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.2741, allocations: 0 / 485.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006024/0.2747, allocations: 108 kB / 485.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.407e-06/0.2748, allocations: 4 kB / 485.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.251e-05/0.2748, allocations: 23.95 kB / 485.9 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.19e-05/0.2748, allocations: 7.938 kB / 485.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.2748, allocations: 4 kB / 485.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001819/0.2767, allocations: 0.6092 MB / 486.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.631e-05/0.2767, allocations: 89 kB / 486.6 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.91e-05/0.2768, allocations: 8 kB / 486.6 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004314/0.2772, allocations: 31.97 kB / 486.7 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.095e-05/0.2773, allocations: 19.91 kB / 486.7 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.38e-05/0.2774, allocations: 31.95 kB / 486.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.487e-05/0.2774, allocations: 87.53 kB / 486.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2774, allocations: 0 / 486.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001903/0.2793, allocations: 0.6523 MB / 487.5 MB, free: 13.69 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 (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.003062/0.2824, allocations: 299.4 kB / 487.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001295/0.2837, allocations: 483.6 kB / 488.2 MB, free: 12.92 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.2837, allocations: 0 / 488.2 MB, free: 12.92 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005338/0.2843, allocations: 220.1 kB / 488.4 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000315/0.2846, allocations: 11.98 kB / 488.5 MB, free: 12.69 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002452/0.287, allocations: 0.5858 MB / 489 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002753/0.2873, allocations: 0.6968 MB / 489.7 MB, free: 11.33 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005365/0.2879, allocations: 124.8 kB / 489.9 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003028/0.2882, allocations: 95.28 kB / 490 MB, free: 11.11 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2882, allocations: 0 / 490 MB, free: 11.11 MB / 366.1 MB Notification: Performance of Templates: time 0.2582/0.5464, allocations: 57.03 MB / 0.5342 GB, free: 28.62 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