Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadModel(Modelica): time 2.034/2.034, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004114/0.0004115, allocations: 12 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09553/0.09596, allocations: 44.5 MB / 309 MB, free: 380 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4679/0.564, allocations: 94.24 MB / 403.3 MB, free: 14.32 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003578/0.5644, allocations: 96.34 kB / 403.4 MB, free: 14.3 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5509/1.115, allocations: 126.9 MB / 0.5178 GB, free: 5.332 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.394e-06/1.115, allocations: 0 / 0.5178 GB, free: 5.332 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004305/1.116, allocations: 116 kB / 0.5179 GB, free: 5.219 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: 2237 * Number of variables: 2237 Notification: Performance of Generate backend data structure: time 0.312/1.428, allocations: 6.763 MB / 0.5245 GB, free: 72.51 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.561e-05/1.428, allocations: 12.73 kB / 0.5245 GB, free: 72.51 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08872/1.517, allocations: 8.305 MB / 0.5327 GB, free: 72.09 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03624/1.553, allocations: 7.285 MB / 0.5398 GB, free: 71.73 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008139/1.554, allocations: 448.4 kB / 0.5402 GB, free: 71.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004589/1.558, allocations: 0.5874 MB / 0.5408 GB, free: 71.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06038/1.619, allocations: 15.69 MB / 0.5561 GB, free: 68.56 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004854/1.619, allocations: 70.03 kB / 0.5562 GB, free: 68.55 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003916/1.623, allocations: 281.9 kB / 0.5564 GB, free: 68.55 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003948/1.627, allocations: 1.625 MB / 0.558 GB, free: 68.54 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04065/1.668, allocations: 13.95 MB / 0.5716 GB, free: 68.48 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1301/1.798, allocations: 63.97 MB / 0.6341 GB, free: 40.86 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05378/1.852, allocations: 6.44 MB / 0.6404 GB, free: 36.35 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04936/1.901, allocations: 14.32 MB / 0.6544 GB, free: 23.72 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.402e-05/1.902, allocations: 68.25 kB / 0.6545 GB, free: 23.64 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 7.464e-06/1.902, allocations: 0 / 0.6545 GB, free: 23.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=336): time 0.5787/2.48, allocations: 42.36 MB / 0.6958 GB, free: 82.91 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/2.48, allocations: 215.2 kB / 0.696 GB, free: 82.68 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01474/2.495, allocations: 5.4 MB / 0.7013 GB, free: 82.24 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009557/2.496, allocations: 76 kB / 0.7014 GB, free: 82.21 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004301/2.501, allocations: 4.41 MB / 0.7057 GB, free: 80.16 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002076/2.503, allocations: 1.251 MB / 0.7069 GB, free: 79.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001459/2.504, allocations: 172.1 kB / 0.7071 GB, free: 79.43 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007587/2.505, allocations: 0.6784 MB / 0.7077 GB, free: 79.11 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01042/2.515, allocations: 4.538 MB / 0.7122 GB, free: 79.09 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0178/2.533, allocations: 9.484 MB / 0.7214 GB, free: 72.75 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01592/2.549, allocations: 6.417 MB / 0.7277 GB, free: 72.69 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002087/2.55, allocations: 47.91 kB / 0.7277 GB, free: 72.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.07171/2.621, allocations: 18.65 MB / 0.7459 GB, free: 68.46 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001395/2.621, allocations: 78.97 kB / 0.746 GB, free: 68.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002781/2.622, allocations: 172.9 kB / 0.7462 GB, free: 68.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04014/2.662, allocations: 5.629 MB / 0.7517 GB, free: 67.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01334/2.675, allocations: 2.039 MB / 0.7537 GB, free: 67.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05042/2.726, allocations: 24.27 MB / 0.7774 GB, free: 56.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01483/2.741, allocations: 0.5349 MB / 0.7779 GB, free: 55.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00304/2.744, allocations: 0.5092 MB / 0.7784 GB, free: 55.86 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01361/2.757, allocations: 3.089 MB / 0.7814 GB, free: 54.06 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003231/2.761, allocations: 0.4936 MB / 0.7819 GB, free: 53.56 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07817/2.839, allocations: 12.34 MB / 0.7939 GB, free: 44.45 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001648/2.839, allocations: 55.89 kB / 0.794 GB, free: 44.4 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.052e-05/2.839, allocations: 9.219 kB / 0.794 GB, free: 44.39 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.054e-05/2.839, allocations: 17.31 kB / 0.794 GB, free: 44.39 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1138/2.953, allocations: 23.94 MB / 0.8174 GB, free: 24.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.771e-05/2.953, allocations: 4 kB / 0.8174 GB, free: 24.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007105/2.96, allocations: 0.5681 MB / 0.818 GB, free: 23.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03489/2.995, allocations: 4.643 MB / 0.8225 GB, free: 18.92 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008588/2.996, allocations: 61.08 kB / 0.8225 GB, free: 18.86 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3469/3.343, allocations: 19.56 MB / 0.8417 GB, free: 74.01 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-05/3.343, allocations: 9.094 kB / 0.8417 GB, free: 74.01 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06101/3.404, allocations: 16.64 MB / 0.8579 GB, free: 73.26 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004611/3.409, allocations: 1.207 MB / 0.8591 GB, free: 73.16 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001961/3.411, allocations: 60.84 kB / 0.8591 GB, free: 73.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00567/3.417, allocations: 244.5 kB / 0.8594 GB, free: 73.16 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001147/3.418, allocations: 199.5 kB / 0.8596 GB, free: 73.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004143/3.418, allocations: 84.81 kB / 0.8596 GB, free: 73.16 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0082/3.426, allocations: 3.349 MB / 0.8629 GB, free: 72.98 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.072e-06/3.426, allocations: 0.5469 kB / 0.8629 GB, free: 72.98 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01133/3.438, allocations: 1.699 MB / 0.8646 GB, free: 72.98 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001127/3.439, allocations: 211 kB / 0.8648 GB, free: 72.89 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02226/3.461, allocations: 10.43 MB / 0.875 GB, free: 72.68 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.073e-05/3.461, allocations: 3.5 kB / 0.875 GB, free: 72.68 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008499/3.47, allocations: 3.936 MB / 0.8788 GB, free: 71.21 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004655/3.474, allocations: 0.5796 MB / 0.8794 GB, free: 70.95 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0389/3.513, allocations: 18.33 MB / 0.8973 GB, free: 62.08 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01086/3.524, allocations: 4.739 MB / 0.9019 GB, free: 60.5 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.01316/3.538, allocations: 2.985 MB / 0.9048 GB, free: 60.45 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002726/3.54, allocations: 352 kB / 0.9052 GB, free: 60.44 MB / 426.7 MB Notification: Performance of SimCode: time 1.503e-06/3.54, allocations: 0 / 0.9052 GB, free: 60.44 MB / 426.7 MB Notification: Performance of Templates: time 0.1843/3.725, allocations: 73.21 MB / 0.9767 GB, free: 7.621 MB / 426.7 MB