Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001117/0.001117, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001325/0.001325, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.4 MB / 246.8 MB, free: 10.58 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2799/0.2799, allocations: 46.09 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001345, allocations: 82.11 kB / 417.6 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1021, allocations: 62.44 MB / 480 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001607/0.1038, allocations: 0.5292 MB / 480.5 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006114/0.1044, allocations: 373.3 kB / 480.9 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.625e-05/0.1044, allocations: 0 / 480.9 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.295e-05/0.1045, allocations: 3.938 kB / 480.9 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.3e-05/0.1045, allocations: 4 kB / 480.9 MB, free: 4.371 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000362/0.1049, allocations: 103.7 kB / 481 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.959e-05/0.1049, allocations: 23.92 kB / 481 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.726e-05/0.105, allocations: 0 / 481 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.281e-05/0.105, allocations: 23.91 kB / 481.1 MB, free: 4.223 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.608e-05/0.105, allocations: 15.92 kB / 481.1 MB, free: 4.207 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.521e-05/0.1051, allocations: 4 kB / 481.1 MB, free: 4.203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001898/0.1053, allocations: 107.9 kB / 481.2 MB, free: 4.098 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.428e-05/0.1053, allocations: 19.91 kB / 481.2 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.255e-05/0.1053, allocations: 11.94 kB / 481.2 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001639/0.1055, allocations: 100 kB / 481.3 MB, free: 3.969 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.1055, allocations: 0 / 481.3 MB, free: 3.969 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1055, allocations: 0 / 481.3 MB, free: 3.969 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.1055, allocations: 0 / 481.3 MB, free: 3.969 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.0003838/0.1059, allocations: 367.4 kB / 481.7 MB, free: 3.559 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.106, allocations: 12.03 kB / 481.7 MB, free: 3.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.917e-05/0.106, allocations: 4.844 kB / 481.7 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.1061, allocations: 176.3 kB / 481.9 MB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.1061, allocations: 384 / 481.9 MB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.341e-05/0.1061, allocations: 8.359 kB / 481.9 MB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001126/0.1063, allocations: 54.19 kB / 481.9 MB, free: 3.266 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.1063, allocations: 192 / 481.9 MB, free: 3.266 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.143e-05/0.1063, allocations: 7.938 kB / 481.9 MB, free: 3.258 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.1063, allocations: 4 kB / 481.9 MB, free: 3.254 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.24e-05/0.1064, allocations: 31.91 kB / 482 MB, free: 3.223 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001616/0.1065, allocations: 165.6 kB / 482.1 MB, free: 3.012 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000193/0.1067, allocations: 62.55 kB / 482.2 MB, free: 2.941 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.188e-05/0.1068, allocations: 24.86 kB / 482.2 MB, free: 2.914 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002421/0.1071, allocations: 105.1 kB / 482.3 MB, free: 2.793 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.918e-05/0.1071, allocations: 30.84 kB / 482.4 MB, free: 2.754 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 3.286e-06/0.1071, allocations: 0 / 482.4 MB, free: 2.754 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.04337/0.1505, allocations: 2.585 MB / 484.9 MB, free: 140 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.236e-05/0.1505, allocations: 59.34 kB / 485 MB, free: 68 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.654e-05/0.1506, allocations: 105.8 kB / 485.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.902e-05/0.1507, allocations: 29.7 kB / 485.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.024e-05/0.1507, allocations: 80.14 kB / 485.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.281e-05/0.1508, allocations: 59.11 kB / 485.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001243/0.1509, allocations: 65.67 kB / 485.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.151, allocations: 314.8 kB / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000381/0.1514, allocations: 179.9 kB / 485.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003623/0.1518, allocations: 175.9 kB / 486 MB, free: 15.04 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009993/0.1528, allocations: 414.9 kB / 486.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-06/0.1528, allocations: 0 / 486.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001028/0.1539, allocations: 461.3 kB / 486.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.1539, allocations: 8 kB / 486.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.1539, allocations: 0 / 486.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.1539, allocations: 0 / 486.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003751/0.1543, allocations: 67.94 kB / 486.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.1543, allocations: 0 / 486.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002251/0.1545, allocations: 23.97 kB / 486.9 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.505e-05/0.1546, allocations: 15.98 kB / 487 MB, free: 14.07 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.0001166/0.1547, allocations: 129.7 kB / 487.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.162e-05/0.1548, allocations: 7.906 kB / 487.1 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001261/0.156, allocations: 0.5395 MB / 487.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.156, allocations: 4 kB / 487.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.156, allocations: 0 / 487.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1561, allocations: 0 / 487.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002069/0.1581, allocations: 0.8927 MB / 488.5 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.1581, allocations: 4.188 kB / 488.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002806/0.1584, allocations: 67.94 kB / 488.6 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.1584, allocations: 256 / 488.6 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.816e-05/0.1585, allocations: 16 kB / 488.6 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.562e-06/0.1585, allocations: 11.98 kB / 488.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.1585, allocations: 3.938 kB / 488.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008921/0.1594, allocations: 464.3 kB / 489.1 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.475e-05/0.1594, allocations: 85.02 kB / 489.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.663e-05/0.1595, allocations: 4 kB / 489.2 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/0.1597, allocations: 15.98 kB / 489.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.879e-05/0.1597, allocations: 24.38 kB / 489.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.568e-05/0.1598, allocations: 12 kB / 489.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.77e-05/0.1598, allocations: 87.27 kB / 489.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1598, allocations: 0 / 489.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008162/0.1606, allocations: 316 kB / 489.6 MB, free: 11.28 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.00126/0.1619, allocations: 238.9 kB / 489.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008104/0.1627, allocations: 351.7 kB / 490.2 MB, free: 10.69 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1627, allocations: 0 / 490.2 MB, free: 10.69 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003425/0.1631, allocations: 147.8 kB / 490.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002684/0.1634, allocations: 8 kB / 490.3 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001243/0.1646, allocations: 422.7 kB / 490.8 MB, free: 10.08 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002404/0.1649, allocations: 0.6926 MB / 491.4 MB, free: 9.355 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003582/0.1652, allocations: 92.88 kB / 491.5 MB, free: 9.266 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001866/0.1654, allocations: 47.41 kB / 491.6 MB, free: 9.219 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1654, allocations: 8 kB / 491.6 MB, free: 9.211 MB / 366.1 MB Notification: Performance of Templates: time 0.02202/0.1875, allocations: 17.77 MB / 0.4974 GB, free: 7.457 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches