Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001427/0.001427, allocations: 119.9 kB / 18.42 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001761/0.001761, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2063/0.2063, allocations: 46.09 MB / 344.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 75.88 kB / 419 MB, free: 19.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1092, allocations: 62.44 MB / 481.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001614/0.1108, allocations: 0.5377 MB / 482 MB, free: 4.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006608/0.1115, allocations: 401.4 kB / 482.4 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.282e-05/0.1115, allocations: 0 / 482.4 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.576e-05/0.1116, allocations: 3.938 kB / 482.4 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.623e-05/0.1116, allocations: 0 / 482.4 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004445/0.112, allocations: 147.4 kB / 482.5 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.449e-05/0.1121, allocations: 27.91 kB / 482.6 MB, free: 3.449 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.076e-05/0.1122, allocations: 0 / 482.6 MB, free: 3.449 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.476e-05/0.1122, allocations: 19.92 kB / 482.6 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.889e-05/0.1122, allocations: 15.92 kB / 482.6 MB, free: 3.414 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.809e-06/0.1123, allocations: 0 / 482.6 MB, free: 3.414 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002417/0.1125, allocations: 163.8 kB / 482.8 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.152e-05/0.1125, allocations: 4 kB / 482.8 MB, free: 3.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.108e-05/0.1126, allocations: 23.84 kB / 482.8 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001814/0.1127, allocations: 123.7 kB / 482.9 MB, free: 3.105 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1128, allocations: 4 kB / 482.9 MB, free: 3.102 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1128, allocations: 0 / 482.9 MB, free: 3.102 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.97e-06/0.1128, allocations: 0 / 482.9 MB, free: 3.102 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.0003749/0.1131, allocations: 355.5 kB / 483.3 MB, free: 2.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.1132, allocations: 12.02 kB / 483.3 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.193e-05/0.1132, allocations: 8.938 kB / 483.3 MB, free: 2.688 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.1133, allocations: 176.1 kB / 483.4 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.068e-05/0.1134, allocations: 384 / 483.4 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.352e-05/0.1134, allocations: 4.375 kB / 483.5 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001093/0.1135, allocations: 62.17 kB / 483.5 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.1135, allocations: 7.938 kB / 483.5 MB, free: 2.398 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.155e-06/0.1135, allocations: 0 / 483.5 MB, free: 2.398 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.1135, allocations: 0 / 483.5 MB, free: 2.398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.213e-05/0.1136, allocations: 31.92 kB / 483.6 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001597/0.1138, allocations: 169.7 kB / 483.7 MB, free: 2.152 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000193/0.114, allocations: 58.53 kB / 483.8 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.62e-05/0.114, allocations: 28.84 kB / 483.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002491/0.1143, allocations: 105.1 kB / 483.9 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.1143, allocations: 42.77 kB / 483.9 MB, free: 1.883 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.112e-06/0.1143, allocations: 0 / 483.9 MB, free: 1.883 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.1309/0.2452, allocations: 6.392 MB / 490.3 MB, free: 11.46 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.431e-05/0.2453, allocations: 55.41 kB / 490.4 MB, free: 11.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.93e-05/0.2454, allocations: 105.8 kB / 490.5 MB, free: 11.28 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.292e-05/0.2454, allocations: 25.7 kB / 490.5 MB, free: 11.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.186e-05/0.2454, allocations: 88.14 kB / 490.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.213e-05/0.2455, allocations: 55.11 kB / 490.7 MB, free: 11.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000166/0.2457, allocations: 85.59 kB / 490.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.2458, allocations: 330.7 kB / 491.1 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005085/0.2463, allocations: 228.3 kB / 491.3 MB, free: 10.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005079/0.2468, allocations: 227.8 kB / 491.5 MB, free: 10.24 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001993/0.2488, allocations: 0.5573 MB / 492.1 MB, free: 9.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.2489, allocations: 0 / 492.1 MB, free: 9.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001758/0.2506, allocations: 0.6143 MB / 492.7 MB, free: 9.059 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.2506, allocations: 7.938 kB / 492.7 MB, free: 9.051 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.2507, allocations: 0 / 492.7 MB, free: 9.051 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.2507, allocations: 8 kB / 492.7 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006511/0.2513, allocations: 103.8 kB / 492.8 MB, free: 8.941 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.2514, allocations: 0 / 492.8 MB, free: 8.941 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004357/0.2518, allocations: 23.97 kB / 492.8 MB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.484e-05/0.2519, allocations: 31.94 kB / 492.9 MB, free: 8.887 MB / 366.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.0001338/0.252, allocations: 125.7 kB / 493 MB, free: 8.754 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.089e-05/0.2521, allocations: 11.91 kB / 493 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002016/0.2541, allocations: 0.7271 MB / 493.7 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.2541, allocations: 8 kB / 493.7 MB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.2541, allocations: 0 / 493.7 MB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.2541, allocations: 7.984 kB / 493.7 MB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003878/0.258, allocations: 1.157 MB / 494.9 MB, free: 6.766 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.258, allocations: 0 / 494.9 MB, free: 6.766 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005278/0.2586, allocations: 100 kB / 495 MB, free: 6.668 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.2586, allocations: 4 kB / 495 MB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.255e-05/0.2586, allocations: 27.95 kB / 495 MB, free: 6.637 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.314e-05/0.2587, allocations: 7.984 kB / 495 MB, free: 6.629 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.2587, allocations: 3.938 kB / 495 MB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001578/0.2603, allocations: 0.5782 MB / 495.6 MB, free: 6.012 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.358e-05/0.2603, allocations: 85.02 kB / 495.7 MB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.361e-05/0.2604, allocations: 7.984 kB / 495.7 MB, free: 5.902 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004025/0.2608, allocations: 23.97 kB / 495.7 MB, free: 5.879 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.75e-05/0.2608, allocations: 19.92 kB / 495.7 MB, free: 5.859 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.216e-05/0.2609, allocations: 27.95 kB / 495.8 MB, free: 5.832 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.8e-05/0.2609, allocations: 87.2 kB / 495.9 MB, free: 5.746 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2609, allocations: 4 kB / 495.9 MB, free: 5.742 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001527/0.2625, allocations: 0.6483 MB / 496.5 MB, free: 5.094 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.002754/0.2652, allocations: 294.9 kB / 496.8 MB, free: 4.793 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001081/0.2663, allocations: 447.6 kB / 497.2 MB, free: 4.355 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2663, allocations: 0 / 497.2 MB, free: 4.355 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004856/0.2668, allocations: 203.7 kB / 497.4 MB, free: 4.156 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002876/0.2671, allocations: 15.98 kB / 497.4 MB, free: 4.141 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00223/0.2694, allocations: 0.5219 MB / 498 MB, free: 3.574 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002291/0.2696, allocations: 0.6926 MB / 498.7 MB, free: 2.852 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00039/0.27, allocations: 120.9 kB / 498.8 MB, free: 2.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002966/0.2703, allocations: 91.28 kB / 498.9 MB, free: 2.641 MB / 366.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2703, allocations: 0 / 498.9 MB, free: 2.641 MB / 366.1 MB Notification: Performance of Templates: time 0.2317/0.502, allocations: 57.38 MB / 0.5432 GB, free: 14.61 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches