Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadModel(Modelica): time 1.632/1.632, allocations: 171.3 MB / 179.2 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 1.541e-05/1.556e-05, allocations: 224 / 222.5 MB, free: 4.754 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.212/0.212, allocations: 38.77 MB / 261.3 MB, free: 13 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1352/0.3473, allocations: 87.74 MB / 349 MB, free: 5.762 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002735/0.3476, allocations: 83.95 kB / 349.1 MB, free: 5.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6115/0.9591, allocations: 123.8 MB / 472.9 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.265e-06/0.9591, allocations: 8 kB / 472.9 MB, free: 5.078 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000322/0.9595, allocations: 115.9 kB / 473 MB, free: 4.965 MB / 314.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.01995/0.9794, allocations: 6.321 MB / 479.3 MB, free: 14.57 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.9795, allocations: 8.031 kB / 479.3 MB, free: 14.56 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04563/1.025, allocations: 8.31 MB / 487.6 MB, free: 6.227 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02417/1.049, allocations: 7.261 MB / 494.9 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004392/1.05, allocations: 199.9 kB / 495.1 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00296/1.053, allocations: 355.8 kB / 495.4 MB, free: 14.36 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02453/1.077, allocations: 10.11 MB / 0.4937 GB, free: 4.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2917/1.369, allocations: 14.05 MB / 0.5074 GB, free: 55.37 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003124/1.37, allocations: 71.22 kB / 0.5075 GB, free: 55.37 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002115/1.372, allocations: 35.97 kB / 0.5075 GB, free: 55.37 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00273/1.374, allocations: 1.611 MB / 0.5091 GB, free: 55.36 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08354/1.458, allocations: 61.39 MB / 0.5691 GB, free: 20.3 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008141/1.466, allocations: 5.559 MB / 0.5745 GB, free: 17.32 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005553/1.472, allocations: 3.37 MB / 0.5778 GB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02859/1.5, allocations: 14.03 MB / 0.5915 GB, free: 8.828 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.883e-05/1.501, allocations: 66.5 kB / 0.5915 GB, free: 8.77 MB / 346.7 MB Notification: Performance of pre-optimization done (n=286): time 8.052e-06/1.501, allocations: 3.844 kB / 0.5915 GB, free: 8.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=336): time 0.1052/1.606, allocations: 31.33 MB / 0.6221 GB, free: 6.609 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001719/1.606, allocations: 221.4 kB / 0.6223 GB, free: 6.355 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01046/1.616, allocations: 4.28 MB / 0.6265 GB, free: 2.645 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006985/1.617, allocations: 25.7 kB / 0.6265 GB, free: 2.613 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2176/1.835, allocations: 4.424 MB / 0.6309 GB, free: 73.86 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001851/1.837, allocations: 1.211 MB / 0.632 GB, free: 73.28 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001088/1.838, allocations: 3.562 kB / 0.6321 GB, free: 73.28 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0009166/1.839, allocations: 0.7002 MB / 0.6327 GB, free: 72.95 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008746/1.848, allocations: 4.368 MB / 0.637 GB, free: 72.92 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01166/1.859, allocations: 9.551 MB / 0.6463 GB, free: 66.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01211/1.871, allocations: 6.359 MB / 0.6525 GB, free: 66.17 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001763/1.872, allocations: 52.72 kB / 0.6526 GB, free: 66.17 MB / 362.7 MB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.05162/1.923, allocations: 17.51 MB / 0.6697 GB, free: 65.36 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001568/1.923, allocations: 86.81 kB / 0.6698 GB, free: 65.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002361/1.924, allocations: 181.4 kB / 0.67 GB, free: 65.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02909/1.953, allocations: 5.63 MB / 0.6754 GB, free: 64.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009678/1.962, allocations: 2.132 MB / 0.6775 GB, free: 64.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03644/1.999, allocations: 21.61 MB / 0.6986 GB, free: 54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009577/2.009, allocations: 389.5 kB / 0.699 GB, free: 53.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002035/2.011, allocations: 0.5236 MB / 0.6995 GB, free: 53.92 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 840 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1105): * Single equations (assignments): 1097 * 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.002927/2.014, allocations: 0.5651 MB / 0.7001 GB, free: 53.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001203/2.015, allocations: 483.5 kB / 0.7005 GB, free: 53.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03622/2.051, allocations: 12.02 MB / 0.7123 GB, free: 44.46 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001102/2.051, allocations: 59.19 kB / 0.7123 GB, free: 44.41 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.158e-05/2.051, allocations: 8 kB / 0.7123 GB, free: 44.4 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-05/2.051, allocations: 13.78 kB / 0.7123 GB, free: 44.4 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05711/2.109, allocations: 22.47 MB / 0.7343 GB, free: 25.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.036e-05/2.109, allocations: 4 kB / 0.7343 GB, free: 25.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003617/2.112, allocations: 0.5661 MB / 0.7348 GB, free: 24.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02237/2.135, allocations: 4.631 MB / 0.7394 GB, free: 20.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007224/2.135, allocations: 16 kB / 0.7394 GB, free: 20.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02828/2.164, allocations: 17.33 MB / 0.7563 GB, free: 2.766 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.446e-05/2.164, allocations: 7.938 kB / 0.7563 GB, free: 2.758 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.27/2.434, allocations: 16.97 MB / 0.7729 GB, free: 77.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003446/2.437, allocations: 1.177 MB / 0.774 GB, free: 77.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001366/2.439, allocations: 14.03 kB / 0.7741 GB, free: 77.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004276/2.443, allocations: 202.2 kB / 0.7742 GB, free: 77.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001078/2.444, allocations: 193.4 kB / 0.7744 GB, free: 77.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000396/2.445, allocations: 86.64 kB / 0.7745 GB, free: 77.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.006315/2.451, allocations: 2.845 MB / 0.7773 GB, free: 77.22 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.113e-06/2.451, allocations: 0 / 0.7773 GB, free: 77.22 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01041/2.461, allocations: 1.488 MB / 0.7787 GB, free: 77.22 MB / 378.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 () * 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.001023/2.462, allocations: 163.8 kB / 0.7789 GB, free: 77.13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01839/2.481, allocations: 9.993 MB / 0.7887 GB, free: 76.94 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/2.481, allocations: 0 / 0.7887 GB, free: 76.94 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007253/2.488, allocations: 3.814 MB / 0.7924 GB, free: 76.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003535/2.492, allocations: 462.7 kB / 0.7928 GB, free: 76.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03168/2.523, allocations: 14 MB / 0.8065 GB, free: 72.49 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01019/2.534, allocations: 4.75 MB / 0.8111 GB, free: 70.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002403/2.536, allocations: 408.6 kB / 0.8115 GB, free: 70.9 MB / 378.7 MB Notification: Performance of SimCode: time 1.961e-06/2.536, allocations: 0 / 0.8115 GB, free: 70.9 MB / 378.7 MB Notification: Performance of Templates: time 0.4664/3.003, allocations: 139.4 MB / 0.9477 GB, free: 71.33 MB / 378.7 MB