Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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_3.2.2_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002712/0.002711, allocations: 361 kB / 15.95 MB, free: 6.203 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 4.06/4.06, allocations: 388.9 MB / 405.6 MB, free: 9.594 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003571/0.003571, allocations: 223.2 kB / 451 MB, free: 145 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5398/0.5398, allocations: 80.02 MB / 0.5627 GB, free: 19.77 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004603/0.0004607, allocations: 15.98 kB / 0.6265 GB, free: 96.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1067, allocations: 54.86 MB / 0.6801 GB, free: 41.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4798/0.5865, allocations: 79.54 MB / 0.7578 GB, free: 5.805 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002478/0.5868, allocations: 67.34 kB / 0.7578 GB, free: 5.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007547/0.5944, allocations: 1.8 MB / 0.7596 GB, free: 4.219 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.5944, allocations: 0 / 0.7596 GB, free: 4.219 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.345e-06/0.5944, allocations: 4 kB / 0.7596 GB, free: 4.215 MB / 346.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.0003684/0.5948, allocations: 365.8 kB / 0.7599 GB, free: 3.816 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.5949, allocations: 8.031 kB / 0.7599 GB, free: 3.809 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.486e-05/0.5949, allocations: 7.906 kB / 0.7599 GB, free: 3.801 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.038e-05/0.595, allocations: 163 kB / 0.7601 GB, free: 3.602 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.595, allocations: 4 kB / 0.7601 GB, free: 3.598 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.75e-05/0.5951, allocations: 7.125 kB / 0.7601 GB, free: 3.594 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001788/0.5953, allocations: 56.8 kB / 0.7602 GB, free: 3.539 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.5953, allocations: 3.906 kB / 0.7602 GB, free: 3.535 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.464e-05/0.5953, allocations: 7.953 kB / 0.7602 GB, free: 3.527 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.5953, allocations: 4.438 kB / 0.7602 GB, free: 3.523 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.489e-05/0.5954, allocations: 27.11 kB / 0.7602 GB, free: 3.504 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001917/0.5956, allocations: 172.3 kB / 0.7604 GB, free: 3.293 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002932/0.5959, allocations: 53.97 kB / 0.7604 GB, free: 3.238 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.759e-05/0.596, allocations: 27.91 kB / 0.7604 GB, free: 3.215 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003355/0.5964, allocations: 109.1 kB / 0.7605 GB, free: 3.09 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.079e-05/0.5964, allocations: 39.38 kB / 0.7606 GB, free: 3.047 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 3.066e-06/0.5964, allocations: 3.938 kB / 0.7606 GB, free: 3.043 MB / 346.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.07656/0.673, allocations: 2.805 MB / 0.7633 GB, free: 476 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.753e-05/0.6731, allocations: 59.36 kB / 0.7634 GB, free: 404 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.492e-05/0.6732, allocations: 98.27 kB / 0.7635 GB, free: 300 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.165e-05/0.6732, allocations: 33.64 kB / 0.7635 GB, free: 264 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.018e-05/0.6733, allocations: 84.12 kB / 0.7636 GB, free: 176 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.171e-05/0.6734, allocations: 65.45 kB / 0.7637 GB, free: 120 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.941e-05/0.6734, allocations: 0 / 0.7637 GB, free: 120 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.6736, allocations: 329.8 kB / 0.764 GB, free: 15.79 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007107/0.6743, allocations: 189.4 kB / 0.7641 GB, free: 15.67 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007128/0.675, allocations: 183.6 kB / 0.7643 GB, free: 15.55 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009584/0.676, allocations: 220.5 kB / 0.7645 GB, free: 15.41 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.471e-06/0.676, allocations: 7.891 kB / 0.7645 GB, free: 15.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001936/0.678, allocations: 490.1 kB / 0.765 GB, free: 15.05 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.112e-05/0.6781, allocations: 14.23 kB / 0.765 GB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/0.6781, allocations: 4 kB / 0.765 GB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.6781, allocations: 0 / 0.765 GB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007172/0.6788, allocations: 75.94 kB / 0.7651 GB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.243e-05/0.6789, allocations: 4 kB / 0.7651 GB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004117/0.6793, allocations: 31.53 kB / 0.7651 GB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.875e-05/0.6794, allocations: 19.92 kB / 0.7652 GB, free: 14.92 MB / 362.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.0001775/0.6796, allocations: 122.3 kB / 0.7653 GB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.907e-05/0.6796, allocations: 7.906 kB / 0.7653 GB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002306/0.682, allocations: 0.5676 MB / 0.7658 GB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.276e-06/0.682, allocations: 4 kB / 0.7658 GB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.245e-05/0.682, allocations: 11.92 kB / 0.7658 GB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.682, allocations: 0 / 0.7658 GB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003775/0.6858, allocations: 0.9456 MB / 0.7668 GB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.6859, allocations: 4.188 kB / 0.7668 GB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005486/0.6864, allocations: 75.88 kB / 0.7668 GB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.085e-05/0.6865, allocations: 4 kB / 0.7668 GB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.417e-05/0.6865, allocations: 15.62 kB / 0.7669 GB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.6865, allocations: 0 / 0.7669 GB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.6866, allocations: 4 kB / 0.7669 GB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001669/0.6882, allocations: 496.8 kB / 0.7673 GB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.631e-05/0.6883, allocations: 89 kB / 0.7674 GB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.486e-05/0.6884, allocations: 6.938 kB / 0.7674 GB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003582/0.6888, allocations: 23.98 kB / 0.7675 GB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.429e-05/0.6888, allocations: 15.67 kB / 0.7675 GB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.492e-05/0.6889, allocations: 19.98 kB / 0.7675 GB, free: 12.7 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.896e-05/0.689, allocations: 86.77 kB / 0.7676 GB, free: 12.62 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.689, allocations: 0 / 0.7676 GB, free: 12.62 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001393/0.6904, allocations: 342.2 kB / 0.7679 GB, free: 12.29 MB / 362.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.002162/0.6925, allocations: 282 kB / 0.7682 GB, free: 12.01 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001567/0.6941, allocations: 371.7 kB / 0.7685 GB, free: 11.74 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.6942, allocations: 0 / 0.7685 GB, free: 11.74 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006676/0.6948, allocations: 163 kB / 0.7687 GB, free: 11.61 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004185/0.6953, allocations: 12.2 kB / 0.7687 GB, free: 11.6 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002282/0.6976, allocations: 489.1 kB / 0.7692 GB, free: 11.12 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.6979, allocations: 0.7006 MB / 0.7698 GB, free: 10.39 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006416/0.6986, allocations: 97.31 kB / 0.7699 GB, free: 10.29 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003154/0.6989, allocations: 47.41 kB / 0.77 GB, free: 10.24 MB / 362.7 MB Notification: Performance of SimCode: time 1.293e-06/0.6989, allocations: 0 / 0.77 GB, free: 10.24 MB / 362.7 MB Notification: Performance of Templates: time 0.0372/0.7361, allocations: 17.35 MB / 0.7869 GB, free: 8.926 MB / 378.7 MB