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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.419/2.419, allocations: 235 MB / 248 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.353e-05/3.37e-05, allocations: 4 kB / 309.8 MB, free: 1.242 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3877/0.3878, allocations: 54.85 MB / 364.6 MB, free: 5.566 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1547/0.5426, allocations: 83.05 MB / 447.7 MB, free: 13.44 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002407/0.5429, allocations: 55.98 kB / 447.7 MB, free: 13.38 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05845/0.6013, allocations: 11.42 MB / 459.1 MB, free: 1.961 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.6014, allocations: 0 / 459.1 MB, free: 1.961 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.92e-05/0.6014, allocations: 8 kB / 459.1 MB, free: 1.953 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.003373/0.6048, allocations: 0.8766 MB / 460 MB, free: 1.027 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.691e-05/0.6049, allocations: 8.031 kB / 460 MB, free: 1.02 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001587/0.6051, allocations: 87.19 kB / 460.1 MB, free: 0.9258 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001601/0.6052, allocations: 63.42 kB / 460.2 MB, free: 0.8633 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006731/0.6059, allocations: 329.3 kB / 460.5 MB, free: 0.5039 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005599/0.6065, allocations: 279.6 kB / 460.8 MB, free: 200 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001333/0.6066, allocations: 36 kB / 460.8 MB, free: 164 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001536/0.6082, allocations: 0.5612 MB / 461.4 MB, free: 15.57 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.584e-05/0.6082, allocations: 0 / 461.4 MB, free: 15.57 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.39e-05/0.6083, allocations: 17.03 kB / 461.4 MB, free: 15.56 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.671e-05/0.6084, allocations: 8 kB / 461.4 MB, free: 15.55 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00236/0.6107, allocations: 0.8105 MB / 462.2 MB, free: 14.74 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004152/0.6149, allocations: 1.399 MB / 463.6 MB, free: 13.29 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002489/0.6174, allocations: 0.5901 MB / 464.2 MB, free: 12.68 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000869/0.6183, allocations: 314.8 kB / 464.5 MB, free: 12.37 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001493/0.6185, allocations: 12.55 kB / 464.5 MB, free: 12.36 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.963e-05/0.6185, allocations: 43.62 kB / 464.6 MB, free: 12.3 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 3.847e-06/0.6185, allocations: 0 / 464.6 MB, free: 12.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.03842/0.657, allocations: 7.398 MB / 472 MB, free: 4.738 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.738e-05/0.6571, allocations: 90.23 kB / 472 MB, free: 4.633 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006357/0.6577, allocations: 328.3 kB / 472.4 MB, free: 4.309 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002379/0.658, allocations: 45.7 kB / 472.4 MB, free: 4.258 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001778/0.6582, allocations: 243.8 kB / 472.6 MB, free: 4.016 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005784/0.6588, allocations: 390.1 kB / 473 MB, free: 3.629 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000236/0.659, allocations: 28 kB / 473.1 MB, free: 3.602 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.6592, allocations: 354.8 kB / 473.4 MB, free: 3.246 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0028/0.662, allocations: 0.9673 MB / 474.4 MB, free: 2.281 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002954/0.665, allocations: 1.066 MB / 475.4 MB, free: 1.191 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002415/0.6674, allocations: 0.8046 MB / 476.2 MB, free: 400 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.6675, allocations: 11.94 kB / 476.3 MB, free: 388 kB / 394.7 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.006325/0.6738, allocations: 2.024 MB / 478.3 MB, free: 14.35 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.362e-05/0.6739, allocations: 9.406 kB / 478.3 MB, free: 14.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.6739, allocations: 0 / 478.3 MB, free: 14.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.51e-05/0.6739, allocations: 4 kB / 478.3 MB, free: 14.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005532/0.6795, allocations: 463.4 kB / 478.7 MB, free: 13.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.228e-05/0.6796, allocations: 8 kB / 478.7 MB, free: 13.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004057/0.6836, allocations: 271.7 kB / 479 MB, free: 13.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002788/0.6839, allocations: 39.98 kB / 479.1 MB, free: 13.57 MB / 410.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.0005667/0.6845, allocations: 164.7 kB / 479.2 MB, free: 13.41 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003425/0.6849, allocations: 71.19 kB / 479.3 MB, free: 13.34 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003731/0.6853, allocations: 115.7 kB / 479.4 MB, free: 13.22 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.117e-05/0.6853, allocations: 12 kB / 479.4 MB, free: 13.21 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.165e-05/0.6853, allocations: 0 / 479.4 MB, free: 13.21 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.739e-05/0.6853, allocations: 7.969 kB / 479.4 MB, free: 13.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01556/0.7009, allocations: 4.763 MB / 484.2 MB, free: 8.098 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.161e-05/0.701, allocations: 20.97 kB / 484.2 MB, free: 8.078 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003186/0.7042, allocations: 419.3 kB / 484.6 MB, free: 7.668 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.893e-05/0.7043, allocations: 32 kB / 484.6 MB, free: 7.637 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001627/0.7044, allocations: 48 kB / 484.7 MB, free: 7.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.241e-05/0.7045, allocations: 35.86 kB / 484.7 MB, free: 7.555 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.315e-05/0.7045, allocations: 35.81 kB / 484.8 MB, free: 7.52 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00626/0.7108, allocations: 3.314 MB / 488.1 MB, free: 3.336 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006717/0.7115, allocations: 248.3 kB / 488.3 MB, free: 3.074 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001992/0.7118, allocations: 47.98 kB / 488.4 MB, free: 3.027 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002517/0.7143, allocations: 247.8 kB / 488.6 MB, free: 2.785 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007716/0.7151, allocations: 239.3 kB / 488.8 MB, free: 2.551 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001538/0.7152, allocations: 56 kB / 488.9 MB, free: 2.496 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004937/0.7158, allocations: 251.1 kB / 489.1 MB, free: 2.25 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7158, allocations: 0 / 489.1 MB, free: 2.25 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001414/0.7172, allocations: 232 kB / 489.4 MB, free: 2.023 MB / 410.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.008917/0.7261, allocations: 10.3 MB / 499.7 MB, free: 7.055 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004813/0.731, allocations: 1.677 MB / 0.4896 GB, free: 5.383 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.027e-05/0.7311, allocations: 0 / 0.4896 GB, free: 5.383 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003643/0.7347, allocations: 0.8052 MB / 0.4904 GB, free: 4.582 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.7361, allocations: 125.5 kB / 0.4905 GB, free: 4.461 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00639/0.7425, allocations: 1.887 MB / 0.4923 GB, free: 2.238 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007463/0.7433, allocations: 0.928 MB / 0.4932 GB, free: 1.281 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001428/0.7447, allocations: 207.4 kB / 0.4934 GB, free: 1.078 MB / 426.7 MB Notification: Performance of SimCode: time 1.282e-06/0.7447, allocations: 0 / 0.4934 GB, free: 1.078 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.818/3.562, allocations: 15.43 MB / 0.5085 GB, free: 1.625 MB / 442.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