Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.KinematicPTP.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.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.146/2.146, allocations: 209.2 MB / 224.8 MB, free: 0.6289 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004502/0.0004503, allocations: 8 kB / 282.7 MB, free: 9.566 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.104, allocations: 48.71 MB / 331.4 MB, free: 8.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4432/0.5473, allocations: 76.76 MB / 408.1 MB, free: 8.234 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/0.5476, allocations: 63.97 kB / 408.2 MB, free: 8.172 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07259/0.6202, allocations: 11.42 MB / 419.6 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.026e-06/0.6203, allocations: 0 / 419.6 MB, free: 12.74 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.396e-05/0.6203, allocations: 8 kB / 419.6 MB, free: 12.73 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.004829/0.6252, allocations: 0.9082 MB / 420.5 MB, free: 11.77 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.195e-05/0.6253, allocations: 15.97 kB / 420.5 MB, free: 11.76 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003263/0.6256, allocations: 82.53 kB / 420.6 MB, free: 11.67 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000236/0.6259, allocations: 56.22 kB / 420.7 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009751/0.6269, allocations: 349.2 kB / 421 MB, free: 11.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007699/0.6277, allocations: 271.1 kB / 421.3 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002052/0.6279, allocations: 36 kB / 421.3 MB, free: 10.9 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005235/0.6331, allocations: 0.8058 MB / 422.1 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.465e-05/0.6332, allocations: 7.938 kB / 422.1 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001284/0.6334, allocations: 16 kB / 422.1 MB, free: 10.05 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.905e-05/0.6334, allocations: 8 kB / 422.1 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00943/0.6428, allocations: 1.325 MB / 423.5 MB, free: 8.719 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006597/0.6495, allocations: 1.405 MB / 424.9 MB, free: 7.254 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007181/0.6568, allocations: 0.8696 MB / 425.7 MB, free: 6.363 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002237/0.6571, allocations: 4.562 kB / 425.8 MB, free: 6.359 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.858e-05/0.6571, allocations: 47.11 kB / 425.8 MB, free: 6.305 MB / 346.7 MB Notification: Performance of pre-optimization done (n=66): time 7.234e-06/0.6572, allocations: 0 / 425.8 MB, free: 6.305 MB / 346.7 MB Notification: Performance of matching and sorting (n=122): time 0.2522/0.9094, allocations: 18.28 MB / 444.1 MB, free: 3.852 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.574e-05/0.9095, allocations: 94.19 kB / 444.2 MB, free: 3.742 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008387/0.9104, allocations: 326 kB / 444.5 MB, free: 3.414 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003888/0.9108, allocations: 45.7 kB / 444.5 MB, free: 3.363 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001946/0.911, allocations: 235.8 kB / 444.8 MB, free: 3.129 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007645/0.9118, allocations: 410 kB / 445.2 MB, free: 2.723 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002648/0.9121, allocations: 20 kB / 445.2 MB, free: 2.703 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002036/0.9123, allocations: 354.8 kB / 445.5 MB, free: 2.348 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007986/0.9203, allocations: 1.459 MB / 447 MB, free: 0.8906 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0085/0.9289, allocations: 1.557 MB / 448.5 MB, free: 15.31 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007325/0.9363, allocations: 1.301 MB / 449.8 MB, free: 14.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.397e-06/0.9363, allocations: 0 / 449.8 MB, free: 14.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.01578/0.9521, allocations: 3.01 MB / 452.9 MB, free: 10.99 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.366e-05/0.9522, allocations: 4 kB / 452.9 MB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/0.9522, allocations: 0 / 452.9 MB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.254e-05/0.9522, allocations: 8 kB / 452.9 MB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005523/0.9578, allocations: 463.4 kB / 453.3 MB, free: 10.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.434e-05/0.9579, allocations: 4 kB / 453.3 MB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004078/0.962, allocations: 279.6 kB / 453.6 MB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003812/0.9624, allocations: 43.98 kB / 453.6 MB, free: 10.21 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 8 (kinematicPTP2a.noWphase,kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,kinematicPTP1b.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008153/0.9632, allocations: 217.6 kB / 453.8 MB, free: 9.984 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003803/0.9636, allocations: 55.34 kB / 453.9 MB, free: 9.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003572/0.964, allocations: 107.7 kB / 454 MB, free: 9.824 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.027e-05/0.964, allocations: 12 kB / 454 MB, free: 9.812 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.33e-05/0.964, allocations: 0 / 454 MB, free: 9.812 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.06e-05/0.9641, allocations: 3.984 kB / 454 MB, free: 9.809 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.023/0.9871, allocations: 5.58 MB / 459.6 MB, free: 3.887 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.962e-05/0.9872, allocations: 20 kB / 459.6 MB, free: 3.867 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003257/0.9905, allocations: 419.4 kB / 460 MB, free: 3.457 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.401e-05/0.9906, allocations: 32 kB / 460.1 MB, free: 3.426 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000245/0.9908, allocations: 44 kB / 460.1 MB, free: 3.383 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.115e-05/0.9909, allocations: 43.81 kB / 460.1 MB, free: 3.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.23e-05/0.9909, allocations: 31.88 kB / 460.2 MB, free: 3.309 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01797/1.009, allocations: 4.534 MB / 464.7 MB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009782/1.01, allocations: 244.4 kB / 465 MB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000313/1.01, allocations: 47.94 kB / 465 MB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003502/1.014, allocations: 263.7 kB / 465.3 MB, free: 13.35 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001177/1.015, allocations: 235.2 kB / 465.5 MB, free: 13.12 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002438/1.015, allocations: 56 kB / 465.5 MB, free: 13.06 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007088/1.016, allocations: 253.9 kB / 465.8 MB, free: 12.81 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.11e-07/1.016, allocations: 0 / 465.8 MB, free: 12.81 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002689/1.019, allocations: 232 kB / 466 MB, free: 12.59 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 94 * Number of states: 4 (integrator2.y,integrator3.y,integrator.y,integrator1.y) * Number of discrete variables: 8 (kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,kinematicPTP2b.noWphase,kinematicPTP2a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1a.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02548/1.044, allocations: 11.55 MB / 477.6 MB, free: 384 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01725/1.062, allocations: 2.562 MB / 480.1 MB, free: 13.81 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.96e-05/1.062, allocations: 4 kB / 480.1 MB, free: 13.81 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009531/1.071, allocations: 1.215 MB / 481.3 MB, free: 12.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002088/1.073, allocations: 121.2 kB / 481.5 MB, free: 12.48 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03737/1.111, allocations: 8.814 MB / 490.3 MB, free: 3.297 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007938/1.112, allocations: 0.9318 MB / 491.2 MB, free: 2.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001574/1.113, allocations: 207.4 kB / 491.4 MB, free: 2.137 MB / 410.7 MB Notification: Performance of SimCode: time 3.777e-06/1.113, allocations: 0 / 491.4 MB, free: 2.137 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.982/4.096, allocations: 15.25 MB / 0.4948 GB, free: 2.871 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.KinematicPTP_res.mat does not exist to compare? outputFormat=mat