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.00105/0.00105, allocations: 103.2 kB / 18.4 MB, free: 4.703 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.001015/0.001015, allocations: 188 kB / 19.34 MB, free: 3.77 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.325/1.325, allocations: 222.9 MB / 243 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2114/0.2114, allocations: 44.17 MB / 337.4 MB, free: 2.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 60.06 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1198, allocations: 60.83 MB / 470.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001894/0.1218, allocations: 0.5222 MB / 471.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007256/0.1225, allocations: 413.2 kB / 471.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.697e-05/0.1226, allocations: 0 / 471.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.54e-05/0.1226, allocations: 3.938 kB / 471.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.307e-05/0.1226, allocations: 0 / 471.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005182/0.1232, allocations: 135.6 kB / 471.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.203e-05/0.1232, allocations: 35.89 kB / 471.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.255e-05/0.1233, allocations: 4 kB / 471.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.183e-05/0.1233, allocations: 7.938 kB / 471.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.281e-05/0.1234, allocations: 15.92 kB / 471.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.131e-05/0.1234, allocations: 4 kB / 471.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002634/0.1237, allocations: 163.8 kB / 472 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.821e-05/0.1237, allocations: 11.92 kB / 472 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.622e-05/0.1237, allocations: 11.94 kB / 472 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002052/0.1239, allocations: 135.6 kB / 472.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.1239, allocations: 0 / 472.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.124, allocations: 0 / 472.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.585e-06/0.124, allocations: 0 / 472.2 MB, free: 12.23 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.0004416/0.1244, allocations: 366.4 kB / 472.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.1245, allocations: 12.03 kB / 472.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.342e-05/0.1245, allocations: 0.9375 kB / 472.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001235/0.1246, allocations: 176.2 kB / 472.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.009e-05/0.1246, allocations: 384 / 472.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.872e-05/0.1247, allocations: 12.36 kB / 472.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00013/0.1248, allocations: 58.23 kB / 472.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.1248, allocations: 3.938 kB / 472.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.099e-05/0.1248, allocations: 0 / 472.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.1249, allocations: 4 kB / 472.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.509e-05/0.1249, allocations: 27.92 kB / 472.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001911/0.1251, allocations: 173.6 kB / 473 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000204/0.1253, allocations: 54.55 kB / 473 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.633e-05/0.1254, allocations: 28.86 kB / 473 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002487/0.1257, allocations: 109 kB / 473.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.738e-05/0.1257, allocations: 38.78 kB / 473.2 MB, free: 11.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.603e-06/0.1257, allocations: 0 / 473.2 MB, free: 11.01 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.1254/0.2511, allocations: 6.379 MB / 479.6 MB, free: 4.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/0.2512, allocations: 59.41 kB / 479.6 MB, free: 4.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.573e-05/0.2513, allocations: 101.8 kB / 479.7 MB, free: 4.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.844e-05/0.2513, allocations: 29.7 kB / 479.8 MB, free: 4.375 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.286e-05/0.2514, allocations: 80.14 kB / 479.8 MB, free: 4.293 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.773e-05/0.2515, allocations: 63.09 kB / 479.9 MB, free: 4.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000172/0.2516, allocations: 89.59 kB / 480 MB, free: 4.137 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.2518, allocations: 318.8 kB / 480.3 MB, free: 3.816 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000524/0.2523, allocations: 239.8 kB / 480.5 MB, free: 3.582 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004991/0.2528, allocations: 223.8 kB / 480.8 MB, free: 3.363 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001937/0.2547, allocations: 0.5573 MB / 481.3 MB, free: 2.805 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.2548, allocations: 3.984 kB / 481.3 MB, free: 2.801 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001719/0.2565, allocations: 0.6065 MB / 481.9 MB, free: 2.188 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.2565, allocations: 4 kB / 481.9 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/0.2565, allocations: 4 kB / 481.9 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.2566, allocations: 0 / 481.9 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006294/0.2572, allocations: 107.8 kB / 482 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.2572, allocations: 4 kB / 482 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004181/0.2576, allocations: 23.95 kB / 482.1 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.618e-05/0.2577, allocations: 35.94 kB / 482.1 MB, free: 2.012 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.0001441/0.2579, allocations: 125.7 kB / 482.2 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.065e-05/0.2579, allocations: 7.906 kB / 482.2 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001978/0.2599, allocations: 0.7347 MB / 483 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.2599, allocations: 3.938 kB / 483 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.2599, allocations: 4 kB / 483 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2599, allocations: 0 / 483 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003882/0.2638, allocations: 1.168 MB / 484.1 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.2639, allocations: 8.172 kB / 484.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005336/0.2644, allocations: 99.86 kB / 484.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.531e-06/0.2644, allocations: 0 / 484.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.895e-05/0.2645, allocations: 27.95 kB / 484.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.2645, allocations: 3.938 kB / 484.3 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.2645, allocations: 4 kB / 484.3 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001579/0.2661, allocations: 0.5808 MB / 484.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.112e-05/0.2661, allocations: 85.02 kB / 484.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.271e-05/0.2662, allocations: 8.469 kB / 484.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003976/0.2666, allocations: 31.95 kB / 485 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.577e-05/0.2666, allocations: 11.92 kB / 485 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-05/0.2667, allocations: 27.95 kB / 485 MB, free: 14.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.777e-05/0.2667, allocations: 87.28 kB / 485.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2667, allocations: 3.938 kB / 485.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001668/0.2684, allocations: 0.6483 MB / 485.8 MB, free: 14.21 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.003204/0.2716, allocations: 294.9 kB / 486 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001152/0.2728, allocations: 447.6 kB / 486.5 MB, free: 13.47 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.2728, allocations: 0 / 486.5 MB, free: 13.47 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004979/0.2733, allocations: 207.7 kB / 486.7 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002953/0.2736, allocations: 12 kB / 486.7 MB, free: 13.26 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002285/0.2759, allocations: 0.5142 MB / 487.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002994/0.2762, allocations: 0.6926 MB / 487.9 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003989/0.2766, allocations: 128.9 kB / 488 MB, free: 11.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002905/0.2769, allocations: 91.22 kB / 488.1 MB, free: 11.76 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2769, allocations: 0 / 488.1 MB, free: 11.76 MB / 366.1 MB Notification: Performance of Templates: time 0.2424/0.5194, allocations: 57.4 MB / 0.5327 GB, free: 29.97 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins1/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