Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.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.Rotational.AllComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|accelerate.phi|accelerate.w|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|gear2_1.phi_rel|gear2_1.w_rel|inertia13.phi|inertia13.w|inertia14.phi|inertia14.w|inertia15.phi|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia8.phi|inertia8.w|position.phi|position.w|speed.phi|speed.w|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|gear2_1.lossyGear.mode|lossyGear.mode",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.00421/0.004216, 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.896/3.896, allocations: 341.5 MB / 358.2 MB, free: 12.56 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.00363/0.00363, allocations: 218.1 kB / 397.8 MB, free: 4.906 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.6639/0.6639, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006985/0.0006987, allocations: 12 kB / 0.5592 GB, free: 53.46 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1268, allocations: 48.7 MB / 0.6067 GB, free: 4.652 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5689/0.6958, allocations: 91.97 MB / 0.6965 GB, free: 20.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002878/0.6962, allocations: 74.94 kB / 0.6966 GB, free: 20.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2132/0.9094, allocations: 44.23 MB / 0.7398 GB, free: 8.863 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.096e-06/0.9095, allocations: 0 / 0.7398 GB, free: 8.863 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001802/0.9097, allocations: 47.98 kB / 0.7398 GB, free: 8.816 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 515 * Number of variables: 515 Notification: Performance of Generate backend data structure: time 0.01146/0.9212, allocations: 2.386 MB / 0.7422 GB, free: 6.371 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.9212, allocations: 8.031 kB / 0.7422 GB, free: 6.363 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002119/0.9234, allocations: 285 kB / 0.7425 GB, free: 6.082 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003522/0.9269, allocations: 0.9391 MB / 0.7434 GB, free: 5.086 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001236/0.9282, allocations: 411.3 kB / 0.7438 GB, free: 4.645 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001059/0.9293, allocations: 223.7 kB / 0.744 GB, free: 4.426 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01006/0.9394, allocations: 2.428 MB / 0.7463 GB, free: 1.918 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002039/0.9397, allocations: 27.7 kB / 0.7464 GB, free: 1.891 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004195/0.9401, allocations: 84 kB / 0.7465 GB, free: 1.809 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.243e-05/0.9402, allocations: 48 kB / 0.7465 GB, free: 1.762 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01136/0.9516, allocations: 2.5 MB / 0.7489 GB, free: 15.27 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02186/0.9735, allocations: 6.167 MB / 0.755 GB, free: 9.008 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008056/0.9816, allocations: 2.303 MB / 0.7572 GB, free: 6.613 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005568/0.9872, allocations: 1.318 MB / 0.7585 GB, free: 5.289 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003434/0.9876, allocations: 38.28 kB / 0.7585 GB, free: 5.25 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.625e-05/0.9877, allocations: 72.64 kB / 0.7586 GB, free: 5.172 MB / 410.7 MB Notification: Performance of pre-optimization done (n=260): time 6.532e-06/0.9877, allocations: 0 / 0.7586 GB, free: 5.172 MB / 410.7 MB Notification: Performance of matching and sorting (n=315): time 0.3594/1.347, allocations: 12.9 MB / 0.7712 GB, free: 97.59 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001492/1.347, allocations: 244.2 kB / 0.7714 GB, free: 97.33 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00362/1.351, allocations: 1.059 MB / 0.7725 GB, free: 97.18 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008711/1.352, allocations: 96.53 kB / 0.7726 GB, free: 97.14 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00107/1.353, allocations: 0.647 MB / 0.7732 GB, free: 96.93 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002029/1.355, allocations: 1.057 MB / 0.7742 GB, free: 96.38 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004651/1.356, allocations: 66.34 kB / 0.7743 GB, free: 96.38 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002817/1.356, allocations: 415.7 kB / 0.7747 GB, free: 96.07 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006185/1.362, allocations: 1.065 MB / 0.7757 GB, free: 96.06 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006823/1.369, allocations: 1.457 MB / 0.7772 GB, free: 95.74 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00596/1.375, allocations: 1.086 MB / 0.7782 GB, free: 95.71 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.87e-05/1.375, allocations: 3.312 kB / 0.7782 GB, free: 95.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=382) (initialization): time 0.0191/1.394, allocations: 3.573 MB / 0.7817 GB, free: 95.45 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.898e-05/1.394, allocations: 7.625 kB / 0.7817 GB, free: 95.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.656e-05/1.394, allocations: 13.83 kB / 0.7817 GB, free: 95.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004799/1.399, allocations: 1.234 MB / 0.7829 GB, free: 95.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005528/1.405, allocations: 0.666 MB / 0.7836 GB, free: 95.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01385/1.419, allocations: 7.525 MB / 0.7909 GB, free: 90.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004061/1.423, allocations: 276 kB / 0.7912 GB, free: 90.67 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006212/1.423, allocations: 119.1 kB / 0.7913 GB, free: 90.65 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 38 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (313): * Single equations (assignments): 308 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.001727/1.425, allocations: 465.8 kB / 0.7918 GB, free: 90.36 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008313/1.426, allocations: 206.5 kB / 0.7919 GB, free: 90.25 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002281/1.428, allocations: 0.7013 MB / 0.7926 GB, free: 89.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.039e-05/1.428, allocations: 32.59 kB / 0.7927 GB, free: 89.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.485e-05/1.428, allocations: 6.531 kB / 0.7927 GB, free: 89.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.585e-05/1.428, allocations: 15.58 kB / 0.7927 GB, free: 89.9 MB / 410.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02797/1.456, allocations: 7.497 MB / 0.8 GB, free: 86.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.023e-05/1.457, allocations: 7.844 kB / 0.8 GB, free: 86.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005459/1.462, allocations: 0.6392 MB / 0.8006 GB, free: 86.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004298/1.466, allocations: 1.216 MB / 0.8018 GB, free: 86.31 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007517/1.467, allocations: 101.9 kB / 0.8019 GB, free: 86.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01504/1.482, allocations: 10.15 MB / 0.8118 GB, free: 77.73 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.668e-06/1.482, allocations: 11.56 kB / 0.8118 GB, free: 77.72 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01939/1.502, allocations: 5.611 MB / 0.8173 GB, free: 75.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002047/1.504, allocations: 0.5181 MB / 0.8178 GB, free: 74.79 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007797/1.505, allocations: 80.44 kB / 0.8179 GB, free: 74.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003826/1.508, allocations: 264.3 kB / 0.8182 GB, free: 74.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001531/1.51, allocations: 429.7 kB / 0.8186 GB, free: 74.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004617/1.511, allocations: 126.1 kB / 0.8187 GB, free: 74.59 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001682/1.512, allocations: 0.7095 MB / 0.8194 GB, free: 74.31 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.71e-07/1.512, allocations: 4 kB / 0.8194 GB, free: 74.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004515/1.517, allocations: 0.712 MB / 0.8201 GB, free: 74.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 27 (inertia14.phi,inertia14.w,constantSpeed.phi,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (250): * Single equations (assignments): 243 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 2} * Non-linear torn systems: 5 {2 21,1 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001033/1.518, allocations: 283.5 kB / 0.8204 GB, free: 74.03 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01098/1.529, allocations: 3.266 MB / 0.8235 GB, free: 72.77 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-05/1.529, allocations: 4.062 kB / 0.8235 GB, free: 72.77 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009412/1.538, allocations: 2.667 MB / 0.8262 GB, free: 71.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004323/1.543, allocations: 337.2 kB / 0.8265 GB, free: 71.36 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02013/1.563, allocations: 6.978 MB / 0.8333 GB, free: 67.29 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001317/1.564, allocations: 1.548 MB / 0.8348 GB, free: 66.51 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002224/1.567, allocations: 299.3 kB / 0.8351 GB, free: 66.46 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001027/1.568, allocations: 176.8 kB / 0.8353 GB, free: 66.38 MB / 410.7 MB Notification: Performance of SimCode: time 1.433e-06/1.568, allocations: 0 / 0.8353 GB, free: 66.38 MB / 410.7 MB Notification: Performance of Templates: time 0.1029/1.671, allocations: 34.51 MB / 0.869 GB, free: 37.74 MB / 410.7 MB