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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.547/1.547, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003625/0.0003626, allocations: 8 kB / 233.2 MB, free: 3.004 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06989/0.07028, allocations: 38.77 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3163/0.3867, allocations: 88.49 MB / 360.5 MB, free: 1.652 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002705/0.387, allocations: 88.45 kB / 360.6 MB, free: 1.605 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6582/1.045, allocations: 126.1 MB / 486.7 MB, free: 70.21 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.986e-06/1.045, allocations: 0 / 486.7 MB, free: 70.21 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003416/1.046, allocations: 120 kB / 486.8 MB, free: 70.21 MB / 346.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.02192/1.068, allocations: 6.772 MB / 493.6 MB, free: 66.11 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/1.068, allocations: 10.62 kB / 493.6 MB, free: 66.11 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04172/1.109, allocations: 8.303 MB / 0.4901 GB, free: 59.41 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02067/1.13, allocations: 7.302 MB / 0.4973 GB, free: 52.14 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005293/1.131, allocations: 446.6 kB / 0.4977 GB, free: 51.75 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002917/1.134, allocations: 0.5826 MB / 0.4983 GB, free: 51.21 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03765/1.171, allocations: 15.69 MB / 0.5136 GB, free: 34.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003645/1.172, allocations: 71.31 kB / 0.5137 GB, free: 34.41 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002709/1.174, allocations: 286.5 kB / 0.5139 GB, free: 34.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002795/1.177, allocations: 1.61 MB / 0.5155 GB, free: 32.57 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03207/1.209, allocations: 13.96 MB / 0.5291 GB, free: 18.6 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3219/1.531, allocations: 63.97 MB / 0.5916 GB, free: 36.63 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01794/1.549, allocations: 6.437 MB / 0.5979 GB, free: 35.38 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02832/1.578, allocations: 14.33 MB / 0.6119 GB, free: 31.81 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.12e-05/1.578, allocations: 60.98 kB / 0.6119 GB, free: 31.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=286): time 7.426e-06/1.578, allocations: 0 / 0.6119 GB, free: 31.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=336): time 0.1927/1.77, allocations: 42.14 MB / 0.6531 GB, free: 22.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.347e-05/1.771, allocations: 210 kB / 0.6533 GB, free: 22.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01049/1.781, allocations: 4.816 MB / 0.658 GB, free: 18.46 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007249/1.782, allocations: 74.48 kB / 0.6581 GB, free: 18.38 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00321/1.785, allocations: 4.281 MB / 0.6622 GB, free: 14.53 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001664/1.787, allocations: 1.243 MB / 0.6635 GB, free: 13.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00103/1.788, allocations: 170.7 kB / 0.6636 GB, free: 13.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0006768/1.789, allocations: 0.6915 MB / 0.6643 GB, free: 12.67 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008656/1.797, allocations: 4.531 MB / 0.6687 GB, free: 8.777 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01233/1.81, allocations: 9.483 MB / 0.678 GB, free: 13.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01361/1.823, allocations: 6.405 MB / 0.6842 GB, free: 8.109 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001676/1.823, allocations: 56 kB / 0.6843 GB, free: 8.055 MB / 378.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.05777/1.881, allocations: 18.49 MB / 0.7024 GB, free: 5.992 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001631/1.881, allocations: 80 kB / 0.7024 GB, free: 5.914 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002742/1.882, allocations: 176 kB / 0.7026 GB, free: 5.742 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02813/1.91, allocations: 5.633 MB / 0.7081 GB, free: 104 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.234/2.144, allocations: 2.039 MB / 0.7101 GB, free: 98.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04282/2.187, allocations: 24.28 MB / 0.7338 GB, free: 94.39 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009299/2.196, allocations: 0.5342 MB / 0.7343 GB, free: 94.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001984/2.198, allocations: 0.5041 MB / 0.7348 GB, free: 94.19 MB / 394.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.008032/2.206, allocations: 3.092 MB / 0.7378 GB, free: 93.07 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001293/2.207, allocations: 0.5016 MB / 0.7383 GB, free: 93.07 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03903/2.247, allocations: 12.34 MB / 0.7504 GB, free: 89.14 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001068/2.247, allocations: 49.39 kB / 0.7504 GB, free: 89.14 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.64e-05/2.247, allocations: 11.12 kB / 0.7504 GB, free: 89.14 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.993e-05/2.247, allocations: 14.06 kB / 0.7504 GB, free: 89.14 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06318/2.31, allocations: 23.94 MB / 0.7738 GB, free: 79.78 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-05/2.31, allocations: 5.469 kB / 0.7738 GB, free: 79.78 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003781/2.314, allocations: 0.5683 MB / 0.7744 GB, free: 79.76 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02357/2.337, allocations: 4.646 MB / 0.7789 GB, free: 79.08 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007453/2.338, allocations: 59.62 kB / 0.779 GB, free: 79.05 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03112/2.369, allocations: 19.57 MB / 0.7981 GB, free: 62.28 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-05/2.369, allocations: 11.47 kB / 0.7981 GB, free: 62.27 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0408/2.41, allocations: 17.37 MB / 0.8151 GB, free: 45.92 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003714/2.414, allocations: 1.213 MB / 0.8162 GB, free: 44.69 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001677/2.416, allocations: 60 kB / 0.8163 GB, free: 44.63 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004383/2.42, allocations: 244.6 kB / 0.8165 GB, free: 44.39 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00116/2.421, allocations: 187.9 kB / 0.8167 GB, free: 44.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000483/2.422, allocations: 85 kB / 0.8168 GB, free: 44.13 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.007969/2.43, allocations: 3.349 MB / 0.8201 GB, free: 40.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.287e-06/2.43, allocations: 0 / 0.8201 GB, free: 40.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01071/2.441, allocations: 1.709 MB / 0.8217 GB, free: 39.11 MB / 394.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.001088/2.442, allocations: 216.6 kB / 0.8219 GB, free: 38.94 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01906/2.461, allocations: 10.43 MB / 0.8321 GB, free: 28.67 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.114e-05/2.461, allocations: 4 kB / 0.8321 GB, free: 28.67 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007432/2.468, allocations: 3.947 MB / 0.836 GB, free: 24.71 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004278/2.473, allocations: 0.581 MB / 0.8366 GB, free: 24.16 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.263/2.736, allocations: 18.96 MB / 0.8551 GB, free: 95.2 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01198/2.748, allocations: 4.761 MB / 0.8597 GB, free: 94.34 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0026/2.75, allocations: 413.1 kB / 0.8601 GB, free: 94.34 MB / 394.7 MB Notification: Performance of SimCode: time 3.723e-06/2.75, allocations: 0 / 0.8601 GB, free: 94.34 MB / 394.7 MB Notification: Performance of Templates: time 0.4384/3.189, allocations: 142 MB / 0.9988 GB, free: 95.54 MB / 394.7 MB