Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.925/1.925, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004354/0.0004355, allocations: 12 kB / 282.7 MB, free: 9.566 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3595/0.36, allocations: 48.7 MB / 331.4 MB, free: 6.418 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1708/0.5308, allocations: 93.45 MB / 424.8 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003194/0.5312, allocations: 79.94 kB / 424.9 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6699/1.201, allocations: 94.63 MB / 0.5073 GB, free: 87.09 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.016e-06/1.201, allocations: 0 / 0.5073 GB, free: 87.09 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002987/1.202, allocations: 92.44 kB / 0.5074 GB, free: 87.09 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1534 * Number of variables: 1534 Notification: Performance of Generate backend data structure: time 0.01937/1.221, allocations: 5.018 MB / 0.5123 GB, free: 83.82 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/1.221, allocations: 10.88 kB / 0.5123 GB, free: 83.82 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003804/1.225, allocations: 0.9171 MB / 0.5132 GB, free: 83.28 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04717/1.272, allocations: 6.726 MB / 0.5198 GB, free: 76.65 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02179/1.294, allocations: 6.333 MB / 0.526 GB, free: 70.34 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003632/1.294, allocations: 328 kB / 0.5263 GB, free: 70.04 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002308/1.297, allocations: 445 kB / 0.5267 GB, free: 69.64 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03119/1.328, allocations: 11.05 MB / 0.5375 GB, free: 57.64 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002823/1.328, allocations: 63.38 kB / 0.5376 GB, free: 57.57 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001435/1.33, allocations: 212.5 kB / 0.5378 GB, free: 57.39 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002148/1.332, allocations: 1.021 MB / 0.5388 GB, free: 56.37 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02845/1.36, allocations: 9.289 MB / 0.5478 GB, free: 47.07 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09706/1.457, allocations: 47.58 MB / 0.5943 GB, free: 14.1 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03911/1.497, allocations: 4.152 MB / 0.5984 GB, free: 9.801 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0208/1.517, allocations: 7.51 MB / 0.6057 GB, free: 1.918 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.864e-05/1.518, allocations: 51.56 kB / 0.6057 GB, free: 1.855 MB / 410.7 MB Notification: Performance of pre-optimization done (n=180): time 6.002e-06/1.518, allocations: 4 kB / 0.6057 GB, free: 1.852 MB / 410.7 MB Notification: Performance of matching and sorting (n=236): time 0.6089/2.126, allocations: 41.03 MB / 0.6458 GB, free: 109.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.059e-05/2.127, allocations: 203.2 kB / 0.646 GB, free: 108.9 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00864/2.135, allocations: 3.798 MB / 0.6497 GB, free: 108.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007005/2.136, allocations: 64.3 kB / 0.6498 GB, free: 108.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002851/2.139, allocations: 3.11 MB / 0.6528 GB, free: 106.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001601/2.14, allocations: 0.8754 MB / 0.6537 GB, free: 106.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008095/2.141, allocations: 129 kB / 0.6538 GB, free: 106 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000376/2.142, allocations: 0.5676 MB / 0.6543 GB, free: 105.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007595/2.149, allocations: 3.422 MB / 0.6577 GB, free: 104.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01012/2.159, allocations: 7.023 MB / 0.6645 GB, free: 98.14 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01033/2.17, allocations: 4.771 MB / 0.6692 GB, free: 96.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001478/2.17, allocations: 34.72 kB / 0.6692 GB, free: 96.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=820) (initialization): time 0.06063/2.231, allocations: 15.29 MB / 0.6842 GB, free: 90.98 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.777e-05/2.231, allocations: 62.66 kB / 0.6842 GB, free: 90.92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001645/2.231, allocations: 127.1 kB / 0.6844 GB, free: 90.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03973/2.271, allocations: 5.933 MB / 0.6901 GB, free: 87.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00905/2.28, allocations: 1.435 MB / 0.6915 GB, free: 85.76 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05368/2.334, allocations: 25.7 MB / 0.7166 GB, free: 59.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00899/2.343, allocations: 388.7 kB / 0.717 GB, free: 59.42 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001751/2.344, allocations: 380.7 kB / 0.7174 GB, free: 59.05 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 578 * Number of states: 0 () * Number of discrete variables: 39 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.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 (743): * Single equations (assignments): 738 * Array equations: 3 * 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 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006984/2.351, allocations: 2.216 MB / 0.7195 GB, free: 56.83 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001309/2.353, allocations: 398.9 kB / 0.7199 GB, free: 56.43 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04982/2.403, allocations: 10.83 MB / 0.7305 GB, free: 45.57 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.105e-05/2.403, allocations: 24 kB / 0.7305 GB, free: 45.55 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.279e-05/2.403, allocations: 12 kB / 0.7305 GB, free: 45.54 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.979e-05/2.403, allocations: 7.969 kB / 0.7305 GB, free: 45.53 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08055/2.483, allocations: 20.21 MB / 0.7503 GB, free: 24.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-05/2.484, allocations: 4.594 kB / 0.7503 GB, free: 24.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005118/2.489, allocations: 387.4 kB / 0.7506 GB, free: 24.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05024/2.539, allocations: 4.99 MB / 0.7555 GB, free: 19.52 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007045/2.54, allocations: 47.98 kB / 0.7556 GB, free: 19.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04417/2.584, allocations: 20.89 MB / 0.776 GB, free: 14.33 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.411e-05/2.584, allocations: 15.94 kB / 0.776 GB, free: 14.32 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3747/2.959, allocations: 14.59 MB / 0.7902 GB, free: 113.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00335/2.962, allocations: 0.9493 MB / 0.7912 GB, free: 113.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001537/2.964, allocations: 45.58 kB / 0.7912 GB, free: 113.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004845/2.968, allocations: 170.6 kB / 0.7914 GB, free: 113.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001061/2.97, allocations: 156.4 kB / 0.7915 GB, free: 113.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000346/2.97, allocations: 62.09 kB / 0.7916 GB, free: 113.8 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007564/2.978, allocations: 2.687 MB / 0.7942 GB, free: 113.6 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.32e-07/2.978, allocations: 0 / 0.7942 GB, free: 113.6 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009636/2.987, allocations: 1.321 MB / 0.7955 GB, free: 113.6 MB / 442.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 (167): * Single equations (assignments): 162 * Array equations: 3 * 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 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05424/3.041, allocations: 16.38 MB / 0.8115 GB, free: 109.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01785/3.059, allocations: 7.965 MB / 0.8193 GB, free: 106.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.101e-05/3.059, allocations: 0 / 0.8193 GB, free: 106.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007434/3.067, allocations: 3.128 MB / 0.8223 GB, free: 105.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004645/3.072, allocations: 491.3 kB / 0.8228 GB, free: 104.9 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0736/3.145, allocations: 109 MB / 0.9293 GB, free: 0.9414 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01075/3.156, allocations: 3.61 MB / 0.9328 GB, free: 15.61 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00804/3.164, allocations: 2.101 MB / 0.9349 GB, free: 13.94 MB / 458.7 MB Notification: Performance of SimCode: time 1.773e-06/3.164, allocations: 4 kB / 0.9349 GB, free: 13.94 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.101/8.265, allocations: 130.9 MB / 1.063 GB, free: 56.69 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat does not exist to compare? outputFormat=mat