Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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) 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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadModel(Modelica): time 1.887/1.887, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003609/0.0003611, allocations: 19.92 kB / 263.9 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08375/0.08414, allocations: 44.5 MB / 308.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.05868/0.1429, allocations: 43.89 MB / 352.3 MB, free: 5.008 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02706/0.17, allocations: 10.76 MB / 363 MB, free: 10.21 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008164/0.1782, allocations: 219.4 kB / 363.2 MB, free: 10 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006953/0.1852, allocations: 2.228 MB / 365.4 MB, free: 7.762 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02186/0.2071, allocations: 6.475 MB / 371.9 MB, free: 1.27 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00367/0.2108, allocations: 0.8464 MB / 372.8 MB, free: 432 kB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.2598/0.4706, allocations: 18.62 MB / 391.4 MB, free: 7.668 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008286/0.479, allocations: 5.005 MB / 396.4 MB, free: 7.262 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003285/0.4823, allocations: 1.564 MB / 398 MB, free: 7.262 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003754/0.4861, allocations: 2.281 MB / 400.2 MB, free: 6.867 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001272/0.4874, allocations: 234.3 kB / 400.5 MB, free: 6.867 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003336/0.4908, allocations: 1.156 MB / 401.6 MB, free: 6.613 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003099/0.4939, allocations: 2.397 MB / 404 MB, free: 5.836 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001709/0.4956, allocations: 1.202 MB / 405.2 MB, free: 5.438 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009831/0.5055, allocations: 8.105 MB / 413.3 MB, free: 14.38 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.971e-06/0.5056, allocations: 0 / 413.3 MB, free: 14.38 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.181e-06/0.5056, allocations: 0 / 413.3 MB, free: 14.38 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002342/0.5058, allocations: 0 / 413.3 MB, free: 14.38 MB / 330.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.01774/0.5236, allocations: 6.481 MB / 419.8 MB, free: 8.363 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.5236, allocations: 12.03 kB / 419.8 MB, free: 8.352 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06169/0.5853, allocations: 9.75 MB / 429.6 MB, free: 15.38 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01262/0.598, allocations: 4.638 MB / 434.2 MB, free: 12 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003824/0.5984, allocations: 315 kB / 434.5 MB, free: 11.83 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00192/0.6004, allocations: 431 kB / 434.9 MB, free: 11.55 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03672/0.6371, allocations: 15.79 MB / 450.7 MB, free: 15.4 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002643/0.6374, allocations: 58.34 kB / 450.8 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001748/0.6392, allocations: 207.5 kB / 451 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006551/0.6458, allocations: 3.15 MB / 454.1 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03607/0.6819, allocations: 14.03 MB / 468.2 MB, free: 2.941 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.101/0.783, allocations: 57.43 MB / 0.5133 GB, free: 10.87 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02004/0.8031, allocations: 6.556 MB / 0.5197 GB, free: 4.07 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2494/1.052, allocations: 14.45 MB / 0.5338 GB, free: 151.9 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.223e-05/1.053, allocations: 69.16 kB / 0.5339 GB, free: 151.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 7.856e-06/1.053, allocations: 0 / 0.5339 GB, free: 151.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=336): time 0.1865/1.239, allocations: 42.79 MB / 0.5756 GB, free: 123.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.146e-05/1.239, allocations: 213.9 kB / 0.5758 GB, free: 123.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009632/1.249, allocations: 5.695 MB / 0.5814 GB, free: 118 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006988/1.25, allocations: 78.67 kB / 0.5815 GB, free: 117.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002774/1.252, allocations: 4.27 MB / 0.5857 GB, free: 113.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001596/1.254, allocations: 1.237 MB / 0.5869 GB, free: 112.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008438/1.255, allocations: 173.1 kB / 0.587 GB, free: 112.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005267/1.256, allocations: 0.6866 MB / 0.5877 GB, free: 111.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008418/1.264, allocations: 4.577 MB / 0.5922 GB, free: 107 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01099/1.275, allocations: 9.536 MB / 0.6015 GB, free: 95.02 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.011/1.286, allocations: 6.458 MB / 0.6078 GB, free: 88.54 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001231/1.286, allocations: 48 kB / 0.6078 GB, free: 88.49 MB / 426.7 MB Notification: Performance of matching and sorting (n=1145) (initialization): time 0.05043/1.337, allocations: 18.7 MB / 0.6261 GB, free: 69.74 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001378/1.337, allocations: 84.72 kB / 0.6262 GB, free: 69.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001894/1.337, allocations: 172 kB / 0.6263 GB, free: 69.49 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02627/1.363, allocations: 5.827 MB / 0.632 GB, free: 63.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008713/1.372, allocations: 2.047 MB / 0.634 GB, free: 61.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03954/1.412, allocations: 24.93 MB / 0.6584 GB, free: 36.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008419/1.42, allocations: 0.5472 MB / 0.6589 GB, free: 35.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001465/1.422, allocations: 0.5013 MB / 0.6594 GB, free: 35.35 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 788 * 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 (1054): * Single equations (assignments): 1046 * 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.006194/1.428, allocations: 3.087 MB / 0.6624 GB, free: 32.25 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001142/1.429, allocations: 0.4935 MB / 0.6629 GB, free: 31.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2734/1.702, allocations: 12.59 MB / 0.6752 GB, free: 137.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001166/1.703, allocations: 59.12 kB / 0.6752 GB, free: 137.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.684e-05/1.703, allocations: 15.09 kB / 0.6753 GB, free: 137.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.752e-05/1.703, allocations: 16.62 kB / 0.6753 GB, free: 137.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09985/1.803, allocations: 24.32 MB / 0.699 GB, free: 129.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.666e-05/1.803, allocations: 6.641 kB / 0.699 GB, free: 129.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007242/1.81, allocations: 0.5759 MB / 0.6996 GB, free: 129.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02838/1.838, allocations: 4.837 MB / 0.7043 GB, free: 127.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007341/1.839, allocations: 64.52 kB / 0.7044 GB, free: 127.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0343/1.873, allocations: 20.2 MB / 0.7241 GB, free: 113.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.768e-06/1.874, allocations: 4 kB / 0.7241 GB, free: 113.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04111/1.915, allocations: 16.98 MB / 0.7407 GB, free: 96.76 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003418/1.918, allocations: 1.243 MB / 0.7419 GB, free: 95.78 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001258/1.919, allocations: 52.62 kB / 0.742 GB, free: 95.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00438/1.924, allocations: 264.8 kB / 0.7422 GB, free: 95.47 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001104/1.925, allocations: 194 kB / 0.7424 GB, free: 95.28 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000404/1.925, allocations: 84.53 kB / 0.7425 GB, free: 95.2 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006847/1.932, allocations: 3.58 MB / 0.746 GB, free: 91.64 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.129e-06/1.932, allocations: 3.609 kB / 0.746 GB, free: 91.64 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008933/1.941, allocations: 1.726 MB / 0.7477 GB, free: 89.92 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.00105/1.942, allocations: 221.7 kB / 0.7479 GB, free: 89.71 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01847/1.961, allocations: 10.52 MB / 0.7581 GB, free: 79.27 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.761e-06/1.961, allocations: 0 / 0.7581 GB, free: 79.27 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007242/1.968, allocations: 4.003 MB / 0.7621 GB, free: 75.27 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003693/1.972, allocations: 0.5786 MB / 0.7626 GB, free: 74.71 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03238/2.004, allocations: 19.07 MB / 0.7812 GB, free: 55.67 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008299/2.013, allocations: 4.758 MB / 0.7859 GB, free: 50.88 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00243/2.015, allocations: 415.4 kB / 0.7863 GB, free: 50.47 MB / 426.7 MB Notification: Performance of SimCode: time 2.159e-06/2.015, allocations: 0 / 0.7863 GB, free: 50.47 MB / 426.7 MB Notification: Performance of Templates: time 0.4314/2.447, allocations: 142.9 MB / 0.9259 GB, free: 47.54 MB / 426.7 MB