Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotion2.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.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002736/0.00274, allocations: 345.2 kB / 15.94 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 4.005/4.005, allocations: 341.5 MB / 358.2 MB, free: 12.57 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.004826/0.004825, allocations: 214.1 kB / 397.8 MB, free: 4.922 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.4791/0.4791, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005061/0.0005063, allocations: 12 kB / 0.5592 GB, free: 53.46 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1032, allocations: 48.7 MB / 0.6067 GB, free: 4.652 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4293/0.5325, allocations: 96.06 MB / 0.7005 GB, free: 16.63 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002774/0.5329, allocations: 84.98 kB / 0.7006 GB, free: 16.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7869/1.32, allocations: 117 MB / 0.8149 GB, free: 85.57 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.206e-06/1.32, allocations: 3.938 kB / 0.8149 GB, free: 85.57 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004486/1.32, allocations: 114.8 kB / 0.815 GB, free: 85.56 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2023 * Number of variables: 2023 Notification: Performance of Generate backend data structure: time 0.02762/1.348, allocations: 6.209 MB / 0.8211 GB, free: 82.47 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/1.348, allocations: 9.844 kB / 0.8211 GB, free: 82.47 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04139/1.389, allocations: 5.32 MB / 0.8263 GB, free: 79.91 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01931/1.409, allocations: 6.471 MB / 0.8326 GB, free: 76.18 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004692/1.409, allocations: 444.1 kB / 0.833 GB, free: 76.01 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002908/1.412, allocations: 0.5747 MB / 0.8336 GB, free: 75.84 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04006/1.452, allocations: 13.81 MB / 0.8471 GB, free: 62.42 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004171/1.453, allocations: 95.08 kB / 0.8472 GB, free: 62.33 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002342/1.455, allocations: 274.6 kB / 0.8474 GB, free: 62.09 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002649/1.458, allocations: 1.313 MB / 0.8487 GB, free: 60.78 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03518/1.493, allocations: 11.53 MB / 0.86 GB, free: 49.25 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1039/1.597, allocations: 61.95 MB / 0.9205 GB, free: 1.754 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3706/1.968, allocations: 5.603 MB / 0.9259 GB, free: 94.09 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01203/1.98, allocations: 3.323 MB / 0.9292 GB, free: 94.05 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00107/1.981, allocations: 0.6878 MB / 0.9299 GB, free: 93.49 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.56e-05/1.981, allocations: 65.66 kB / 0.9299 GB, free: 93.45 MB / 426.7 MB Notification: Performance of pre-optimization done (n=254): time 6.602e-06/1.981, allocations: 0 / 0.9299 GB, free: 93.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=320): time 0.1758/2.157, allocations: 34.16 MB / 0.9633 GB, free: 86.69 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001452/2.157, allocations: 263.5 kB / 0.9635 GB, free: 86.41 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0135/2.171, allocations: 5.249 MB / 0.9687 GB, free: 84.64 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009426/2.172, allocations: 75.97 kB / 0.9687 GB, free: 84.57 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004269/2.176, allocations: 4.035 MB / 0.9727 GB, free: 81.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00219/2.178, allocations: 1.188 MB / 0.9738 GB, free: 80.62 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001228/2.179, allocations: 154.8 kB / 0.974 GB, free: 80.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006632/2.18, allocations: 0.6378 MB / 0.9746 GB, free: 80.05 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009053/2.189, allocations: 3.314 MB / 0.9778 GB, free: 78.88 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0128/2.202, allocations: 7.584 MB / 0.9853 GB, free: 72.08 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01182/2.214, allocations: 4.929 MB / 0.9901 GB, free: 70.27 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001774/2.214, allocations: 45 kB / 0.9901 GB, free: 70.27 MB / 426.7 MB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.0382/2.252, allocations: 12.55 MB / 1.002 GB, free: 63.06 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001109/2.253, allocations: 68 kB / 1.002 GB, free: 62.99 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001786/2.253, allocations: 149.5 kB / 1.003 GB, free: 62.85 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00899/2.262, allocations: 2.107 MB / 1.005 GB, free: 61.26 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01168/2.273, allocations: 1.761 MB / 1.006 GB, free: 59.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02744/2.301, allocations: 14.34 MB / 1.02 GB, free: 46.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00961/2.311, allocations: 447.2 kB / 1.021 GB, free: 46.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002015/2.313, allocations: 459 kB / 1.021 GB, free: 46.14 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 673 * Number of states: 0 () * Number of discrete variables: 39 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (928): * Single equations (assignments): 923 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008247/2.321, allocations: 2.811 MB / 1.024 GB, free: 43.66 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001543/2.323, allocations: 0.4898 MB / 1.024 GB, free: 43.17 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02137/2.344, allocations: 7.043 MB / 1.031 GB, free: 37.39 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.755e-05/2.344, allocations: 36 kB / 1.031 GB, free: 37.36 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.464e-05/2.344, allocations: 8 kB / 1.031 GB, free: 37.35 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.132e-05/2.344, allocations: 13.55 kB / 1.031 GB, free: 37.35 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04576/2.39, allocations: 16.01 MB / 1.047 GB, free: 22.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-05/2.39, allocations: 7.984 kB / 1.047 GB, free: 22.13 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005044/2.395, allocations: 0.5116 MB / 1.048 GB, free: 21.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008373/2.404, allocations: 1.843 MB / 1.049 GB, free: 19.77 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008892/2.404, allocations: 60 kB / 1.049 GB, free: 19.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02785/2.432, allocations: 12.83 MB / 1.062 GB, free: 6.621 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.03e-05/2.432, allocations: 8 kB / 1.062 GB, free: 6.613 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03207/2.464, allocations: 11.25 MB / 1.073 GB, free: 11.17 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007336/2.472, allocations: 1.053 MB / 1.074 GB, free: 10.09 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003474/2.475, allocations: 60 kB / 1.074 GB, free: 10.04 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009149/2.485, allocations: 208.4 kB / 1.074 GB, free: 9.832 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002004/2.487, allocations: 213.6 kB / 1.074 GB, free: 9.625 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001233/2.488, allocations: 88.53 kB / 1.074 GB, free: 9.539 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01585/2.504, allocations: 3.313 MB / 1.078 GB, free: 6.246 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.752e-06/2.504, allocations: 112 / 1.078 GB, free: 6.246 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01802/2.522, allocations: 1.497 MB / 1.079 GB, free: 4.758 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * 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 (259): * Single equations (assignments): 254 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00186/2.524, allocations: 214.5 kB / 1.079 GB, free: 4.543 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.3474/2.871, allocations: 8.271 MB / 1.087 GB, free: 101.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.177e-05/2.872, allocations: 1.969 kB / 1.087 GB, free: 101.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0141/2.886, allocations: 3.904 MB / 1.091 GB, free: 101.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008749/2.894, allocations: 0.669 MB / 1.092 GB, free: 101.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04638/2.941, allocations: 16.87 MB / 1.108 GB, free: 94.92 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01319/2.954, allocations: 4.518 MB / 1.113 GB, free: 94.05 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01339/2.968, allocations: 2.49 MB / 1.115 GB, free: 93.86 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002752/2.97, allocations: 361.1 kB / 1.116 GB, free: 93.85 MB / 442.7 MB Notification: Performance of SimCode: time 1.563e-06/2.97, allocations: 0 / 1.116 GB, free: 93.85 MB / 442.7 MB Notification: Performance of Templates: time 0.1716/3.142, allocations: 60.79 MB / 1.175 GB, free: 64.04 MB / 442.7 MB