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.0008556/0.0008556, allocations: 93.78 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009129/0.0009131, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.7 MB / 246.8 MB, free: 9.773 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1988/0.1988, allocations: 46.18 MB / 345.2 MB, free: 11.18 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002698/0.0002699, allocations: 4 kB / 419.5 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1122, allocations: 63.56 MB / 483.1 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0007697/0.113, allocations: 261.3 kB / 483.3 MB, free: 3.875 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008016/0.1139, allocations: 382.9 kB / 483.7 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.539e-05/0.1139, allocations: 0 / 483.7 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.002e-05/0.114, allocations: 3.938 kB / 483.7 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.968e-05/0.114, allocations: 0 / 483.7 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004479/0.1145, allocations: 79.8 kB / 483.8 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.349e-05/0.1145, allocations: 19.97 kB / 483.8 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.09e-05/0.1146, allocations: 4 kB / 483.8 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.394e-05/0.1146, allocations: 15.92 kB / 483.8 MB, free: 3.379 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.473e-05/0.1147, allocations: 19.92 kB / 483.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.433e-05/0.1147, allocations: 0 / 483.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002506/0.115, allocations: 115.9 kB / 484 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.443e-05/0.115, allocations: 11.92 kB / 484 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.313e-05/0.1151, allocations: 37.64 kB / 484 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002178/0.1153, allocations: 103.7 kB / 484.1 MB, free: 3.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.1153, allocations: 0 / 484.1 MB, free: 3.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1153, allocations: 0 / 484.1 MB, free: 3.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.1153, allocations: 0 / 484.1 MB, free: 3.09 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.0005293/0.1159, allocations: 363 kB / 484.5 MB, free: 2.688 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.348e-05/0.1159, allocations: 16.03 kB / 484.5 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.22e-05/0.116, allocations: 0.9375 kB / 484.5 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001694/0.1162, allocations: 172.2 kB / 484.7 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.1162, allocations: 384 / 484.7 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.314e-05/0.1162, allocations: 4.375 kB / 484.7 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001584/0.1164, allocations: 54.23 kB / 484.7 MB, free: 2.402 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.053e-05/0.1164, allocations: 8.125 kB / 484.7 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.614e-05/0.1164, allocations: 7.938 kB / 484.7 MB, free: 2.387 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.1165, allocations: 0 / 484.7 MB, free: 2.387 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.052e-05/0.1165, allocations: 23.98 kB / 484.8 MB, free: 2.363 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002631/0.1168, allocations: 169.7 kB / 484.9 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002567/0.1171, allocations: 54.84 kB / 485 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.308e-05/0.1172, allocations: 32.78 kB / 485 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003394/0.1175, allocations: 117.1 kB / 485.1 MB, free: 1.918 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.732e-05/0.1176, allocations: 34.56 kB / 485.2 MB, free: 1.875 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.563e-06/0.1176, allocations: 0 / 485.2 MB, free: 1.875 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.04579/0.1634, allocations: 2.836 MB / 488 MB, free: 15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.867e-05/0.1634, allocations: 55.41 kB / 488 MB, free: 14.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.843e-05/0.1635, allocations: 101.8 kB / 488.1 MB, free: 14.83 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.72e-05/0.1636, allocations: 29.7 kB / 488.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.241e-05/0.1636, allocations: 84.14 kB / 488.3 MB, free: 14.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.317e-05/0.1637, allocations: 63.11 kB / 488.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.326e-05/0.1638, allocations: 21.7 kB / 488.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.1639, allocations: 318.8 kB / 488.7 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004077/0.1643, allocations: 195.9 kB / 488.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000394/0.1647, allocations: 183.9 kB / 489 MB, free: 13.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001089/0.1658, allocations: 448.6 kB / 489.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1658, allocations: 0 / 489.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001102/0.1669, allocations: 495.9 kB / 489.9 MB, free: 13 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.1669, allocations: 4 kB / 489.9 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.167, allocations: 4 kB / 490 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.167, allocations: 0 / 490 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003928/0.1674, allocations: 83.94 kB / 490 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.1674, allocations: 3.938 kB / 490 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002246/0.1676, allocations: 23.97 kB / 490.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.889e-05/0.1677, allocations: 19.98 kB / 490.1 MB, free: 12.86 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.000135/0.1678, allocations: 117.8 kB / 490.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.82e-05/0.1679, allocations: 15.89 kB / 490.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00136/0.1692, allocations: 0.5758 MB / 490.8 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.1692, allocations: 3.984 kB / 490.8 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.1693, allocations: 0 / 490.8 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.1693, allocations: 0 / 490.8 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002284/0.1716, allocations: 0.944 MB / 491.7 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.1716, allocations: 4.469 kB / 491.7 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003216/0.1719, allocations: 84.06 kB / 491.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.263e-06/0.1719, allocations: 4.25 kB / 491.8 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.751e-05/0.172, allocations: 8 kB / 491.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.542e-06/0.172, allocations: 8 kB / 491.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.172, allocations: 7.922 kB / 491.8 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009876/0.173, allocations: 0.4908 MB / 492.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.001e-05/0.173, allocations: 89 kB / 492.4 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.461e-05/0.1731, allocations: 8 kB / 492.4 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002132/0.1733, allocations: 19.98 kB / 492.5 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.998e-05/0.1733, allocations: 19.98 kB / 492.5 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.074e-05/0.1734, allocations: 19.98 kB / 492.5 MB, free: 10.31 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.425e-05/0.1734, allocations: 87.27 kB / 492.6 MB, free: 10.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1734, allocations: 0 / 492.6 MB, free: 10.23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008935/0.1743, allocations: 308 kB / 492.9 MB, free: 9.926 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.001407/0.1757, allocations: 239 kB / 493.1 MB, free: 9.684 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000871/0.1766, allocations: 371.7 kB / 493.5 MB, free: 9.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.1766, allocations: 0 / 493.5 MB, free: 9.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003785/0.177, allocations: 160.2 kB / 493.6 MB, free: 9.164 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002965/0.1773, allocations: 19.98 kB / 493.7 MB, free: 9.145 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001384/0.1787, allocations: 495.4 kB / 494.1 MB, free: 8.613 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002957/0.179, allocations: 0.6968 MB / 494.8 MB, free: 7.887 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003888/0.1794, allocations: 92.89 kB / 494.9 MB, free: 7.793 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001847/0.1796, allocations: 51.39 kB / 495 MB, free: 7.742 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1796, allocations: 0 / 495 MB, free: 7.742 MB / 366.1 MB Notification: Performance of Templates: time 0.02394/0.2036, allocations: 17.56 MB / 0.5005 GB, free: 6.199 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