Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.JointSSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR") Notification: Performance of loadModel(ModelicaTest): time 2.124/2.124, allocations: 234.9 MB / 250.5 MB, free: 9.457 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000436/0.000436, allocations: 12 kB / 314.4 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2801, allocations: 54.86 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4338/0.714, allocations: 109.5 MB / 478.8 MB, free: 40.45 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/0.7142, allocations: 87.2 kB / 478.9 MB, free: 40.45 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5521/1.266, allocations: 154.2 MB / 0.6182 GB, free: 4.953 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.36e-06/1.266, allocations: 0 / 0.6182 GB, free: 4.953 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003952/1.267, allocations: 136 kB / 0.6184 GB, free: 4.82 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2561 * Number of variables: 2561 Notification: Performance of Generate backend data structure: time 0.02421/1.291, allocations: 6.966 MB / 0.6252 GB, free: 13.77 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/1.291, allocations: 8.031 kB / 0.6252 GB, free: 13.76 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0374/1.329, allocations: 6.667 MB / 0.6317 GB, free: 7.074 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02663/1.355, allocations: 8.413 MB / 0.6399 GB, free: 14.6 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008553/1.356, allocations: 0.5294 MB / 0.6404 GB, free: 14.07 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003529/1.36, allocations: 0.7066 MB / 0.6411 GB, free: 13.36 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3363/1.696, allocations: 18.84 MB / 0.6595 GB, free: 87.61 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000465/1.697, allocations: 84.56 kB / 0.6596 GB, free: 87.61 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003003/1.7, allocations: 335.4 kB / 0.6599 GB, free: 87.61 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00329/1.703, allocations: 1.718 MB / 0.6616 GB, free: 87.6 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04343/1.746, allocations: 16.54 MB / 0.6777 GB, free: 87.55 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1015/1.848, allocations: 74.1 MB / 0.7501 GB, free: 44.03 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01937/1.867, allocations: 6.157 MB / 0.7561 GB, free: 41.53 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.029/1.896, allocations: 13.92 MB / 0.7697 GB, free: 34.1 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.136e-05/1.896, allocations: 56 kB / 0.7698 GB, free: 34.04 MB / 490.7 MB Notification: Performance of pre-optimization done (n=284): time 7.266e-06/1.896, allocations: 3.938 kB / 0.7698 GB, free: 34.04 MB / 490.7 MB Notification: Performance of matching and sorting (n=344): time 0.1109/2.007, allocations: 24.73 MB / 0.7939 GB, free: 25.07 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.896e-05/2.007, allocations: 187.9 kB / 0.7941 GB, free: 24.85 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01078/2.018, allocations: 5.253 MB / 0.7992 GB, free: 20.57 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005709/2.019, allocations: 73.7 kB / 0.7993 GB, free: 20.5 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00335/2.022, allocations: 4.842 MB / 0.804 GB, free: 16.14 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001447/2.024, allocations: 1.279 MB / 0.8053 GB, free: 15.02 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000894/2.025, allocations: 188 kB / 0.8055 GB, free: 14.84 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006034/2.025, allocations: 0.7168 MB / 0.8062 GB, free: 14.22 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006862/2.032, allocations: 3.26 MB / 0.8093 GB, free: 11.47 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009906/2.042, allocations: 8.704 MB / 0.8178 GB, free: 0.8906 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01527/2.057, allocations: 5.451 MB / 0.8232 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001791/2.058, allocations: 52 kB / 0.8232 GB, free: 12.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03522/2.093, allocations: 12.57 MB / 0.8355 GB, free: 1.676 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001838/2.093, allocations: 88 kB / 0.8356 GB, free: 1.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003482/2.093, allocations: 192 kB / 0.8357 GB, free: 1.402 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006031/2.1, allocations: 1.327 MB / 0.837 GB, free: 380 kB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3078/2.407, allocations: 2.194 MB / 0.8392 GB, free: 97.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01691/2.424, allocations: 7.403 MB / 0.8464 GB, free: 95.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009307/2.434, allocations: 0.5612 MB / 0.847 GB, free: 95.96 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001876/2.436, allocations: 0.5458 MB / 0.8475 GB, free: 95.96 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 876 * Number of states: 0 () * Number of discrete variables: 43 (jointSSR.revolute.positiveBranch,Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],FixedFrame1.color_x[3],FixedFrame1.color_x[2],FixedFrame1.color_x[1],jointSSR.rod1Color[3],jointSSR.rod1Color[2],jointSSR.rod1Color[1],jointSSR.rod1.massColor[3],jointSSR.rod1.massColor[2],jointSSR.rod1.massColor[1],jointSSR.sphereColor[3],jointSSR.sphereColor[2],jointSSR.sphereColor[1],jointSSR.revoluteColor[3],jointSSR.revoluteColor[2],jointSSR.revoluteColor[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1152): * Single equations (assignments): 1145 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 37} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008372/2.444, allocations: 3.443 MB / 0.8509 GB, free: 95.85 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001127/2.445, allocations: 0.5295 MB / 0.8514 GB, free: 95.85 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0145/2.46, allocations: 5.333 MB / 0.8566 GB, free: 95.63 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.647e-05/2.46, allocations: 36.98 kB / 0.8566 GB, free: 95.63 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.037e-05/2.46, allocations: 3.969 kB / 0.8566 GB, free: 95.63 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.203e-05/2.46, allocations: 20.36 kB / 0.8566 GB, free: 95.63 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03688/2.497, allocations: 14.1 MB / 0.8704 GB, free: 94.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.683e-05/2.497, allocations: 13.25 kB / 0.8704 GB, free: 94.21 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002985/2.5, allocations: 0.5349 MB / 0.8709 GB, free: 94.21 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005104/2.505, allocations: 0.9228 MB / 0.8718 GB, free: 94.21 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005907/2.506, allocations: 76.14 kB / 0.8719 GB, free: 94.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01261/2.518, allocations: 5.692 MB / 0.8775 GB, free: 92.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.582e-05/2.518, allocations: 22.44 kB / 0.8775 GB, free: 92.93 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01939/2.538, allocations: 10.23 MB / 0.8875 GB, free: 89.77 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003038/2.541, allocations: 0.9457 MB / 0.8884 GB, free: 89.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001526/2.542, allocations: 73.94 kB / 0.8885 GB, free: 89.28 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003839/2.546, allocations: 187.9 kB / 0.8887 GB, free: 89.24 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008194/2.547, allocations: 214.7 kB / 0.8889 GB, free: 89.21 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000334/2.547, allocations: 104.2 kB / 0.889 GB, free: 89.19 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008985/2.556, allocations: 3.653 MB / 0.8925 GB, free: 88.01 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.377e-06/2.557, allocations: 2.781 kB / 0.8925 GB, free: 88.01 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0109/2.567, allocations: 1.653 MB / 0.8942 GB, free: 87.82 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 2 (j2.s,j2.v) * 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 (267): * Single equations (assignments): 260 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001075/2.569, allocations: 280.2 kB / 0.8944 GB, free: 87.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01629/2.585, allocations: 7.769 MB / 0.902 GB, free: 85.45 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.36e-05/2.585, allocations: 1.594 kB / 0.902 GB, free: 85.45 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005055/2.59, allocations: 2.4 MB / 0.9044 GB, free: 84.48 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004348/2.594, allocations: 0.6513 MB / 0.905 GB, free: 84.21 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03671/2.631, allocations: 18.95 MB / 0.9235 GB, free: 74.44 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01117/2.642, allocations: 5.319 MB / 0.9287 GB, free: 72.71 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002292/2.645, allocations: 444.8 kB / 0.9291 GB, free: 72.7 MB / 0.4948 GB Notification: Performance of SimCode: time 2.198e-06/2.645, allocations: 3.594 kB / 0.9291 GB, free: 72.7 MB / 0.4948 GB Notification: Performance of Templates: time 0.468/3.113, allocations: 121.2 MB / 1.048 GB, free: 111.1 MB / 0.5105 GB