Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002684/0.002684, allocations: 363.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 4.117/4.117, allocations: 388.9 MB / 405.6 MB, free: 47.98 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003522/0.003521, allocations: 228.7 kB / 451 MB, free: 2.457 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.8002/0.8002, allocations: 80 MB / 0.5627 GB, free: 35.37 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005144/0.0005147, allocations: 8 kB / 0.6265 GB, free: 1.945 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4528/0.4533, allocations: 54.86 MB / 0.6801 GB, free: 41.16 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2096/0.663, allocations: 81.4 MB / 0.7596 GB, free: 14.09 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003718/0.6634, allocations: 72.94 kB / 0.7596 GB, free: 14.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01457/0.678, allocations: 2.34 MB / 0.7619 GB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.787e-06/0.6781, allocations: 3.375 kB / 0.7619 GB, free: 11.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.177e-05/0.6781, allocations: 4 kB / 0.7619 GB, free: 11.73 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.00102/0.6792, allocations: 410.9 kB / 0.7623 GB, free: 11.28 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.957e-05/0.6793, allocations: 12.03 kB / 0.7623 GB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.847e-05/0.6794, allocations: 11.81 kB / 0.7623 GB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003738/0.6797, allocations: 202.8 kB / 0.7625 GB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.6798, allocations: 10.48 kB / 0.7625 GB, free: 11.01 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.193e-05/0.6799, allocations: 16 kB / 0.7626 GB, free: 10.99 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005519/0.6805, allocations: 124.5 kB / 0.7627 GB, free: 10.87 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.332e-05/0.6805, allocations: 0 / 0.7627 GB, free: 10.87 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.369e-05/0.6806, allocations: 8 kB / 0.7627 GB, free: 10.86 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.769e-05/0.6806, allocations: 15.72 kB / 0.7627 GB, free: 10.85 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000474/0.6811, allocations: 79.95 kB / 0.7628 GB, free: 10.77 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001357/0.6825, allocations: 471.4 kB / 0.7632 GB, free: 10.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005473/0.6831, allocations: 115 kB / 0.7633 GB, free: 10.14 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002869/0.6834, allocations: 61.61 kB / 0.7634 GB, free: 10.08 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.374e-05/0.6834, allocations: 9.438 kB / 0.7634 GB, free: 10.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.108e-05/0.6835, allocations: 30.56 kB / 0.7634 GB, free: 10.04 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 4.488e-06/0.6835, allocations: 0.6875 kB / 0.7634 GB, free: 10.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.00329/0.6868, allocations: 0.8231 MB / 0.7642 GB, free: 9.125 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.063e-05/0.687, allocations: 51.41 kB / 0.7643 GB, free: 9.062 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002551/0.6872, allocations: 143.6 kB / 0.7644 GB, free: 8.914 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.119e-05/0.6873, allocations: 34.45 kB / 0.7645 GB, free: 8.875 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.6874, allocations: 116.3 kB / 0.7646 GB, free: 8.758 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.6876, allocations: 67.53 kB / 0.7646 GB, free: 8.691 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.944e-05/0.6876, allocations: 4.531 kB / 0.7646 GB, free: 8.688 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.6878, allocations: 323.5 kB / 0.7649 GB, free: 8.363 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000254/0.6881, allocations: 49.64 kB / 0.765 GB, free: 8.312 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003019/0.6884, allocations: 77.28 kB / 0.7651 GB, free: 8.227 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002979/0.6887, allocations: 57.98 kB / 0.7651 GB, free: 8.172 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.6887, allocations: 0 / 0.7651 GB, free: 8.172 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0009847/0.6898, allocations: 218.1 kB / 0.7653 GB, free: 7.949 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.967e-05/0.6898, allocations: 4 kB / 0.7653 GB, free: 7.945 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/0.6898, allocations: 0 / 0.7653 GB, free: 7.945 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003566/0.6902, allocations: 40.78 kB / 0.7654 GB, free: 7.902 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004229/0.6907, allocations: 41.22 kB / 0.7654 GB, free: 7.863 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002903/0.6936, allocations: 1.549 MB / 0.7669 GB, free: 6.188 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002293/0.6939, allocations: 14.34 kB / 0.7669 GB, free: 6.176 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.908e-05/0.694, allocations: 8 kB / 0.7669 GB, free: 6.168 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002362/0.6942, allocations: 129.8 kB / 0.7671 GB, free: 6.031 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.316e-05/0.6943, allocations: 15.81 kB / 0.7671 GB, free: 6.016 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.586e-05/0.6944, allocations: 21.19 kB / 0.7671 GB, free: 5.996 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.6944, allocations: 3.984 kB / 0.7671 GB, free: 5.992 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.6945, allocations: 0 / 0.7671 GB, free: 5.992 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.6945, allocations: 4 kB / 0.7671 GB, free: 5.988 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001413/0.6959, allocations: 0.5573 MB / 0.7677 GB, free: 5.371 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.6959, allocations: 0 / 0.7677 GB, free: 5.371 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003227/0.6963, allocations: 44.52 kB / 0.7677 GB, free: 5.328 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000185/0.6965, allocations: 30.16 kB / 0.7677 GB, free: 5.297 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.013e-05/0.6965, allocations: 3.984 kB / 0.7677 GB, free: 5.293 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00151/0.698, allocations: 1.371 MB / 0.7691 GB, free: 3.793 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.6981, allocations: 1.875 kB / 0.7691 GB, free: 3.793 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008191/0.6989, allocations: 359 kB / 0.7694 GB, free: 3.422 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.237e-05/0.699, allocations: 85.89 kB / 0.7695 GB, free: 3.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.987e-05/0.699, allocations: 4 kB / 0.7695 GB, free: 3.316 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001463/0.6992, allocations: 4 kB / 0.7695 GB, free: 3.312 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.188e-05/0.6993, allocations: 19.97 kB / 0.7695 GB, free: 3.293 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.6993, allocations: 4 kB / 0.7695 GB, free: 3.289 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001166/0.6994, allocations: 108.4 kB / 0.7696 GB, free: 3.184 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6995, allocations: 64 / 0.7696 GB, free: 3.184 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004773/0.6999, allocations: 48 kB / 0.7697 GB, free: 3.137 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001821/0.7001, allocations: 101.5 kB / 0.7698 GB, free: 3.031 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007653/0.7009, allocations: 269.7 kB / 0.77 GB, free: 2.762 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.942e-06/0.7009, allocations: 4.062 kB / 0.77 GB, free: 2.758 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004127/0.7014, allocations: 206.4 kB / 0.7702 GB, free: 2.543 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004715/0.7019, allocations: 15.38 kB / 0.7702 GB, free: 2.531 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/0.7031, allocations: 0.5255 MB / 0.7708 GB, free: 1.984 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/0.7035, allocations: 0.7207 MB / 0.7715 GB, free: 1.234 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.231e-05/0.7036, allocations: 12.28 kB / 0.7715 GB, free: 1.227 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.08e-05/0.7037, allocations: 15.44 kB / 0.7715 GB, free: 1.211 MB / 378.7 MB Notification: Performance of SimCode: time 1.303e-06/0.7037, allocations: 0 / 0.7715 GB, free: 1.211 MB / 378.7 MB Notification: Performance of Templates: time 0.006458/0.7102, allocations: 1.454 MB / 0.7729 GB, free: 15.81 MB / 394.7 MB