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.001077/0.001077, allocations: 102.2 kB / 16.99 MB, free: 5.941 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.001275/0.001275, allocations: 183.1 kB / 17.87 MB, free: 5.609 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.343/1.343, allocations: 223.2 MB / 241.8 MB, free: 372 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.1931/0.1931, allocations: 44.23 MB / 337.1 MB, free: 2.906 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003037/0.0003037, allocations: 11.98 kB / 409.5 MB, free: 27.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1062, allocations: 61.92 MB / 471.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.0006255/0.1069, allocations: 258.8 kB / 471.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007173/0.1076, allocations: 377.1 kB / 472.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.504e-05/0.1077, allocations: 0 / 472.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.136e-05/0.1077, allocations: 0 / 472.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.507e-05/0.1077, allocations: 4 kB / 472.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003588/0.1081, allocations: 99.64 kB / 472.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.801e-05/0.1082, allocations: 19.97 kB / 472.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.64e-05/0.1082, allocations: 0 / 472.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.589e-05/0.1082, allocations: 15.94 kB / 472.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.746e-05/0.1083, allocations: 19.91 kB / 472.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.167e-05/0.1083, allocations: 0 / 472.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002672/0.1086, allocations: 147.8 kB / 472.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.335e-05/0.1086, allocations: 8 kB / 472.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.503e-05/0.1087, allocations: 29.64 kB / 472.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001788/0.1088, allocations: 83.88 kB / 472.5 MB, free: 12.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1089, allocations: 0 / 472.5 MB, free: 12.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1089, allocations: 4 kB / 472.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.1089, allocations: 0 / 472.5 MB, free: 12.71 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.0004955/0.1094, allocations: 355.5 kB / 472.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.443e-05/0.1094, allocations: 15.97 kB / 472.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.541e-05/0.1095, allocations: 0 / 472.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001848/0.1097, allocations: 167 kB / 473 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.1097, allocations: 11.92 kB / 473 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.957e-05/0.1098, allocations: 15.86 kB / 473.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001612/0.1099, allocations: 49.62 kB / 473.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.1099, allocations: 8 kB / 473.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.11, allocations: 0 / 473.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.11, allocations: 4 kB / 473.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.572e-05/0.11, allocations: 27.97 kB / 473.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000217/0.1103, allocations: 161.7 kB / 473.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002086/0.1105, allocations: 66.58 kB / 473.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002585/0.1107, allocations: 113.1 kB / 473.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.152e-05/0.1108, allocations: 38.5 kB / 473.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.142e-06/0.1108, allocations: 4 kB / 473.5 MB, free: 11.52 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.1391/0.2499, allocations: 6.604 MB / 480.1 MB, free: 4.879 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.2499, allocations: 51.41 kB / 480.2 MB, free: 4.816 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.28e-05/0.25, allocations: 105.8 kB / 480.3 MB, free: 4.703 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.821e-05/0.2501, allocations: 29.7 kB / 480.3 MB, free: 4.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.499e-05/0.2501, allocations: 80.14 kB / 480.4 MB, free: 4.586 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.958e-05/0.2503, allocations: 63.02 kB / 480.4 MB, free: 4.523 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.732e-05/0.2503, allocations: 7.938 kB / 480.4 MB, free: 4.516 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.2504, allocations: 326.8 kB / 480.8 MB, free: 4.188 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000545/0.251, allocations: 244.3 kB / 481 MB, free: 3.949 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005239/0.2515, allocations: 245.8 kB / 481.2 MB, free: 3.711 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001021/0.2525, allocations: 299.8 kB / 481.5 MB, free: 3.418 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.2525, allocations: 0 / 481.5 MB, free: 3.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001762/0.2543, allocations: 0.6405 MB / 482.2 MB, free: 2.773 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.2543, allocations: 11.94 kB / 482.2 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.2543, allocations: 0 / 482.2 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.2544, allocations: 0 / 482.2 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006406/0.255, allocations: 123.8 kB / 482.3 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.255, allocations: 0 / 482.3 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004224/0.2555, allocations: 35.95 kB / 482.3 MB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.611e-05/0.2555, allocations: 31.94 kB / 482.4 MB, free: 2.574 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.000139/0.2557, allocations: 122.4 kB / 482.5 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.878e-05/0.2557, allocations: 11.86 kB / 482.5 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002077/0.2578, allocations: 0.7554 MB / 483.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.2578, allocations: 0 / 483.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.2578, allocations: 4 kB / 483.3 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.2578, allocations: 4 kB / 483.3 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00389/0.2617, allocations: 1.235 MB / 484.5 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.2618, allocations: 0 / 484.5 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005331/0.2623, allocations: 103.8 kB / 484.6 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.084e-06/0.2623, allocations: 4 kB / 484.6 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.349e-05/0.2624, allocations: 23.95 kB / 484.6 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.2624, allocations: 4 kB / 484.6 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.2624, allocations: 12.08 kB / 484.7 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001654/0.264, allocations: 0.6846 MB / 485.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.927e-05/0.2641, allocations: 85.02 kB / 485.4 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.35e-05/0.2642, allocations: 11.98 kB / 485.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004038/0.2646, allocations: 35.89 kB / 485.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.276e-05/0.2646, allocations: 23.94 kB / 485.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.684e-05/0.2647, allocations: 27.95 kB / 485.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.298e-05/0.2647, allocations: 87.28 kB / 485.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2647, allocations: 0 / 485.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001742/0.2665, allocations: 0.6406 MB / 486.2 MB, free: 14.53 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.002726/0.2692, allocations: 302.9 kB / 486.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001156/0.2704, allocations: 486.4 kB / 487 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2704, allocations: 0 / 487 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004963/0.2709, allocations: 220 kB / 487.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001814/0.2711, allocations: 8 kB / 487.2 MB, free: 13.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002205/0.2733, allocations: 0.5858 MB / 487.8 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002131/0.2735, allocations: 0.7007 MB / 488.5 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005158/0.274, allocations: 120.9 kB / 488.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000302/0.2743, allocations: 91.28 kB / 488.7 MB, free: 11.95 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2744, allocations: 0 / 488.7 MB, free: 11.95 MB / 366.1 MB Notification: Performance of Templates: time 0.2713/0.5457, allocations: 56.9 MB / 0.5328 GB, free: 29.56 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","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches