Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.KinematicPTP.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.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 Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo): time 0.01049/0.0105, allocations: 102.6 kB / 15.05 MB, free: 6.023 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo): time 0.001132/0.001132, allocations: 171.2 kB / 15.93 MB, free: 5.965 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo): time 1.606/1.606, allocations: 170.9 MB / 187.6 MB, free: 1.004 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo): time 0.2605/0.2605, allocations: 38.08 MB / 265.1 MB, free: 3.98 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004605/0.0004606, allocations: 12 kB / 323.6 MB, free: 29.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09278/0.09327, allocations: 48.71 MB / 372.3 MB, free: 12.87 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003919/0.09725, allocations: 1.844 MB / 374.1 MB, free: 11.01 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002893/0.1002, allocations: 0.882 MB / 375 MB, free: 10.12 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002647/0.1005, allocations: 11.94 kB / 375 MB, free: 10.11 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004289/0.101, allocations: 63.67 kB / 375.1 MB, free: 10.05 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004542/0.1014, allocations: 87.66 kB / 375.2 MB, free: 9.961 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001152/0.1026, allocations: 207.7 kB / 375.4 MB, free: 9.758 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001032/0.1037, allocations: 407.2 kB / 375.8 MB, free: 9.359 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000278/0.104, allocations: 73.02 kB / 375.8 MB, free: 9.285 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000651/0.1046, allocations: 251.2 kB / 376.1 MB, free: 9.039 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000689/0.1053, allocations: 290.9 kB / 376.4 MB, free: 8.754 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001362/0.1055, allocations: 28 kB / 376.4 MB, free: 8.727 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001451/0.1057, allocations: 32 kB / 376.4 MB, free: 8.695 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003085/0.106, allocations: 147.6 kB / 376.6 MB, free: 8.551 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001497/0.1062, allocations: 89.45 kB / 376.7 MB, free: 8.457 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007288/0.1069, allocations: 363.4 kB / 377 MB, free: 8.102 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.1069, allocations: 4 kB / 377 MB, free: 8.098 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1069, allocations: 0 / 377 MB, free: 8.098 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.107, allocations: 0 / 377 MB, free: 8.098 MB / 282.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.004548/0.1115, allocations: 0.8927 MB / 377.9 MB, free: 7.156 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.634e-05/0.1116, allocations: 8.031 kB / 377.9 MB, free: 7.148 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002236/0.1118, allocations: 90.52 kB / 378 MB, free: 7.051 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002102/0.1121, allocations: 59.48 kB / 378.1 MB, free: 6.992 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009063/0.113, allocations: 345.1 kB / 378.4 MB, free: 6.617 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007737/0.1138, allocations: 279.1 kB / 378.7 MB, free: 6.309 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002009/0.114, allocations: 36 kB / 378.7 MB, free: 6.273 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005137/0.1192, allocations: 0.7941 MB / 379.5 MB, free: 5.461 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.504e-05/0.1192, allocations: 0 / 379.5 MB, free: 5.461 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001283/0.1194, allocations: 16 kB / 379.5 MB, free: 5.445 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.157e-05/0.1194, allocations: 8 kB / 379.5 MB, free: 5.438 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009014/0.1284, allocations: 1.314 MB / 380.8 MB, free: 4.125 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005801/0.1343, allocations: 1.381 MB / 382.2 MB, free: 2.688 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00757/0.1419, allocations: 0.8976 MB / 383.1 MB, free: 1.773 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001852/0.1422, allocations: 9.062 kB / 383.1 MB, free: 1.766 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.924e-05/0.1422, allocations: 38.56 kB / 383.2 MB, free: 1.719 MB / 282.7 MB Notification: Performance of pre-optimization done (n=64): time 7.694e-06/0.1423, allocations: 3.984 kB / 383.2 MB, free: 1.715 MB / 282.7 MB Notification: Performance of matching and sorting (n=120): time 0.1898/0.3321, allocations: 18.2 MB / 401.4 MB, free: 15.34 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.559e-05/0.3322, allocations: 90.23 kB / 401.5 MB, free: 15.23 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006009/0.3328, allocations: 342.8 kB / 401.8 MB, free: 14.89 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003161/0.3332, allocations: 41.7 kB / 401.8 MB, free: 14.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000173/0.3333, allocations: 189.3 kB / 402 MB, free: 14.65 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005761/0.3339, allocations: 398 kB / 402.4 MB, free: 14.26 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002339/0.3342, allocations: 28 kB / 402.4 MB, free: 14.23 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002326/0.3344, allocations: 374.6 kB / 402.8 MB, free: 13.86 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007126/0.3416, allocations: 1.447 MB / 404.2 MB, free: 12.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007319/0.3489, allocations: 1.541 MB / 405.8 MB, free: 10.85 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006726/0.3557, allocations: 1.293 MB / 407.1 MB, free: 9.555 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.3558, allocations: 0 / 407.1 MB, free: 9.555 MB / 314.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.01494/0.3707, allocations: 2.994 MB / 410.1 MB, free: 6.551 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.12e-05/0.3708, allocations: 4 kB / 410.1 MB, free: 6.547 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/0.3708, allocations: 11.95 kB / 410.1 MB, free: 6.535 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.83e-05/0.3708, allocations: 4 kB / 410.1 MB, free: 6.531 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005408/0.3763, allocations: 455.4 kB / 410.5 MB, free: 6.086 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.289e-05/0.3763, allocations: 4 kB / 410.5 MB, free: 6.082 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003815/0.3801, allocations: 275.7 kB / 410.8 MB, free: 5.812 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002592/0.3804, allocations: 39.92 kB / 410.8 MB, free: 5.773 MB / 314.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: 6 (kinematicPTP2a.noWphase,kinematicPTP2b.moving[1],kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],kinematicPTP1b.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 140 * 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.0007285/0.3812, allocations: 222.7 kB / 411.1 MB, free: 5.547 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003394/0.3815, allocations: 59.34 kB / 411.1 MB, free: 5.488 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002998/0.3818, allocations: 107.7 kB / 411.2 MB, free: 5.387 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.877e-05/0.3819, allocations: 15.95 kB / 411.2 MB, free: 5.371 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/0.3819, allocations: 0 / 411.2 MB, free: 5.371 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.641e-05/0.3819, allocations: 7.984 kB / 411.3 MB, free: 5.363 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02208/0.404, allocations: 5.536 MB / 416.8 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.221e-05/0.4041, allocations: 20 kB / 416.8 MB, free: 15.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0031/0.4072, allocations: 407.8 kB / 417.2 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.144e-05/0.4072, allocations: 39.88 kB / 417.2 MB, free: 15.03 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001464/0.4074, allocations: 51.98 kB / 417.3 MB, free: 14.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.409e-05/0.4075, allocations: 39.86 kB / 417.3 MB, free: 14.94 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.211e-05/0.4075, allocations: 31.88 kB / 417.4 MB, free: 14.91 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01514/0.4227, allocations: 4.5 MB / 421.9 MB, free: 9.531 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006429/0.4233, allocations: 232.4 kB / 422.1 MB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001947/0.4236, allocations: 51.98 kB / 422.1 MB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002406/0.426, allocations: 247.8 kB / 422.4 MB, free: 8.992 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008451/0.4269, allocations: 235.2 kB / 422.6 MB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001562/0.427, allocations: 56 kB / 422.7 MB, free: 8.707 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004143/0.4275, allocations: 237.9 kB / 422.9 MB, free: 8.477 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4275, allocations: 4 kB / 422.9 MB, free: 8.473 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001498/0.429, allocations: 224 kB / 423.1 MB, free: 8.254 MB / 330.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: 6 (kinematicPTP2b.moving[1],kinematicPTP1b.moving[1],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 (120): * Single equations (assignments): 120 * 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.2836/0.7126, allocations: 11.48 MB / 434.6 MB, free: 60.98 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.01232/0.725, allocations: 2.534 MB / 437.1 MB, free: 60.64 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.501e-05/0.7251, allocations: 2.594 kB / 437.1 MB, free: 60.64 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00688/0.732, allocations: 1.197 MB / 438.3 MB, free: 60.3 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00147/0.7335, allocations: 135.8 kB / 438.5 MB, free: 60.27 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03171/0.7652, allocations: 8.697 MB / 447.2 MB, free: 55.51 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000535/0.7658, allocations: 0.9287 MB / 448.1 MB, free: 54.79 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.002253/0.7681, allocations: 192.9 kB / 448.3 MB, free: 54.71 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001282/0.7694, allocations: 201.5 kB / 448.5 MB, free: 54.59 MB / 330.7 MB Notification: Performance of SimCode: time 1.654e-06/0.7694, allocations: 0 / 448.5 MB, free: 54.59 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05167/0.8211, allocations: 19.32 MB / 467.8 MB, free: 37.12 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001331/0.8213, allocations: 170.7 kB / 468 MB, free: 36.87 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.358/4.179, allocations: 0 / 468 MB, free: 36.87 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Blocks.KinematicPTP_res.mat does not exist to compare? outputFormat=mat