Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.KinematicPTP.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.01017/0.01017, allocations: 176.1 kB / 15.12 MB, free: 5.93 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.938/1.938, allocations: 194.5 MB / 210.3 MB, free: 7.605 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002001/0.002, allocations: 124.6 kB / 255.6 MB, free: 10.22 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2507/0.2507, allocations: 40.01 MB / 340.8 MB, free: 11.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004521/0.000452, allocations: 11.25 kB / 406.3 MB, free: 51.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09589/0.09638, allocations: 54.87 MB / 461.1 MB, free: 3.203 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4852/0.5816, allocations: 83.14 MB / 0.5315 GB, free: 25.79 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/0.5819, allocations: 63.58 kB / 0.5316 GB, free: 25.79 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05611/0.638, allocations: 11.44 MB / 0.5427 GB, free: 24.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.446e-06/0.6381, allocations: 1.281 kB / 0.5427 GB, free: 24.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.591e-05/0.6381, allocations: 6.406 kB / 0.5428 GB, free: 24.8 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.003742/0.6419, allocations: 0.9102 MB / 0.5436 GB, free: 24.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.6419, allocations: 8.75 kB / 0.5436 GB, free: 24.29 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003065/0.6422, allocations: 91.84 kB / 0.5437 GB, free: 24.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001891/0.6424, allocations: 58.94 kB / 0.5438 GB, free: 24.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006834/0.6431, allocations: 342.1 kB / 0.5441 GB, free: 23.99 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005264/0.6437, allocations: 274 kB / 0.5444 GB, free: 23.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001452/0.6438, allocations: 35.66 kB / 0.5444 GB, free: 23.8 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003963/0.6478, allocations: 0.8181 MB / 0.5452 GB, free: 23.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.548e-05/0.6479, allocations: 1.344 kB / 0.5452 GB, free: 23.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.625e-05/0.648, allocations: 17.12 kB / 0.5452 GB, free: 23.71 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.729e-05/0.648, allocations: 9.281 kB / 0.5452 GB, free: 23.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006965/0.655, allocations: 1.322 MB / 0.5465 GB, free: 23.69 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004731/0.6598, allocations: 1.385 MB / 0.5479 GB, free: 23.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005403/0.6652, allocations: 0.8718 MB / 0.5487 GB, free: 23.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002306/0.6655, allocations: 12.84 kB / 0.5487 GB, free: 23.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.6656, allocations: 40.81 kB / 0.5488 GB, free: 23.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 3.306e-06/0.6656, allocations: 0 / 0.5488 GB, free: 23.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=122): time 0.1807/0.8463, allocations: 18.29 MB / 0.5666 GB, free: 21.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.968e-05/0.8464, allocations: 89.89 kB / 0.5667 GB, free: 21.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005923/0.847, allocations: 329.7 kB / 0.567 GB, free: 21.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002918/0.8473, allocations: 43.92 kB / 0.5671 GB, free: 21.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.8475, allocations: 186.5 kB / 0.5673 GB, free: 21.04 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000459/0.8479, allocations: 404.7 kB / 0.5676 GB, free: 20.78 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002877/0.8482, allocations: 25.88 kB / 0.5677 GB, free: 20.78 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.8484, allocations: 366.5 kB / 0.568 GB, free: 20.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006811/0.8552, allocations: 1.452 MB / 0.5694 GB, free: 20.45 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006995/0.8622, allocations: 1.566 MB / 0.571 GB, free: 20.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006449/0.8687, allocations: 1.29 MB / 0.5722 GB, free: 20.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.605e-06/0.8688, allocations: 3.938 kB / 0.5722 GB, free: 20.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.01553/0.8843, allocations: 3.019 MB / 0.5752 GB, free: 20.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.357e-05/0.8844, allocations: 10 kB / 0.5752 GB, free: 20.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.735e-05/0.8844, allocations: 7.281 kB / 0.5752 GB, free: 20.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.52e-05/0.8845, allocations: 7.781 kB / 0.5752 GB, free: 20.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006669/0.8911, allocations: 452.5 kB / 0.5756 GB, free: 20.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.771e-05/0.8912, allocations: 7.812 kB / 0.5756 GB, free: 20.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005135/0.8964, allocations: 277.3 kB / 0.5759 GB, free: 20.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003744/0.8968, allocations: 40.78 kB / 0.5759 GB, free: 20.14 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.001042/0.8978, allocations: 221.8 kB / 0.5762 GB, free: 20.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005327/0.8984, allocations: 70.45 kB / 0.5762 GB, free: 19.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004396/0.8988, allocations: 111.7 kB / 0.5763 GB, free: 19.95 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.771e-05/0.8989, allocations: 11.72 kB / 0.5763 GB, free: 19.95 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.721e-05/0.8989, allocations: 0 / 0.5763 GB, free: 19.95 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.21e-05/0.8989, allocations: 11.47 kB / 0.5764 GB, free: 19.95 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02771/0.9266, allocations: 5.576 MB / 0.5818 GB, free: 17.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-05/0.9267, allocations: 23.38 kB / 0.5818 GB, free: 17.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004005/0.9308, allocations: 416.2 kB / 0.5822 GB, free: 17.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.322e-05/0.9309, allocations: 31.06 kB / 0.5823 GB, free: 17.72 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002251/0.9311, allocations: 46.12 kB / 0.5823 GB, free: 17.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.685e-05/0.9312, allocations: 39.61 kB / 0.5823 GB, free: 17.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.267e-05/0.9312, allocations: 35.91 kB / 0.5824 GB, free: 17.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01996/0.9512, allocations: 4.53 MB / 0.5868 GB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008916/0.9521, allocations: 243.7 kB / 0.587 GB, free: 14.35 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002601/0.9524, allocations: 58.16 kB / 0.5871 GB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003366/0.9558, allocations: 247.2 kB / 0.5873 GB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009523/0.9568, allocations: 234.4 kB / 0.5875 GB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001846/0.957, allocations: 54.31 kB / 0.5876 GB, free: 14.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005823/0.9576, allocations: 255.9 kB / 0.5878 GB, free: 14.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-07/0.9576, allocations: 0 / 0.5878 GB, free: 14.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002109/0.9597, allocations: 233 kB / 0.5881 GB, free: 14.05 MB / 378.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.01756/0.9773, allocations: 11.53 MB / 0.5993 GB, free: 20.12 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01184/0.9892, allocations: 2.563 MB / 0.6018 GB, free: 19.64 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.926e-05/0.9893, allocations: 3.906 kB / 0.6018 GB, free: 19.64 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00648/0.9958, allocations: 1.209 MB / 0.603 GB, free: 19.41 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001397/0.9972, allocations: 136.8 kB / 0.6031 GB, free: 19.38 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03115/1.028, allocations: 8.775 MB / 0.6117 GB, free: 14.8 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006968/1.029, allocations: 0.9279 MB / 0.6126 GB, free: 13.85 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002302/1.031, allocations: 189.8 kB / 0.6128 GB, free: 13.66 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001264/1.033, allocations: 207.4 kB / 0.613 GB, free: 13.46 MB / 394.7 MB Notification: Performance of SimCode: time 1.623e-06/1.033, allocations: 0 / 0.613 GB, free: 13.46 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05963/1.092, allocations: 19.48 MB / 0.632 GB, free: 10.02 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002735/1.093, allocations: 160.3 kB / 0.6322 GB, free: 9.785 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.573/4.665, allocations: 0 / 0.6322 GB, free: 9.785 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Blocks.KinematicPTP_res.mat does not exist to compare? outputFormat=mat