Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.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.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Asec.y|PI.x|PID.D.x|PID.I.y|PID1.D.x|PID1.I.y|Vsec.y|Wsec.y|derivative.x|firstOrder.y|inertia.phi|inertia.w|integrator.y|limIntegrator.y|secondOrder.y|secondOrder.yd",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002726/0.002725, allocations: 359.2 kB / 15.95 MB, free: 6.207 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 3.935/3.935, allocations: 388.9 MB / 405.6 MB, free: 10.25 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.003751/0.003751, allocations: 224 kB / 451 MB, free: 145.1 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.6103/0.6103, allocations: 80.02 MB / 0.5627 GB, free: 19.84 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006661/0.0006663, allocations: 11.98 kB / 0.6265 GB, free: 96.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1016, allocations: 54.86 MB / 0.6801 GB, free: 41.7 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5492/0.6509, allocations: 88.5 MB / 0.7665 GB, free: 12.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002599/0.6512, allocations: 73.66 kB / 0.7666 GB, free: 12.88 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06127/0.7125, allocations: 13.29 MB / 0.7795 GB, free: 1.715 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.7125, allocations: 0 / 0.7795 GB, free: 1.715 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.596e-05/0.7126, allocations: 12 kB / 0.7796 GB, free: 1.703 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002774/0.7154, allocations: 0.9087 MB / 0.7804 GB, free: 0.7891 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.7155, allocations: 8.562 kB / 0.7805 GB, free: 0.7812 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002979/0.7158, allocations: 79.14 kB / 0.7805 GB, free: 0.7031 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001244/0.717, allocations: 466 kB / 0.781 GB, free: 276 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.32e-05/0.7171, allocations: 44.03 kB / 0.781 GB, free: 252 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001371/0.7173, allocations: 53.52 kB / 0.7811 GB, free: 216 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001467/0.7188, allocations: 496.8 kB / 0.7815 GB, free: 15.85 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.089e-05/0.7188, allocations: 7.906 kB / 0.7815 GB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.876e-05/0.7189, allocations: 17.94 kB / 0.7816 GB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.68e-05/0.7189, allocations: 8 kB / 0.7816 GB, free: 15.83 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001266/0.7202, allocations: 358 kB / 0.7819 GB, free: 15.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006549/0.7268, allocations: 1.781 MB / 0.7837 GB, free: 14.08 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00277/0.7296, allocations: 469.3 kB / 0.7841 GB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006924/0.7304, allocations: 185.6 kB / 0.7843 GB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.276e-05/0.7304, allocations: 5.25 kB / 0.7843 GB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.548e-05/0.7305, allocations: 33.19 kB / 0.7843 GB, free: 13.55 MB / 378.7 MB Notification: Performance of pre-optimization done (n=38): time 3.347e-06/0.7305, allocations: 0 / 0.7843 GB, free: 13.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=38): time 0.002235/0.7327, allocations: 0.56 MB / 0.7849 GB, free: 13.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.516e-05/0.7329, allocations: 110.8 kB / 0.785 GB, free: 12.98 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008404/0.7337, allocations: 457.6 kB / 0.7854 GB, free: 12.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.293e-05/0.7338, allocations: 36.95 kB / 0.7854 GB, free: 12.58 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003034/0.7342, allocations: 315.2 kB / 0.7857 GB, free: 12.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001883/0.7344, allocations: 146 kB / 0.7859 GB, free: 12.24 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.516e-05/0.7344, allocations: 10.81 kB / 0.7859 GB, free: 12.24 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000198/0.7346, allocations: 366.5 kB / 0.7862 GB, free: 11.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006996/0.7353, allocations: 174.6 kB / 0.7864 GB, free: 11.78 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007985/0.7361, allocations: 301.6 kB / 0.7867 GB, free: 11.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007753/0.7369, allocations: 194.3 kB / 0.7869 GB, free: 11.38 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.737, allocations: 0 / 0.7869 GB, free: 11.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001851/0.7388, allocations: 0.5658 MB / 0.7874 GB, free: 10.94 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001624/0.739, allocations: 195.5 kB / 0.7876 GB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.739, allocations: 4 kB / 0.7876 GB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.102e-05/0.7391, allocations: 8 kB / 0.7876 GB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009416/0.74, allocations: 131.2 kB / 0.7878 GB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.821e-05/0.7401, allocations: 8 kB / 0.7878 GB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006985/0.7408, allocations: 64.14 kB / 0.7878 GB, free: 10.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.186e-05/0.7408, allocations: 15.14 kB / 0.7878 GB, free: 10.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.008e-05/0.7409, allocations: 7.594 kB / 0.7878 GB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001428/0.7423, allocations: 477.6 kB / 0.7883 GB, free: 10.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.7423, allocations: 4 kB / 0.7883 GB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.7423, allocations: 8 kB / 0.7883 GB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008427/0.7432, allocations: 118.4 kB / 0.7884 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.7432, allocations: 4 kB / 0.7884 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00057/0.7438, allocations: 61.3 kB / 0.7885 GB, free: 9.988 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.583e-05/0.7439, allocations: 15.44 kB / 0.7885 GB, free: 9.977 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (63): * Single equations (assignments): 63 * 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.0004189/0.7443, allocations: 263.1 kB / 0.7888 GB, free: 9.742 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.7445, allocations: 59.09 kB / 0.7888 GB, free: 9.688 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001537/0.7446, allocations: 58.97 kB / 0.7889 GB, free: 9.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.305e-06/0.7446, allocations: 4 kB / 0.7889 GB, free: 9.656 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.7447, allocations: 3.984 kB / 0.7889 GB, free: 9.652 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.7447, allocations: 8 kB / 0.7889 GB, free: 9.645 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001054/0.7458, allocations: 0.5364 MB / 0.7894 GB, free: 9.184 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.177e-06/0.7458, allocations: 0 / 0.7894 GB, free: 9.184 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009698/0.7468, allocations: 99.19 kB / 0.7895 GB, free: 9.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.7468, allocations: 0 / 0.7895 GB, free: 9.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.79e-05/0.7468, allocations: 11.19 kB / 0.7895 GB, free: 9.086 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.7468, allocations: 0 / 0.7895 GB, free: 9.086 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.7469, allocations: 7.938 kB / 0.7895 GB, free: 9.078 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002217/0.7491, allocations: 0.7853 MB / 0.7903 GB, free: 8.441 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003126/0.7494, allocations: 173.4 kB / 0.7904 GB, free: 8.273 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.7495, allocations: 11.19 kB / 0.7905 GB, free: 8.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006347/0.7502, allocations: 31.41 kB / 0.7905 GB, free: 8.242 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.7503, allocations: 35.02 kB / 0.7905 GB, free: 8.211 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.795e-05/0.7504, allocations: 11.75 kB / 0.7905 GB, free: 8.203 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005523/0.7509, allocations: 311.4 kB / 0.7908 GB, free: 7.965 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.7509, allocations: 0 / 0.7908 GB, free: 7.965 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001061/0.752, allocations: 226.4 kB / 0.791 GB, free: 7.762 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.D.x,Wsec.y,Vsec.y,Asec.y) * 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 (38): * Single equations (assignments): 38 * 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.0001954/0.7522, allocations: 113.4 kB / 0.7912 GB, free: 7.648 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00237/0.7546, allocations: 0.6574 MB / 0.7918 GB, free: 7.156 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.531e-06/0.7547, allocations: 0 / 0.7918 GB, free: 7.156 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007072/0.7554, allocations: 194.5 kB / 0.792 GB, free: 7.016 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001609/0.757, allocations: 154.3 kB / 0.7921 GB, free: 6.898 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003507/0.7605, allocations: 1.568 MB / 0.7937 GB, free: 5.395 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006117/0.7612, allocations: 0.8987 MB / 0.7945 GB, free: 4.469 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006406/0.7618, allocations: 64.25 kB / 0.7946 GB, free: 4.402 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000192/0.7621, allocations: 35.44 kB / 0.7946 GB, free: 4.367 MB / 378.7 MB Notification: Performance of SimCode: time 1.222e-06/0.7621, allocations: 4 kB / 0.7946 GB, free: 4.363 MB / 378.7 MB Notification: Performance of Templates: time 0.01835/0.7804, allocations: 5.386 MB / 0.7999 GB, free: 15.05 MB / 394.7 MB