Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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.1_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002612/0.002616, allocations: 347.2 kB / 15.93 MB, free: 6.219 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.483/3.483, allocations: 341.5 MB / 358.2 MB, free: 12.55 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003553/0.003553, allocations: 218.2 kB / 397.9 MB, free: 4.895 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4699/0.4699, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004582/0.0004585, allocations: 12 kB / 0.5592 GB, free: 53.46 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08593/0.08641, allocations: 48.71 MB / 0.6067 GB, free: 4.641 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3894/0.4759, allocations: 73.16 MB / 0.6782 GB, free: 39.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002356/0.4762, allocations: 67.97 kB / 0.6782 GB, free: 39.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007352/0.4835, allocations: 1.789 MB / 0.68 GB, free: 37.78 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.4836, allocations: 0 / 0.68 GB, free: 37.78 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.4836, allocations: 0 / 0.68 GB, free: 37.78 MB / 362.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.0003385/0.484, allocations: 367.1 kB / 0.6803 GB, free: 37.38 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.484, allocations: 12.03 kB / 0.6803 GB, free: 37.37 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.114e-05/0.4841, allocations: 3.906 kB / 0.6804 GB, free: 37.36 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.994e-05/0.4841, allocations: 174.6 kB / 0.6805 GB, free: 37.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.821e-05/0.4842, allocations: 3.938 kB / 0.6805 GB, free: 37.15 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.95e-05/0.4842, allocations: 8 kB / 0.6805 GB, free: 37.14 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001391/0.4844, allocations: 53.67 kB / 0.6806 GB, free: 37.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.4844, allocations: 3.906 kB / 0.6806 GB, free: 37.08 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.4844, allocations: 0 / 0.6806 GB, free: 37.08 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.4844, allocations: 8.625 kB / 0.6806 GB, free: 37.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.511e-05/0.4845, allocations: 23.98 kB / 0.6806 GB, free: 37.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001663/0.4847, allocations: 178.1 kB / 0.6808 GB, free: 36.83 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002632/0.485, allocations: 55.94 kB / 0.6808 GB, free: 36.77 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.34e-05/0.4851, allocations: 31.97 kB / 0.6809 GB, free: 36.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002899/0.4854, allocations: 105.1 kB / 0.681 GB, free: 36.61 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.617e-05/0.4854, allocations: 30.56 kB / 0.681 GB, free: 36.57 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.893e-06/0.4854, allocations: 1.688 kB / 0.681 GB, free: 36.57 MB / 362.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.07334/0.5587, allocations: 2.814 MB / 0.6837 GB, free: 33.85 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.162e-05/0.5588, allocations: 51.41 kB / 0.6838 GB, free: 33.79 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.765e-05/0.5589, allocations: 113.8 kB / 0.6839 GB, free: 33.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.232e-05/0.559, allocations: 29.7 kB / 0.6839 GB, free: 33.63 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.643e-05/0.559, allocations: 80.14 kB / 0.684 GB, free: 33.55 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.671e-05/0.5591, allocations: 63.02 kB / 0.6841 GB, free: 33.48 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.894e-05/0.5592, allocations: 4 kB / 0.6841 GB, free: 33.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.32e-05/0.5592, allocations: 326.8 kB / 0.6844 GB, free: 33.15 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006625/0.5599, allocations: 183.9 kB / 0.6846 GB, free: 32.97 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006348/0.5606, allocations: 195.9 kB / 0.6847 GB, free: 32.78 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008252/0.5614, allocations: 219.4 kB / 0.685 GB, free: 32.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.5614, allocations: 0 / 0.685 GB, free: 32.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001666/0.5631, allocations: 489.8 kB / 0.6854 GB, free: 32.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.5631, allocations: 7.938 kB / 0.6854 GB, free: 32.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.5632, allocations: 4 kB / 0.6854 GB, free: 32.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.525e-05/0.5632, allocations: 0 / 0.6854 GB, free: 32.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006721/0.5639, allocations: 79.88 kB / 0.6855 GB, free: 32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.5639, allocations: 3.938 kB / 0.6855 GB, free: 31.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003763/0.5643, allocations: 31.97 kB / 0.6855 GB, free: 31.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.055e-05/0.5644, allocations: 23.94 kB / 0.6856 GB, free: 31.94 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.00014/0.5645, allocations: 115.9 kB / 0.6857 GB, free: 31.82 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.274e-05/0.5646, allocations: 7.906 kB / 0.6857 GB, free: 31.81 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002036/0.5666, allocations: 0.5794 MB / 0.6863 GB, free: 31.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.5666, allocations: 0 / 0.6863 GB, free: 31.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.5667, allocations: 0 / 0.6863 GB, free: 31.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.5667, allocations: 0 / 0.6863 GB, free: 31.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003301/0.57, allocations: 0.942 MB / 0.6872 GB, free: 30.22 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.57, allocations: 0 / 0.6872 GB, free: 30.22 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005041/0.5705, allocations: 83.83 kB / 0.6873 GB, free: 30.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.837e-06/0.5706, allocations: 4.188 kB / 0.6873 GB, free: 30.13 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.269e-05/0.5706, allocations: 16 kB / 0.6873 GB, free: 30.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.735e-06/0.5706, allocations: 7.984 kB / 0.6873 GB, free: 30.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.5707, allocations: 0 / 0.6873 GB, free: 30.11 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001475/0.5721, allocations: 492.3 kB / 0.6877 GB, free: 29.59 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.613e-05/0.5722, allocations: 85.02 kB / 0.6878 GB, free: 29.49 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.262e-05/0.5723, allocations: 4 kB / 0.6878 GB, free: 29.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000343/0.5726, allocations: 31.94 kB / 0.6879 GB, free: 29.46 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.74e-05/0.5727, allocations: 24.94 kB / 0.6879 GB, free: 29.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.591e-05/0.5727, allocations: 12 kB / 0.6879 GB, free: 29.42 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.152e-05/0.5728, allocations: 83.27 kB / 0.688 GB, free: 29.34 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5728, allocations: 4 kB / 0.688 GB, free: 29.34 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001198/0.574, allocations: 343.7 kB / 0.6883 GB, free: 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.002086/0.5761, allocations: 274.8 kB / 0.6886 GB, free: 28.72 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001386/0.5775, allocations: 371.5 kB / 0.6889 GB, free: 28.36 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.5775, allocations: 0 / 0.6889 GB, free: 28.36 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005938/0.5781, allocations: 168.2 kB / 0.6891 GB, free: 28.2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000362/0.5785, allocations: 15.94 kB / 0.6891 GB, free: 28.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002077/0.5806, allocations: 483.1 kB / 0.6896 GB, free: 27.66 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001487/0.5808, allocations: 0.6987 MB / 0.6902 GB, free: 26.94 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006091/0.5814, allocations: 96.44 kB / 0.6903 GB, free: 26.84 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002949/0.5817, allocations: 51.41 kB / 0.6904 GB, free: 26.79 MB / 362.7 MB Notification: Performance of SimCode: time 1.202e-06/0.5817, allocations: 4 kB / 0.6904 GB, free: 26.79 MB / 362.7 MB Notification: Performance of Templates: time 0.02894/0.6107, allocations: 17.35 MB / 0.7073 GB, free: 9.539 MB / 362.7 MB