Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01092/0.01093, allocations: 109.2 kB / 15.06 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001175/0.001175, allocations: 177.7 kB / 15.95 MB, free: 5.52 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.115/2.115, allocations: 194.5 MB / 211.3 MB, free: 10.69 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo): time 0.2816/0.2816, allocations: 40.04 MB / 296.5 MB, free: 6.105 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004838/0.000484, allocations: 19.98 kB / 361.1 MB, free: 9.504 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1249, allocations: 54.88 MB / 416 MB, free: 2.523 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.05176/0.1767, allocations: 33.98 MB / 450 MB, free: 448 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3394/0.5162, allocations: 8.539 MB / 458.6 MB, free: 30.34 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007081/0.5233, allocations: 165.9 kB / 458.7 MB, free: 30.34 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005604/0.529, allocations: 1.701 MB / 460.4 MB, free: 30.22 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01855/0.5476, allocations: 5.02 MB / 465.4 MB, free: 29.87 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003091/0.5507, allocations: 0.4909 MB / 465.9 MB, free: 29.86 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.02545/0.5762, allocations: 9.376 MB / 475.3 MB, free: 28.82 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005736/0.582, allocations: 3.014 MB / 478.3 MB, free: 28.48 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0021/0.5842, allocations: 0.8855 MB / 479.2 MB, free: 28.33 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002741/0.587, allocations: 1.244 MB / 480.4 MB, free: 28.15 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000851/0.5879, allocations: 124.2 kB / 480.6 MB, free: 28.15 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003292/0.5912, allocations: 0.9395 MB / 481.5 MB, free: 28.14 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002976/0.5942, allocations: 1.4 MB / 482.9 MB, free: 27.98 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001801/0.5961, allocations: 0.7325 MB / 483.6 MB, free: 27.8 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01051/0.6066, allocations: 5.044 MB / 488.7 MB, free: 27.47 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.6067, allocations: 5.438 kB / 488.7 MB, free: 27.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.096e-06/0.6067, allocations: 4 kB / 488.7 MB, free: 27.46 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002679/0.607, allocations: 0 / 488.7 MB, free: 27.46 MB / 378.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.01718/0.6242, allocations: 3.692 MB / 492.4 MB, free: 25.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.6242, allocations: 11.91 kB / 492.4 MB, free: 25.42 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002909/0.6272, allocations: 0.6397 MB / 493 MB, free: 25.23 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1837/0.8109, allocations: 8.311 MB / 0.4896 GB, free: 22.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009645/0.8206, allocations: 2.572 MB / 0.4921 GB, free: 21.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002848/0.821, allocations: 196.4 kB / 0.4923 GB, free: 21.42 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001783/0.8228, allocations: 262 kB / 0.4925 GB, free: 21.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02381/0.8466, allocations: 8.72 MB / 0.5011 GB, free: 17.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001829/0.8468, allocations: 39.66 kB / 0.5011 GB, free: 17.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001326/0.8482, allocations: 132 kB / 0.5012 GB, free: 17.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004672/0.8529, allocations: 1.776 MB / 0.503 GB, free: 15.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02152/0.8744, allocations: 7.361 MB / 0.5101 GB, free: 8.363 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06479/0.9393, allocations: 33.96 MB / 0.5433 GB, free: 5.598 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008943/0.9483, allocations: 2.537 MB / 0.5458 GB, free: 2.918 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006012/0.9489, allocations: 325.1 kB / 0.5461 GB, free: 2.551 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.935e-05/0.949, allocations: 43.12 kB / 0.5461 GB, free: 2.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 5.24e-06/0.949, allocations: 8 kB / 0.5461 GB, free: 2.492 MB / 410.7 MB Notification: Performance of matching and sorting (n=133): time 0.04204/0.9911, allocations: 9.177 MB / 0.5551 GB, free: 9.176 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001254/0.9913, allocations: 192.6 kB / 0.5553 GB, free: 8.945 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01067/1.002, allocations: 4.049 MB / 0.5592 GB, free: 4.914 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003536/1.002, allocations: 45.7 kB / 0.5593 GB, free: 4.863 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003691/1.006, allocations: 2.959 MB / 0.5622 GB, free: 1.922 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009892/1.007, allocations: 0.5424 MB / 0.5627 GB, free: 1.383 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006753/1.008, allocations: 120 kB / 0.5628 GB, free: 1.266 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004801/1.008, allocations: 0.5419 MB / 0.5634 GB, free: 0.7148 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005235/1.014, allocations: 1.674 MB / 0.565 GB, free: 15.04 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009011/1.023, allocations: 5.444 MB / 0.5703 GB, free: 7.676 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008024/1.031, allocations: 2.97 MB / 0.5732 GB, free: 4.707 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001304/1.031, allocations: 44 kB / 0.5732 GB, free: 4.664 MB / 442.7 MB Notification: Performance of matching and sorting (n=748) (initialization): time 0.0217/1.053, allocations: 7.013 MB / 0.5801 GB, free: 13.65 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000121/1.053, allocations: 64 kB / 0.5802 GB, free: 13.59 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002119/1.053, allocations: 136 kB / 0.5803 GB, free: 13.45 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001574/1.055, allocations: 434.6 kB / 0.5807 GB, free: 13.03 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008185/1.063, allocations: 1.322 MB / 0.582 GB, free: 11.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006069/1.069, allocations: 3.168 MB / 0.5851 GB, free: 8.41 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006447/1.075, allocations: 303.4 kB / 0.5854 GB, free: 8.113 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001383/1.077, allocations: 374.5 kB / 0.5857 GB, free: 7.75 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 616 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (713): * Single equations (assignments): 709 * 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.006014/1.083, allocations: 1.931 MB / 0.5876 GB, free: 5.805 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009215/1.084, allocations: 329.3 kB / 0.5879 GB, free: 5.48 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005609/1.089, allocations: 1.691 MB / 0.5896 GB, free: 3.77 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-05/1.09, allocations: 16 kB / 0.5896 GB, free: 3.754 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/1.09, allocations: 4 kB / 0.5896 GB, free: 3.75 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.609e-05/1.09, allocations: 11.92 kB / 0.5896 GB, free: 3.738 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0185/1.108, allocations: 5.431 MB / 0.5949 GB, free: 14.26 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.998e-05/1.108, allocations: 4 kB / 0.5949 GB, free: 14.25 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00192/1.11, allocations: 187.7 kB / 0.5951 GB, free: 14.07 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0012/1.111, allocations: 221.5 kB / 0.5953 GB, free: 13.85 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002447/1.112, allocations: 34.52 kB / 0.5953 GB, free: 13.82 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004692/1.116, allocations: 2.57 MB / 0.5979 GB, free: 11.12 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/1.116, allocations: 0 / 0.5979 GB, free: 11.12 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009501/1.126, allocations: 3.737 MB / 0.6015 GB, free: 7.309 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002201/1.128, allocations: 0.5357 MB / 0.602 GB, free: 6.75 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008625/1.129, allocations: 22.81 kB / 0.602 GB, free: 6.73 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002109/1.131, allocations: 59.94 kB / 0.6021 GB, free: 6.672 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003546/1.132, allocations: 68.53 kB / 0.6022 GB, free: 6.602 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001491/1.132, allocations: 39.98 kB / 0.6022 GB, free: 6.562 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007548/1.139, allocations: 2.546 MB / 0.6047 GB, free: 4.035 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.31e-07/1.139, allocations: 0 / 0.6047 GB, free: 4.035 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007477/1.147, allocations: 0.8671 MB / 0.6055 GB, free: 3.168 MB / 474.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 98 * 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.01032/1.157, allocations: 4.809 MB / 0.6102 GB, free: 14.29 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01127/1.168, allocations: 4.058 MB / 0.6142 GB, free: 10.25 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.288e-06/1.169, allocations: 0 / 0.6142 GB, free: 10.25 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002799/1.171, allocations: 1.008 MB / 0.6152 GB, free: 9.234 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003234/1.175, allocations: 357 kB / 0.6155 GB, free: 8.887 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4206/1.595, allocations: 122.6 MB / 0.7352 GB, free: 50.96 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006212/1.602, allocations: 3.025 MB / 0.7382 GB, free: 49.74 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008165/1.61, allocations: 1.811 MB / 0.74 GB, free: 49.59 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003935/1.614, allocations: 1.641 MB / 0.7416 GB, free: 48.27 MB / 490.7 MB Notification: Performance of SimCode: time 1.292e-06/1.614, allocations: 0 / 0.7416 GB, free: 48.27 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1676/1.782, allocations: 66.96 MB / 0.807 GB, free: 2.062 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002329/1.782, allocations: 200.3 kB / 0.8072 GB, free: 1.816 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.089/6.871, allocations: 8 kB / 0.8072 GB, free: 1.809 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat