Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.KinematicPTP.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.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.481/2.481, allocations: 235.1 MB / 243 MB, free: 9.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.754e-05/2.767e-05, allocations: 4 kB / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3897/0.3897, allocations: 54.84 MB / 358.1 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1537/0.5435, allocations: 82.39 MB / 440.5 MB, free: 12.36 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000245/0.5438, allocations: 63.97 kB / 440.6 MB, free: 12.3 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05976/0.6035, allocations: 11.36 MB / 451.9 MB, free: 0.9102 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.562e-06/0.6036, allocations: 0 / 451.9 MB, free: 0.9102 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.32e-05/0.6036, allocations: 8 kB / 451.9 MB, free: 0.9023 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.003692/0.6073, allocations: 0.8726 MB / 452.8 MB, free: 15.98 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.931e-05/0.6074, allocations: 8.031 kB / 452.8 MB, free: 15.97 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003491/0.6078, allocations: 67.42 kB / 452.9 MB, free: 15.91 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007928/0.6086, allocations: 325.4 kB / 453.2 MB, free: 15.55 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005897/0.6092, allocations: 258.9 kB / 453.4 MB, free: 15.26 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001508/0.6094, allocations: 27.91 kB / 453.5 MB, free: 15.23 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002351/0.6117, allocations: 0.7984 MB / 454.3 MB, free: 14.43 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/0.6132, allocations: 0.505 MB / 454.8 MB, free: 13.91 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.643e-05/0.6132, allocations: 0 / 454.8 MB, free: 13.91 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.258e-05/0.6133, allocations: 0 / 454.8 MB, free: 13.91 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.922e-05/0.6133, allocations: 8 kB / 454.8 MB, free: 13.9 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004442/0.6178, allocations: 1.326 MB / 456.1 MB, free: 12.53 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002468/0.6203, allocations: 0.5685 MB / 456.7 MB, free: 11.95 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008877/0.6213, allocations: 298.8 kB / 457 MB, free: 11.65 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001529/0.6214, allocations: 8.562 kB / 457 MB, free: 11.64 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.532e-05/0.6215, allocations: 35.12 kB / 457 MB, free: 11.6 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 6.332e-06/0.6215, allocations: 4 kB / 457 MB, free: 11.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.03767/0.6592, allocations: 7.11 MB / 464.1 MB, free: 4.32 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.685e-05/0.6594, allocations: 90.23 kB / 464.2 MB, free: 4.215 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006787/0.66, allocations: 310.3 kB / 464.5 MB, free: 3.91 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002985/0.6604, allocations: 25.7 kB / 464.5 MB, free: 3.879 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001844/0.6606, allocations: 247.7 kB / 464.8 MB, free: 3.633 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005988/0.6612, allocations: 378.2 kB / 465.2 MB, free: 3.258 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002407/0.6614, allocations: 0 / 465.2 MB, free: 3.258 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002124/0.6616, allocations: 354.8 kB / 465.5 MB, free: 2.902 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002573/0.6642, allocations: 0.9438 MB / 466.4 MB, free: 1.957 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002761/0.667, allocations: 1.04 MB / 467.5 MB, free: 0.8945 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002214/0.6693, allocations: 0.7891 MB / 468.3 MB, free: 112 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.148e-05/0.6694, allocations: 0 / 468.3 MB, free: 112 kB / 394.7 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.3434/1.013, allocations: 1.94 MB / 470.2 MB, free: 101.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.353e-05/1.013, allocations: 6.312 kB / 470.2 MB, free: 101.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.117e-05/1.013, allocations: 4.906 kB / 470.2 MB, free: 101.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.629e-05/1.013, allocations: 9.922 kB / 470.2 MB, free: 101.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007522/1.021, allocations: 456.3 kB / 470.7 MB, free: 101.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.792e-05/1.021, allocations: 6.672 kB / 470.7 MB, free: 101.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004601/1.025, allocations: 256 kB / 470.9 MB, free: 101.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000398/1.026, allocations: 39.84 kB / 471 MB, free: 101.2 MB / 394.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 () * 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.0005552/1.026, allocations: 123.1 kB / 471.1 MB, free: 101.1 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005217/1.031, allocations: 1.698 MB / 472.8 MB, free: 100.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004526/1.032, allocations: 57.78 kB / 472.8 MB, free: 100.5 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003195/1.032, allocations: 90.45 kB / 472.9 MB, free: 100.4 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.022e-05/1.032, allocations: 11.09 kB / 472.9 MB, free: 100.4 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.351e-05/1.032, allocations: 3.672 kB / 472.9 MB, free: 100.4 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-05/1.032, allocations: 9.234 kB / 473 MB, free: 100.4 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01475/1.047, allocations: 4.547 MB / 477.5 MB, free: 98.17 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.562e-05/1.047, allocations: 19.62 kB / 477.5 MB, free: 98.17 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00306/1.05, allocations: 418.3 kB / 477.9 MB, free: 98.14 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.303e-05/1.05, allocations: 28.72 kB / 478 MB, free: 98.14 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002574/1.051, allocations: 36.59 kB / 478 MB, free: 98.14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.044e-05/1.051, allocations: 37.83 kB / 478 MB, free: 98.13 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-05/1.051, allocations: 32.81 kB / 478.1 MB, free: 98.12 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004456/1.055, allocations: 3.243 MB / 481.3 MB, free: 94.81 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006563/1.056, allocations: 239.7 kB / 481.5 MB, free: 94.64 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001821/1.056, allocations: 34.98 kB / 481.6 MB, free: 94.64 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002524/1.059, allocations: 230.7 kB / 481.8 MB, free: 94.63 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007813/1.06, allocations: 241.3 kB / 482 MB, free: 94.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001434/1.06, allocations: 57.31 kB / 482.1 MB, free: 94.54 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003739/1.06, allocations: 236.6 kB / 482.3 MB, free: 94.41 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.06, allocations: 0 / 482.3 MB, free: 94.41 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001621/1.062, allocations: 191.1 kB / 482.5 MB, free: 94.41 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 () * 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.005706/1.067, allocations: 10.21 MB / 492.7 MB, free: 83.67 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003746/1.071, allocations: 1.596 MB / 494.3 MB, free: 82.11 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-05/1.071, allocations: 4 kB / 494.3 MB, free: 82.11 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003092/1.074, allocations: 0.7625 MB / 495.1 MB, free: 81.36 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001354/1.076, allocations: 107.5 kB / 495.2 MB, free: 81.28 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005551/1.081, allocations: 1.755 MB / 496.9 MB, free: 79.39 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005026/1.082, allocations: 0.9236 MB / 497.9 MB, free: 78.51 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001392/1.083, allocations: 212.1 kB / 498.1 MB, free: 78.32 MB / 394.7 MB Notification: Performance of SimCode: time 9.71e-07/1.083, allocations: 0 / 498.1 MB, free: 78.32 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.326/4.41, allocations: 15.37 MB / 0.5014 GB, free: 64.16 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.KinematicPTP_res.mat does not exist to compare? outputFormat=mat