Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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.TestRegSquare2Derivatives,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.TestRegSquare2Derivatives") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,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.TestRegSquare2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 108.2 kB / 18.39 MB, free: 4.629 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.001124/0.001124, allocations: 182.9 kB / 19.33 MB, free: 3.699 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.306/1.306, allocations: 222.9 MB / 243 MB, free: 15.08 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.1961/0.1961, allocations: 44.19 MB / 337.4 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 63.97 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09919/0.1004, allocations: 60.83 MB / 470.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001634/0.1021, allocations: 0.5366 MB / 471.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006223/0.1027, allocations: 373.1 kB / 471.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.445e-05/0.1028, allocations: 0 / 471.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.191e-05/0.1028, allocations: 0 / 471.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.288e-05/0.1028, allocations: 7.938 kB / 471.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003802/0.1032, allocations: 107.6 kB / 471.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.2e-05/0.1033, allocations: 27.97 kB / 471.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.588e-05/0.1033, allocations: 0 / 471.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.234e-05/0.1034, allocations: 15.92 kB / 471.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.167e-05/0.1034, allocations: 15.92 kB / 471.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.239e-05/0.1034, allocations: 0 / 471.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001932/0.1036, allocations: 115.9 kB / 471.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.592e-05/0.1037, allocations: 11.92 kB / 471.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.114e-05/0.1037, allocations: 11.94 kB / 471.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000168/0.1039, allocations: 103.7 kB / 472 MB, free: 12.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1039, allocations: 0 / 472 MB, free: 12.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.867e-06/0.1039, allocations: 0 / 472 MB, free: 12.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.429e-06/0.1039, allocations: 3.938 kB / 472 MB, free: 12.34 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.0003836/0.1043, allocations: 363.4 kB / 472.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.1043, allocations: 8.031 kB / 472.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.342e-05/0.1044, allocations: 8.844 kB / 472.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000103/0.1045, allocations: 168.3 kB / 472.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.648e-06/0.1045, allocations: 8.375 kB / 472.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.463e-05/0.1045, allocations: 8.375 kB / 472.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001183/0.1046, allocations: 46.25 kB / 472.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.1047, allocations: 4.125 kB / 472.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.1047, allocations: 7.938 kB / 472.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.1047, allocations: 3.984 kB / 472.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.491e-05/0.1048, allocations: 31.97 kB / 472.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001637/0.1049, allocations: 165.6 kB / 472.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001947/0.1051, allocations: 66.58 kB / 472.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.558e-05/0.1052, allocations: 24.86 kB / 472.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002396/0.1054, allocations: 105.1 kB / 473 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.905e-05/0.1055, allocations: 34.5 kB / 473 MB, free: 11.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.202e-06/0.1055, allocations: 0 / 473 MB, free: 11.12 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.04258/0.1481, allocations: 2.568 MB / 475.6 MB, free: 8.512 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.774e-05/0.1481, allocations: 55.41 kB / 475.7 MB, free: 8.445 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.184e-05/0.1482, allocations: 105.8 kB / 475.8 MB, free: 8.332 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.332e-05/0.1482, allocations: 29.7 kB / 475.8 MB, free: 8.297 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.586e-05/0.1483, allocations: 80.14 kB / 475.9 MB, free: 8.215 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.311e-05/0.1484, allocations: 63.09 kB / 475.9 MB, free: 8.152 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.1485, allocations: 61.67 kB / 476 MB, free: 8.086 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.1486, allocations: 322.8 kB / 476.3 MB, free: 7.762 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003617/0.149, allocations: 176.4 kB / 476.5 MB, free: 7.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003592/0.1493, allocations: 179.8 kB / 476.7 MB, free: 7.414 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009828/0.1503, allocations: 419.2 kB / 477.1 MB, free: 7.004 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/0.1503, allocations: 0 / 477.1 MB, free: 7.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001002/0.1513, allocations: 453.3 kB / 477.5 MB, free: 6.555 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.1514, allocations: 15.94 kB / 477.5 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.1514, allocations: 0 / 477.5 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.1514, allocations: 0 / 477.5 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000369/0.1518, allocations: 71.94 kB / 477.6 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.1518, allocations: 3.938 kB / 477.6 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002027/0.152, allocations: 19.97 kB / 477.6 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.974e-05/0.152, allocations: 15.98 kB / 477.6 MB, free: 6.43 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.0001162/0.1522, allocations: 125.8 kB / 477.8 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.63e-05/0.1522, allocations: 7.906 kB / 477.8 MB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001191/0.1534, allocations: 0.5397 MB / 478.3 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.1534, allocations: 4 kB / 478.3 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.1534, allocations: 7.938 kB / 478.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.1534, allocations: 0 / 478.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002031/0.1555, allocations: 0.8966 MB / 479.2 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.1555, allocations: 4 kB / 479.2 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002802/0.1558, allocations: 72.06 kB / 479.3 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/0.1558, allocations: 4 kB / 479.3 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.084e-05/0.1558, allocations: 16 kB / 479.3 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.1558, allocations: 3.984 kB / 479.3 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.1558, allocations: 4 kB / 479.3 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008473/0.1567, allocations: 460.2 kB / 479.8 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.839e-05/0.1568, allocations: 89.02 kB / 479.9 MB, free: 4.082 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.659e-05/0.1568, allocations: 8 kB / 479.9 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002027/0.157, allocations: 19.97 kB / 479.9 MB, free: 4.055 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.612e-05/0.157, allocations: 15.98 kB / 479.9 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.032e-05/0.1571, allocations: 12 kB / 479.9 MB, free: 4.027 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.596e-05/0.1571, allocations: 87.27 kB / 480 MB, free: 3.941 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1571, allocations: 0 / 480 MB, free: 3.941 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007843/0.1579, allocations: 312 kB / 480.3 MB, free: 3.637 MB / 350.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.0012/0.1591, allocations: 235 kB / 480.5 MB, free: 3.395 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000774/0.1599, allocations: 343.7 kB / 480.9 MB, free: 3.059 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1599, allocations: 4 kB / 480.9 MB, free: 3.055 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003284/0.1602, allocations: 143.8 kB / 481 MB, free: 2.914 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002718/0.1605, allocations: 16 kB / 481 MB, free: 2.898 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/0.1617, allocations: 418.8 kB / 481.4 MB, free: 2.445 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002191/0.162, allocations: 0.6926 MB / 482.1 MB, free: 1.723 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002639/0.1622, allocations: 92.88 kB / 482.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001754/0.1624, allocations: 47.41 kB / 482.3 MB, free: 1.578 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1624, allocations: 3.938 kB / 482.3 MB, free: 1.574 MB / 350.1 MB Notification: Performance of Templates: time 0.02153/0.184, allocations: 17.79 MB / 0.4883 GB, free: 15.82 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches