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.001178/0.001178, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00134/0.00134, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2156/0.2156, allocations: 46.11 MB / 344.1 MB, free: 11.56 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 75.25 kB / 417.6 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09557/0.09703, allocations: 62.45 MB / 480 MB, free: 5.254 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001653/0.09872, allocations: 0.5222 MB / 480.5 MB, free: 4.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006943/0.09944, allocations: 413.4 kB / 480.9 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.679e-05/0.09948, allocations: 0 / 480.9 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.306e-05/0.09951, allocations: 3.938 kB / 481 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.806e-05/0.09955, allocations: 0 / 481 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004646/0.1, allocations: 139.5 kB / 481.1 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.825e-05/0.1001, allocations: 23.98 kB / 481.1 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.821e-05/0.1001, allocations: 3.984 kB / 481.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.001e-05/0.1001, allocations: 19.94 kB / 481.1 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.789e-05/0.1002, allocations: 15.92 kB / 481.1 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.005e-05/0.1002, allocations: 3.938 kB / 481.2 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002543/0.1005, allocations: 159.8 kB / 481.3 MB, free: 3.961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.456e-05/0.1005, allocations: 15.97 kB / 481.3 MB, free: 3.945 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.219e-05/0.1005, allocations: 11.88 kB / 481.3 MB, free: 3.934 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001933/0.1007, allocations: 124 kB / 481.5 MB, free: 3.812 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.1007, allocations: 0 / 481.5 MB, free: 3.812 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1008, allocations: 4 kB / 481.5 MB, free: 3.809 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.1008, allocations: 0 / 481.5 MB, free: 3.809 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.0004076/0.1012, allocations: 363.5 kB / 481.8 MB, free: 3.406 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.1012, allocations: 12.03 kB / 481.8 MB, free: 3.395 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.054e-05/0.1013, allocations: 4.875 kB / 481.8 MB, free: 3.391 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001146/0.1014, allocations: 172.2 kB / 482 MB, free: 3.184 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/0.1014, allocations: 4.312 kB / 482 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.5e-05/0.1014, allocations: 4.375 kB / 482 MB, free: 3.176 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001207/0.1016, allocations: 54.23 kB / 482.1 MB, free: 3.117 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.1016, allocations: 3.938 kB / 482.1 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.1016, allocations: 8 kB / 482.1 MB, free: 3.105 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.1016, allocations: 4 kB / 482.1 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.409e-05/0.1017, allocations: 23.98 kB / 482.1 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001837/0.1019, allocations: 177.6 kB / 482.3 MB, free: 2.855 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002124/0.1021, allocations: 58.55 kB / 482.3 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.833e-05/0.1022, allocations: 28.84 kB / 482.4 MB, free: 2.758 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002787/0.1024, allocations: 109.1 kB / 482.5 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.004e-05/0.1025, allocations: 30.56 kB / 482.5 MB, free: 2.594 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.332e-06/0.1025, allocations: 0 / 482.5 MB, free: 2.594 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.145/0.2474, allocations: 6.382 MB / 488.9 MB, free: 12.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.147e-05/0.2475, allocations: 51.41 kB / 488.9 MB, free: 12.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.187e-05/0.2476, allocations: 109.8 kB / 489 MB, free: 12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.195e-05/0.2477, allocations: 29.7 kB / 489.1 MB, free: 11.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.938e-05/0.2478, allocations: 84.14 kB / 489.1 MB, free: 11.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/0.2479, allocations: 63.09 kB / 489.2 MB, free: 11.81 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001786/0.2481, allocations: 89.58 kB / 489.3 MB, free: 11.72 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.2482, allocations: 323.2 kB / 489.6 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005713/0.2488, allocations: 223.8 kB / 489.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000576/0.2494, allocations: 236.1 kB / 490.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002164/0.2515, allocations: 0.5534 MB / 490.6 MB, free: 10.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.2515, allocations: 4 kB / 490.6 MB, free: 10.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00184/0.2534, allocations: 0.6143 MB / 491.2 MB, free: 9.766 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.2534, allocations: 4 kB / 491.2 MB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.2534, allocations: 0 / 491.2 MB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.2535, allocations: 0 / 491.2 MB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006599/0.2541, allocations: 115.8 kB / 491.4 MB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.2541, allocations: 0 / 491.4 MB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004436/0.2546, allocations: 27.95 kB / 491.4 MB, free: 9.621 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.7e-05/0.2547, allocations: 31.89 kB / 491.4 MB, free: 9.59 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.000173/0.2548, allocations: 129.7 kB / 491.5 MB, free: 9.453 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.453e-05/0.2549, allocations: 7.906 kB / 491.5 MB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002333/0.2573, allocations: 0.7306 MB / 492.3 MB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.2573, allocations: 0 / 492.3 MB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.2573, allocations: 4 kB / 492.3 MB, free: 8.707 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.2573, allocations: 0 / 492.3 MB, free: 8.707 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004067/0.2614, allocations: 1.157 MB / 493.4 MB, free: 7.477 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.2614, allocations: 0 / 493.4 MB, free: 7.477 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005531/0.262, allocations: 104 kB / 493.5 MB, free: 7.375 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.69e-06/0.262, allocations: 4 kB / 493.5 MB, free: 7.371 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.593e-05/0.262, allocations: 31.95 kB / 493.6 MB, free: 7.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.128e-06/0.2621, allocations: 4 kB / 493.6 MB, free: 7.336 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.2621, allocations: 3.938 kB / 493.6 MB, free: 7.332 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001684/0.2638, allocations: 0.5776 MB / 494.2 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.179e-05/0.2638, allocations: 89 kB / 494.2 MB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.78e-05/0.2639, allocations: 8 kB / 494.3 MB, free: 6.609 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004331/0.2643, allocations: 23.97 kB / 494.3 MB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.846e-05/0.2644, allocations: 19.92 kB / 494.3 MB, free: 6.566 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.898e-05/0.2644, allocations: 31.94 kB / 494.3 MB, free: 6.535 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.707e-05/0.2645, allocations: 83.28 kB / 494.4 MB, free: 6.453 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2645, allocations: 0 / 494.4 MB, free: 6.453 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001771/0.2662, allocations: 0.6483 MB / 495.1 MB, free: 5.805 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.2693, allocations: 295 kB / 495.3 MB, free: 5.504 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001165/0.2705, allocations: 447.5 kB / 495.8 MB, free: 5.066 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.2705, allocations: 7.938 kB / 495.8 MB, free: 5.059 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00053/0.2711, allocations: 211.7 kB / 496 MB, free: 4.852 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002975/0.2714, allocations: 8 kB / 496 MB, free: 4.844 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00226/0.2736, allocations: 0.5143 MB / 496.5 MB, free: 4.285 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000247/0.2739, allocations: 0.6964 MB / 497.2 MB, free: 3.559 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005349/0.2744, allocations: 128.9 kB / 497.3 MB, free: 3.434 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002848/0.2747, allocations: 87.28 kB / 497.4 MB, free: 3.348 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2747, allocations: 0 / 497.4 MB, free: 3.348 MB / 366.1 MB Notification: Performance of Templates: time 0.2536/0.5284, allocations: 57.4 MB / 0.5418 GB, free: 15.62 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 -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/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_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches