Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.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.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002757/0.002762, allocations: 361.6 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.178/4.178, allocations: 388.9 MB / 405.6 MB, free: 9.559 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.003574/0.003574, allocations: 221.8 kB / 451 MB, free: 145 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.5371/0.5371, allocations: 80.02 MB / 0.5627 GB, free: 19.77 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006442/0.0006444, allocations: 12 kB / 0.6265 GB, free: 96.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1088, allocations: 54.87 MB / 0.6801 GB, free: 41.67 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5865/0.6954, allocations: 105.7 MB / 0.7833 GB, free: 11.88 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003079/0.6957, allocations: 79.83 kB / 0.7834 GB, free: 11.84 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9537/1.649, allocations: 134.6 MB / 0.9149 GB, free: 89.8 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.246e-06/1.65, allocations: 0 / 0.9149 GB, free: 89.8 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0006998/1.65, allocations: 135.3 kB / 0.915 GB, free: 89.79 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.03503/1.685, allocations: 7.451 MB / 0.9223 GB, free: 86.93 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/1.685, allocations: 10.31 kB / 0.9223 GB, free: 86.93 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04771/1.733, allocations: 5.857 MB / 0.9281 GB, free: 86.46 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02905/1.762, allocations: 8.369 MB / 0.9362 GB, free: 85.57 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007088/1.763, allocations: 490.4 kB / 0.9367 GB, free: 85.55 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00407/1.767, allocations: 0.6543 MB / 0.9373 GB, free: 85.54 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05578/1.823, allocations: 16.53 MB / 0.9535 GB, free: 81.55 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006794/1.824, allocations: 97.34 kB / 0.9536 GB, free: 81.54 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003706/1.827, allocations: 317.6 kB / 0.9539 GB, free: 81.54 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003979/1.831, allocations: 1.578 MB / 0.9554 GB, free: 81.51 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04548/1.877, allocations: 13.5 MB / 0.9686 GB, free: 79.36 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1212/1.998, allocations: 74.09 MB / 1.041 GB, free: 17.39 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03933/2.038, allocations: 7.686 MB / 1.048 GB, free: 11.11 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009064/2.047, allocations: 3.959 MB / 1.052 GB, free: 7.57 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05089/2.098, allocations: 18.47 MB / 1.07 GB, free: 4.93 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.758e-05/2.098, allocations: 60.56 kB / 1.07 GB, free: 4.859 MB / 490.7 MB Notification: Performance of pre-optimization done (n=280): time 6.693e-06/2.098, allocations: 0 / 1.07 GB, free: 4.859 MB / 490.7 MB Notification: Performance of matching and sorting (n=361): time 0.6885/2.786, allocations: 49.56 MB / 1.119 GB, free: 96.58 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/2.787, allocations: 266.5 kB / 1.119 GB, free: 96.3 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01627/2.803, allocations: 6.069 MB / 1.125 GB, free: 95.79 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001107/2.804, allocations: 85.92 kB / 1.125 GB, free: 95.75 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005196/2.809, allocations: 4.754 MB / 1.13 GB, free: 93.62 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00257/2.812, allocations: 1.332 MB / 1.131 GB, free: 92.84 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001841/2.814, allocations: 186.3 kB / 1.131 GB, free: 92.84 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.001019/2.815, allocations: 0.6895 MB / 1.132 GB, free: 92.52 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01073/2.826, allocations: 3.78 MB / 1.136 GB, free: 92.5 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01469/2.84, allocations: 8.995 MB / 1.144 GB, free: 84.48 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0145/2.855, allocations: 5.635 MB / 1.15 GB, free: 82.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002338/2.855, allocations: 50.69 kB / 1.15 GB, free: 82.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.06223/2.917, allocations: 16.69 MB / 1.166 GB, free: 77.13 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001536/2.918, allocations: 85.41 kB / 1.166 GB, free: 77.13 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000337/2.918, allocations: 179.2 kB / 1.166 GB, free: 77.11 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02498/2.943, allocations: 4.171 MB / 1.171 GB, free: 74.25 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01364/2.957, allocations: 2.033 MB / 1.173 GB, free: 72.48 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05824/3.015, allocations: 22.15 MB / 1.194 GB, free: 53.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01206/3.027, allocations: 0.5572 MB / 1.195 GB, free: 53.12 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002379/3.03, allocations: 0.5269 MB / 1.195 GB, free: 52.61 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * Number of states: 0 () * Number of discrete variables: 63 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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 (1077): * Single equations (assignments): 1072 * 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 {(1,100.0%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01019/3.04, allocations: 3.118 MB / 1.198 GB, free: 49.88 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002203/3.042, allocations: 0.5708 MB / 1.199 GB, free: 49.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04264/3.085, allocations: 9.816 MB / 1.208 GB, free: 41.79 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.845e-05/3.085, allocations: 36 kB / 1.208 GB, free: 41.76 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.168e-05/3.085, allocations: 16 kB / 1.208 GB, free: 41.74 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.756e-05/3.085, allocations: 22.52 kB / 1.208 GB, free: 41.74 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07137/3.156, allocations: 19.19 MB / 1.227 GB, free: 23.23 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.775e-05/3.157, allocations: 0 / 1.227 GB, free: 23.23 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005142/3.162, allocations: 0.4954 MB / 1.228 GB, free: 22.73 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02311/3.185, allocations: 3.682 MB / 1.231 GB, free: 19.04 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001035/3.186, allocations: 55.98 kB / 1.231 GB, free: 18.99 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04984/3.236, allocations: 19.05 MB / 1.25 GB, free: 15.68 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.344e-06/3.236, allocations: 4 kB / 1.25 GB, free: 15.68 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4284/3.664, allocations: 14.16 MB / 1.264 GB, free: 100.4 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00518/3.669, allocations: 1.114 MB / 1.265 GB, free: 100.3 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00369/3.673, allocations: 55.52 kB / 1.265 GB, free: 100.3 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009249/3.683, allocations: 237.1 kB / 1.265 GB, free: 100.3 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001943/3.685, allocations: 228.6 kB / 1.265 GB, free: 100.3 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007327/3.685, allocations: 93.05 kB / 1.265 GB, free: 100.3 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.01162/3.697, allocations: 3.788 MB / 1.269 GB, free: 100.1 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.433e-06/3.697, allocations: 0 / 1.269 GB, free: 100.1 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01367/3.711, allocations: 1.842 MB / 1.271 GB, free: 100.1 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (264): * Single equations (assignments): 259 * 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 {(2,100.0%) 43,(1,100.0%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001455/3.712, allocations: 221.2 kB / 1.271 GB, free: 100 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.02442/3.737, allocations: 9.625 MB / 1.281 GB, free: 99.61 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.196e-05/3.737, allocations: 7.125 kB / 1.281 GB, free: 99.61 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.009618/3.746, allocations: 3.746 MB / 1.284 GB, free: 99.3 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009811/3.756, allocations: 0.7743 MB / 1.285 GB, free: 99.27 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04392/3.8, allocations: 18.39 MB / 1.303 GB, free: 92.68 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0118/3.812, allocations: 5 MB / 1.308 GB, free: 91.81 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.01364/3.826, allocations: 2.786 MB / 1.311 GB, free: 91.75 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002496/3.828, allocations: 383.6 kB / 1.311 GB, free: 91.75 MB / 0.4949 GB Notification: Performance of SimCode: time 1.413e-06/3.828, allocations: 1.969 kB / 1.311 GB, free: 91.75 MB / 0.4949 GB Notification: Performance of Templates: time 0.201/4.029, allocations: 75.63 MB / 1.385 GB, free: 52.08 MB / 0.4949 GB