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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001212/0.001212, allocations: 200.7 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 226.5 MB / 245.4 MB, free: 8.102 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008363/0.0008364, allocations: 105.5 kB / 297.5 MB, free: 6.863 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4084/0.4084, allocations: 44.82 MB / 394.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003843/0.0003845, allocations: 8 kB / 467.9 MB, free: 12.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4106/0.411, allocations: 62.95 MB / 0.5184 GB, free: 37.39 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1245/0.5356, allocations: 86.36 MB / 0.6028 GB, free: 2.934 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000216/0.5358, allocations: 71.89 kB / 0.6028 GB, free: 2.867 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004954/0.5408, allocations: 1.79 MB / 0.6046 GB, free: 1.074 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.276e-06/0.5408, allocations: 0 / 0.6046 GB, free: 1.074 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.724e-06/0.5408, allocations: 0 / 0.6046 GB, free: 1.074 MB / 410.7 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.0003889/0.5412, allocations: 367.4 kB / 0.6049 GB, free: 0.6641 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.395e-05/0.5413, allocations: 8.875 kB / 0.6049 GB, free: 0.6562 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.425e-05/0.5413, allocations: 12.84 kB / 0.6049 GB, free: 0.6445 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.5415, allocations: 168.3 kB / 0.6051 GB, free: 452 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.5415, allocations: 384 / 0.6051 GB, free: 452 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.363e-05/0.5415, allocations: 8.375 kB / 0.6051 GB, free: 444 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001322/0.5417, allocations: 58.17 kB / 0.6052 GB, free: 380 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/0.5417, allocations: 8.094 kB / 0.6052 GB, free: 372 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.5417, allocations: 3.938 kB / 0.6052 GB, free: 368 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.5417, allocations: 0 / 0.6052 GB, free: 368 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.347e-05/0.5418, allocations: 23.98 kB / 0.6052 GB, free: 344 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002069/0.542, allocations: 169.7 kB / 0.6054 GB, free: 124 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002166/0.5423, allocations: 58.59 kB / 0.6054 GB, free: 56 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.056e-05/0.5423, allocations: 28.84 kB / 0.6054 GB, free: 24 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002603/0.5426, allocations: 109.1 kB / 0.6055 GB, free: 15.9 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.413e-05/0.5426, allocations: 34.56 kB / 0.6056 GB, free: 15.86 MB / 426.7 MB Notification: Performance of pre-optimization done (n=9): time 1.313e-06/0.5426, allocations: 0 / 0.6056 GB, free: 15.86 MB / 426.7 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.03506/0.5777, allocations: 2.82 MB / 0.6083 GB, free: 13 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.909e-05/0.5778, allocations: 59.41 kB / 0.6084 GB, free: 12.93 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.18e-05/0.5779, allocations: 97.86 kB / 0.6085 GB, free: 12.83 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.465e-05/0.5779, allocations: 29.7 kB / 0.6085 GB, free: 12.79 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.51e-05/0.578, allocations: 88.12 kB / 0.6086 GB, free: 12.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.562e-05/0.5781, allocations: 63.02 kB / 0.6087 GB, free: 12.64 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.239e-05/0.5781, allocations: 4 kB / 0.6087 GB, free: 12.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.5782, allocations: 322.8 kB / 0.609 GB, free: 12.31 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003966/0.5786, allocations: 183.9 kB / 0.6091 GB, free: 12.13 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003707/0.579, allocations: 195.9 kB / 0.6093 GB, free: 11.94 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00101/0.58, allocations: 448.6 kB / 0.6098 GB, free: 11.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.58, allocations: 0 / 0.6098 GB, free: 11.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001028/0.5811, allocations: 491.9 kB / 0.6102 GB, free: 11.02 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.5811, allocations: 4 kB / 0.6102 GB, free: 11.01 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.5811, allocations: 8 kB / 0.6102 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.5811, allocations: 0 / 0.6102 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003729/0.5815, allocations: 84.34 kB / 0.6103 GB, free: 10.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.5815, allocations: 0 / 0.6103 GB, free: 10.92 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001963/0.5817, allocations: 23.98 kB / 0.6103 GB, free: 10.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.557e-05/0.5818, allocations: 15.98 kB / 0.6104 GB, free: 10.88 MB / 426.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001253/0.5819, allocations: 121.8 kB / 0.6105 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.195e-05/0.582, allocations: 11.84 kB / 0.6105 GB, free: 10.74 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00134/0.5833, allocations: 0.5758 MB / 0.611 GB, free: 10.16 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.5833, allocations: 4 kB / 0.6111 GB, free: 10.16 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.5833, allocations: 0 / 0.6111 GB, free: 10.16 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.5833, allocations: 3.938 kB / 0.6111 GB, free: 10.15 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00207/0.5854, allocations: 0.94 MB / 0.612 GB, free: 9.145 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.5854, allocations: 256 / 0.612 GB, free: 9.145 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002864/0.5857, allocations: 75.88 kB / 0.612 GB, free: 9.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.5857, allocations: 12.19 kB / 0.6121 GB, free: 9.059 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.192e-05/0.5858, allocations: 19.98 kB / 0.6121 GB, free: 9.039 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.5858, allocations: 0 / 0.6121 GB, free: 9.039 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.5858, allocations: 4 kB / 0.6121 GB, free: 9.035 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008796/0.5867, allocations: 494.7 kB / 0.6126 GB, free: 8.52 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.588e-05/0.5868, allocations: 85.02 kB / 0.6126 GB, free: 8.418 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.523e-05/0.5868, allocations: 8 kB / 0.6126 GB, free: 8.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001977/0.587, allocations: 27.97 kB / 0.6127 GB, free: 8.383 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.031e-05/0.587, allocations: 15.98 kB / 0.6127 GB, free: 8.367 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-05/0.5871, allocations: 19.98 kB / 0.6127 GB, free: 8.348 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.228e-05/0.5871, allocations: 83.28 kB / 0.6128 GB, free: 8.266 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5871, allocations: 4 kB / 0.6128 GB, free: 8.262 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009027/0.588, allocations: 343.7 kB / 0.6131 GB, free: 7.926 MB / 426.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001177/0.5892, allocations: 274.7 kB / 0.6134 GB, free: 7.645 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000772/0.59, allocations: 367.7 kB / 0.6137 GB, free: 7.285 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.59, allocations: 0 / 0.6137 GB, free: 7.285 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000335/0.5904, allocations: 168.1 kB / 0.6139 GB, free: 7.121 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002706/0.5906, allocations: 14.88 kB / 0.6139 GB, free: 7.109 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001278/0.5919, allocations: 491.3 kB / 0.6144 GB, free: 6.582 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002549/0.5922, allocations: 0.6968 MB / 0.615 GB, free: 5.855 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004069/0.5926, allocations: 92.88 kB / 0.6151 GB, free: 5.762 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001644/0.5928, allocations: 47.41 kB / 0.6152 GB, free: 5.715 MB / 426.7 MB Notification: Performance of SimCode: time 2.1e-07/0.5928, allocations: 0 / 0.6152 GB, free: 5.715 MB / 426.7 MB Notification: Performance of Templates: time 0.02542/0.6182, allocations: 17.34 MB / 0.6321 GB, free: 4.383 MB / 442.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches