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/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.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/Complex trunk/package.mo): time 0.001088/0.001088, allocations: 201.1 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 226.5 MB / 245.4 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008537/0.0008538, allocations: 99.59 kB / 297.5 MB, free: 6.684 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3906/0.3906, allocations: 44.81 MB / 394.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002869/0.0002869, allocations: 8 kB / 467.9 MB, free: 12.05 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.369/0.3693, allocations: 62.96 MB / 0.5184 GB, free: 37.64 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1313/0.5007, allocations: 86.57 MB / 0.6029 GB, free: 2.758 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003033/0.5011, allocations: 71.95 kB / 0.603 GB, free: 2.691 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009649/0.5107, allocations: 3.049 MB / 0.606 GB, free: 15.64 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.5108, allocations: 0 / 0.606 GB, free: 15.64 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.365e-06/0.5108, allocations: 4 kB / 0.606 GB, free: 15.63 MB / 426.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.0004294/0.5112, allocations: 375.2 kB / 0.6064 GB, free: 15.21 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.312e-05/0.5113, allocations: 12.88 kB / 0.6064 GB, free: 15.2 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.777e-05/0.5114, allocations: 4.844 kB / 0.6064 GB, free: 15.2 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001587/0.5115, allocations: 176.2 kB / 0.6065 GB, free: 14.99 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.5115, allocations: 384 / 0.6065 GB, free: 14.99 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.166e-05/0.5116, allocations: 8.375 kB / 0.6065 GB, free: 14.98 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001488/0.5117, allocations: 54.19 kB / 0.6066 GB, free: 14.93 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.5118, allocations: 4.094 kB / 0.6066 GB, free: 14.92 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.716e-05/0.5118, allocations: 7.938 kB / 0.6066 GB, free: 14.91 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.5118, allocations: 4 kB / 0.6066 GB, free: 14.91 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.602e-05/0.5119, allocations: 27.97 kB / 0.6066 GB, free: 14.88 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002397/0.5121, allocations: 161.7 kB / 0.6068 GB, free: 14.68 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002301/0.5124, allocations: 66.56 kB / 0.6069 GB, free: 14.6 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.237e-05/0.5124, allocations: 24.86 kB / 0.6069 GB, free: 14.57 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002511/0.5127, allocations: 113.1 kB / 0.607 GB, free: 14.45 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.386e-05/0.5127, allocations: 30.56 kB / 0.607 GB, free: 14.41 MB / 426.7 MB Notification: Performance of pre-optimization done (n=9): time 1.163e-06/0.5127, allocations: 0 / 0.607 GB, free: 14.41 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.1093/0.6221, allocations: 6.319 MB / 0.6132 GB, free: 8.051 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.798e-05/0.6222, allocations: 55.41 kB / 0.6132 GB, free: 7.984 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.571e-05/0.6223, allocations: 105.8 kB / 0.6133 GB, free: 7.871 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.17e-05/0.6223, allocations: 29.7 kB / 0.6134 GB, free: 7.836 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.933e-05/0.6224, allocations: 80.14 kB / 0.6134 GB, free: 7.754 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.744e-05/0.6224, allocations: 63.02 kB / 0.6135 GB, free: 7.691 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.173e-05/0.6225, allocations: 4 kB / 0.6135 GB, free: 7.688 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.6226, allocations: 327.2 kB / 0.6138 GB, free: 7.359 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005164/0.6231, allocations: 243.8 kB / 0.6141 GB, free: 7.121 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005112/0.6236, allocations: 247.8 kB / 0.6143 GB, free: 6.879 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001974/0.6256, allocations: 0.5882 MB / 0.6149 GB, free: 6.289 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.6256, allocations: 0 / 0.6149 GB, free: 6.289 MB / 426.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001717/0.6274, allocations: 0.6469 MB / 0.6155 GB, free: 5.637 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.6274, allocations: 4 kB / 0.6155 GB, free: 5.633 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.6274, allocations: 4 kB / 0.6155 GB, free: 5.629 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.6274, allocations: 0 / 0.6155 GB, free: 5.629 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006317/0.6281, allocations: 115.8 kB / 0.6156 GB, free: 5.516 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.6281, allocations: 4 kB / 0.6156 GB, free: 5.512 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004002/0.6285, allocations: 31.97 kB / 0.6157 GB, free: 5.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.395e-05/0.6286, allocations: 31.94 kB / 0.6157 GB, free: 5.449 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.0001609/0.6287, allocations: 121.7 kB / 0.6158 GB, free: 5.32 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.78e-05/0.6288, allocations: 7.906 kB / 0.6158 GB, free: 5.312 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002109/0.6309, allocations: 0.7655 MB / 0.6166 GB, free: 4.543 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.6309, allocations: 4 kB / 0.6166 GB, free: 4.539 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.6309, allocations: 0 / 0.6166 GB, free: 4.539 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.413e-06/0.631, allocations: 3.984 kB / 0.6166 GB, free: 4.535 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003795/0.6348, allocations: 1.215 MB / 0.6177 GB, free: 3.242 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.6348, allocations: 0 / 0.6177 GB, free: 3.242 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005155/0.6353, allocations: 116 kB / 0.6179 GB, free: 3.129 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.6353, allocations: 0 / 0.6179 GB, free: 3.129 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.445e-05/0.6354, allocations: 27.95 kB / 0.6179 GB, free: 3.102 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.6354, allocations: 0 / 0.6179 GB, free: 3.102 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.6354, allocations: 12.17 kB / 0.6179 GB, free: 3.09 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001569/0.637, allocations: 0.6088 MB / 0.6185 GB, free: 2.449 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.638e-05/0.637, allocations: 93.02 kB / 0.6186 GB, free: 2.34 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.92e-05/0.6371, allocations: 11.98 kB / 0.6186 GB, free: 2.328 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003905/0.6375, allocations: 31.97 kB / 0.6186 GB, free: 2.297 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.303e-05/0.6375, allocations: 11.98 kB / 0.6186 GB, free: 2.285 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.937e-05/0.6376, allocations: 31.95 kB / 0.6187 GB, free: 2.254 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.755e-05/0.6376, allocations: 87.27 kB / 0.6187 GB, free: 2.168 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.6376, allocations: 3.938 kB / 0.6188 GB, free: 2.164 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001698/0.6393, allocations: 0.6286 MB / 0.6194 GB, free: 1.535 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.002497/0.6418, allocations: 350.5 kB / 0.6197 GB, free: 1.184 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001153/0.643, allocations: 479.5 kB / 0.6202 GB, free: 0.7148 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.643, allocations: 0 / 0.6202 GB, free: 0.7148 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006068/0.6436, allocations: 220.1 kB / 0.6204 GB, free: 0.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002977/0.6439, allocations: 13.11 kB / 0.6204 GB, free: 0.4922 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002307/0.6463, allocations: 0.5899 MB / 0.621 GB, free: 15.85 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003368/0.6466, allocations: 0.6968 MB / 0.6216 GB, free: 15.12 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005885/0.6472, allocations: 124.9 kB / 0.6218 GB, free: 15 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002887/0.6475, allocations: 95.28 kB / 0.6218 GB, free: 14.91 MB / 442.7 MB Notification: Performance of SimCode: time 1.793e-06/0.6475, allocations: 0 / 0.6218 GB, free: 14.91 MB / 442.7 MB Notification: Performance of Templates: time 0.0671/0.7146, allocations: 51.28 MB / 0.6719 GB, free: 11.59 MB / 490.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches