Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.Distance2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.333/2.333, allocations: 235.1 MB / 243 MB, free: 9.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.448e-05/2.462e-05, allocations: 4 kB / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3428/0.3429, allocations: 54.84 MB / 358.1 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1764/0.5193, allocations: 97.69 MB / 455.8 MB, free: 13.12 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002932/0.5197, allocations: 75.95 kB / 455.9 MB, free: 13.04 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6832/1.203, allocations: 77.42 MB / 0.5208 GB, free: 47.94 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.203, allocations: 0 / 0.5208 GB, free: 47.94 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002026/1.203, allocations: 68 kB / 0.5209 GB, free: 47.87 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: 1364 * Number of variables: 1364 Notification: Performance of Generate backend data structure: time 0.01349/1.217, allocations: 3.54 MB / 0.5243 GB, free: 44.27 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.343e-05/1.217, allocations: 12.03 kB / 0.5243 GB, free: 44.26 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03153/1.248, allocations: 4.32 MB / 0.5286 GB, free: 39.93 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01598/1.264, allocations: 4.358 MB / 0.5328 GB, free: 35.51 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002194/1.265, allocations: 116 kB / 0.5329 GB, free: 35.39 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002021/1.267, allocations: 220 kB / 0.5331 GB, free: 35.18 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0126/1.279, allocations: 5.223 MB / 0.5382 GB, free: 29.95 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01999/1.299, allocations: 8.329 MB / 0.5464 GB, free: 20.64 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002304/1.3, allocations: 59.41 kB / 0.5464 GB, free: 20.59 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001424/1.301, allocations: 28 kB / 0.5464 GB, free: 20.56 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001784/1.303, allocations: 0.8923 MB / 0.5473 GB, free: 19.66 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05941/1.362, allocations: 40.81 MB / 0.5872 GB, free: 9.594 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005015/1.367, allocations: 2.416 MB / 0.5895 GB, free: 6.973 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002455/1.37, allocations: 1.053 MB / 0.5906 GB, free: 5.91 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000608/1.37, allocations: 331.7 kB / 0.5909 GB, free: 5.531 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.44e-05/1.371, allocations: 43.12 kB / 0.5909 GB, free: 5.48 MB / 426.7 MB Notification: Performance of pre-optimization done (n=122): time 8.176e-06/1.371, allocations: 0 / 0.5909 GB, free: 5.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=140): time 0.03273/1.403, allocations: 9.607 MB / 0.6003 GB, free: 11.78 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001358/1.403, allocations: 196.7 kB / 0.6005 GB, free: 11.54 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007778/1.411, allocations: 3.01 MB / 0.6034 GB, free: 8.535 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000346/1.412, allocations: 29.7 kB / 0.6035 GB, free: 8.5 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003644/1.415, allocations: 3.021 MB / 0.6064 GB, free: 5.438 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001084/1.416, allocations: 0.5518 MB / 0.6069 GB, free: 4.879 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007032/1.417, allocations: 0 / 0.6069 GB, free: 4.879 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006012/1.418, allocations: 0.5669 MB / 0.6075 GB, free: 4.301 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004434/1.422, allocations: 1.558 MB / 0.609 GB, free: 2.738 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008797/1.431, allocations: 5.509 MB / 0.6144 GB, free: 11.21 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007767/1.439, allocations: 2.938 MB / 0.6173 GB, free: 8.273 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001479/1.439, allocations: 40 kB / 0.6173 GB, free: 8.234 MB / 458.7 MB Notification: Performance of matching and sorting (n=790) (initialization): time 0.0196/1.459, allocations: 6.203 MB / 0.6234 GB, free: 2.023 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001451/1.459, allocations: 69.05 kB / 0.6234 GB, free: 1.957 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002466/1.459, allocations: 144 kB / 0.6236 GB, free: 1.816 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001329/1.461, allocations: 373.3 kB / 0.6239 GB, free: 1.449 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008804/1.469, allocations: 1.4 MB / 0.6253 GB, free: 48 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3594/1.829, allocations: 2.628 MB / 0.6279 GB, free: 106.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006203/1.835, allocations: 193.7 kB / 0.628 GB, free: 106.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001468/1.837, allocations: 387.3 kB / 0.6284 GB, free: 106.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 651 * Number of states: 0 () * Number of discrete variables: 28 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (755): * Single equations (assignments): 751 * Array equations: 3 * 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 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001557/1.838, allocations: 457.5 kB / 0.6288 GB, free: 106.7 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005142/1.843, allocations: 1.876 MB / 0.6307 GB, free: 106.6 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000811/1.844, allocations: 301.8 kB / 0.631 GB, free: 106.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00429/1.849, allocations: 1.553 MB / 0.6325 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-05/1.849, allocations: 14.61 kB / 0.6325 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.479e-05/1.849, allocations: 7.016 kB / 0.6325 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.221e-05/1.849, allocations: 11.08 kB / 0.6325 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01298/1.862, allocations: 4.713 MB / 0.6371 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.651e-05/1.862, allocations: 3.719 kB / 0.6371 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0019/1.864, allocations: 199.5 kB / 0.6373 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007608/1.864, allocations: 157 kB / 0.6375 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001574/1.865, allocations: 13.77 kB / 0.6375 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002869/1.867, allocations: 2.055 MB / 0.6395 GB, free: 104.7 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.126e-06/1.868, allocations: 3.531 kB / 0.6395 GB, free: 104.7 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006522/1.874, allocations: 3.509 MB / 0.6429 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001624/1.876, allocations: 0.4923 MB / 0.6434 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005918/1.876, allocations: 3.062 kB / 0.6434 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001936/1.878, allocations: 42.48 kB / 0.6434 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003161/1.879, allocations: 80.34 kB / 0.6435 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001301/1.879, allocations: 38.92 kB / 0.6435 GB, free: 103.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004311/1.883, allocations: 1.989 MB / 0.6455 GB, free: 103.6 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.62e-07/1.883, allocations: 0 / 0.6455 GB, free: 103.6 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006554/1.89, allocations: 0.7289 MB / 0.6462 GB, free: 103.6 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 105 * Array equations: 3 * 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 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0071/1.897, allocations: 4.58 MB / 0.6507 GB, free: 101.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008079/1.905, allocations: 3.769 MB / 0.6544 GB, free: 101.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/1.905, allocations: 2.688 kB / 0.6544 GB, free: 101.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001845/1.907, allocations: 0.9482 MB / 0.6553 GB, free: 101.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002366/1.909, allocations: 291.8 kB / 0.6556 GB, free: 101.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02412/1.934, allocations: 7.72 MB / 0.6631 GB, free: 98.64 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005788/1.939, allocations: 3.032 MB / 0.6661 GB, free: 97.43 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003899/1.943, allocations: 1.682 MB / 0.6677 GB, free: 96.12 MB / 458.7 MB Notification: Performance of SimCode: time 1.443e-06/1.943, allocations: 2.625 kB / 0.6677 GB, free: 96.12 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.942/5.886, allocations: 85.04 MB / 0.7508 GB, free: 28.17 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat