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.584/2.584, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004455/0.0004455, allocations: 15.98 kB / 314.5 MB, free: 9.473 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3474/0.3479, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1502/0.4982, allocations: 83.13 MB / 452.5 MB, free: 7.359 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002872/0.4985, allocations: 67.92 kB / 452.6 MB, free: 7.293 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06038/0.5589, allocations: 11.44 MB / 464 MB, free: 11.82 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.559, allocations: 0 / 464 MB, free: 11.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.884e-05/0.559, allocations: 4 kB / 464 MB, free: 11.82 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.0037/0.5627, allocations: 0.9197 MB / 464.9 MB, free: 10.84 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.5628, allocations: 8.031 kB / 464.9 MB, free: 10.84 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002301/0.563, allocations: 82.53 kB / 465 MB, free: 10.75 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001688/0.5632, allocations: 63.44 kB / 465.1 MB, free: 10.68 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007172/0.564, allocations: 341.5 kB / 465.4 MB, free: 10.31 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005803/0.5646, allocations: 271.1 kB / 465.7 MB, free: 10.01 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001757/0.5647, allocations: 40.25 kB / 465.7 MB, free: 9.969 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004013/0.5688, allocations: 0.8175 MB / 466.5 MB, free: 9.137 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.887e-05/0.5688, allocations: 0 / 466.5 MB, free: 9.137 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.525e-05/0.5689, allocations: 12 kB / 466.5 MB, free: 9.125 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.606e-05/0.569, allocations: 8 kB / 466.5 MB, free: 9.117 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007246/0.5762, allocations: 1.329 MB / 467.9 MB, free: 7.789 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004475/0.5808, allocations: 1.39 MB / 469.3 MB, free: 6.34 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005529/0.5863, allocations: 0.8696 MB / 470.1 MB, free: 5.449 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002042/0.5866, allocations: 12.55 kB / 470.1 MB, free: 5.438 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.756e-05/0.5867, allocations: 39.12 kB / 470.2 MB, free: 5.391 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 4.018e-06/0.5867, allocations: 0 / 470.2 MB, free: 5.391 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.4886/1.075, allocations: 18.27 MB / 488.4 MB, free: 95 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.23e-05/1.075, allocations: 94.02 kB / 488.5 MB, free: 94.89 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005687/1.076, allocations: 327.6 kB / 488.9 MB, free: 94.61 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003274/1.076, allocations: 49.7 kB / 488.9 MB, free: 94.55 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/1.076, allocations: 237.2 kB / 489.1 MB, free: 94.33 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005569/1.077, allocations: 408.3 kB / 489.5 MB, free: 94 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002326/1.077, allocations: 20 kB / 489.6 MB, free: 93.98 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.659e-05/1.077, allocations: 357.4 kB / 489.9 MB, free: 93.63 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007794/1.085, allocations: 1.451 MB / 491.4 MB, free: 92.37 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00694/1.092, allocations: 1.559 MB / 492.9 MB, free: 90.79 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00633/1.099, allocations: 1.293 MB / 494.2 MB, free: 89.5 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/1.099, allocations: 0 / 494.2 MB, free: 89.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.0141/1.113, allocations: 3.008 MB / 497.2 MB, free: 86.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.135e-05/1.113, allocations: 4 kB / 497.2 MB, free: 86.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.329e-05/1.113, allocations: 4 kB / 497.2 MB, free: 86.49 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.65e-05/1.113, allocations: 8 kB / 497.2 MB, free: 86.48 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005249/1.118, allocations: 460.6 kB / 497.7 MB, free: 86.05 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.067e-05/1.118, allocations: 11.16 kB / 497.7 MB, free: 86.04 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003922/1.122, allocations: 279.7 kB / 498 MB, free: 85.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003321/1.122, allocations: 38.14 kB / 498 MB, free: 85.73 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 () * 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.0007013/1.123, allocations: 220.5 kB / 498.2 MB, free: 85.52 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003392/1.124, allocations: 64.12 kB / 498.3 MB, free: 85.46 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003013/1.124, allocations: 107.7 kB / 498.4 MB, free: 85.36 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.385e-05/1.124, allocations: 12 kB / 498.4 MB, free: 85.34 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/1.124, allocations: 0 / 498.4 MB, free: 85.34 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.929e-05/1.124, allocations: 11.92 kB / 498.4 MB, free: 85.33 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02052/1.144, allocations: 5.57 MB / 0.4922 GB, free: 79.45 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.074e-05/1.145, allocations: 23.98 kB / 0.4922 GB, free: 79.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002963/1.148, allocations: 421.2 kB / 0.4926 GB, free: 79.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.615e-05/1.148, allocations: 31.95 kB / 0.4926 GB, free: 78.99 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001616/1.148, allocations: 44 kB / 0.4927 GB, free: 78.95 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.303e-05/1.148, allocations: 43.84 kB / 0.4927 GB, free: 78.9 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.129e-05/1.148, allocations: 31.88 kB / 0.4927 GB, free: 78.87 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01429/1.162, allocations: 4.525 MB / 0.4972 GB, free: 73.47 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007411/1.163, allocations: 252.3 kB / 0.4974 GB, free: 73.21 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001931/1.163, allocations: 47.98 kB / 0.4974 GB, free: 73.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002391/1.166, allocations: 251.8 kB / 0.4977 GB, free: 72.91 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008171/1.166, allocations: 239.2 kB / 0.4979 GB, free: 72.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001298/1.167, allocations: 61.67 kB / 0.498 GB, free: 72.62 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003993/1.167, allocations: 249.9 kB / 0.4982 GB, free: 72.38 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.31e-07/1.167, allocations: 0 / 0.4982 GB, free: 72.38 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001455/1.168, allocations: 232 kB / 0.4984 GB, free: 72.15 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.01559/1.184, allocations: 11.54 MB / 0.5097 GB, free: 59.95 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01176/1.196, allocations: 2.569 MB / 0.5122 GB, free: 57.38 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.061e-05/1.196, allocations: 4 kB / 0.5122 GB, free: 57.38 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006482/1.202, allocations: 1.211 MB / 0.5134 GB, free: 56.17 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00139/1.204, allocations: 125.1 kB / 0.5135 GB, free: 56.05 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03089/1.235, allocations: 8.819 MB / 0.5221 GB, free: 46.87 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005319/1.235, allocations: 0.9317 MB / 0.523 GB, free: 45.91 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00146/1.237, allocations: 207.4 kB / 0.5232 GB, free: 45.71 MB / 394.7 MB Notification: Performance of SimCode: time 1.112e-06/1.237, allocations: 0 / 0.5232 GB, free: 45.71 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.115/4.352, allocations: 15.22 MB / 0.5381 GB, free: 30.49 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