Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.KinematicPTP.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/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/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.01004/0.01004, allocations: 166.1 kB / 15.11 MB, free: 5.934 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.702/1.702, allocations: 170.8 MB / 186.6 MB, free: 1.125 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001963/0.001963, allocations: 115 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.5083/0.5083, allocations: 38.05 MB / 303.7 MB, free: 42.31 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006461/0.0006463, allocations: 12 kB / 363 MB, free: 5.508 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1181, allocations: 48.71 MB / 411.7 MB, free: 4.719 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4058/0.5239, allocations: 76.75 MB / 488.4 MB, free: 10.97 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/0.5243, allocations: 73.64 kB / 488.5 MB, free: 10.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06588/0.5902, allocations: 11.42 MB / 499.9 MB, free: 1.125 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5902, allocations: 0 / 499.9 MB, free: 1.125 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.637e-05/0.5902, allocations: 8 kB / 499.9 MB, free: 1.117 MB / 330.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.003179/0.5934, allocations: 0.9198 MB / 0.4891 GB, free: 188 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.5935, allocations: 8.031 kB / 0.4891 GB, free: 180 kB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001225/0.5936, allocations: 88.05 kB / 0.4892 GB, free: 116 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001301/0.5938, allocations: 59.44 kB / 0.4893 GB, free: 56 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006694/0.5944, allocations: 346.4 kB / 0.4896 GB, free: 15.71 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005638/0.595, allocations: 268 kB / 0.4898 GB, free: 15.44 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001305/0.5952, allocations: 37.44 kB / 0.4899 GB, free: 15.41 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003763/0.599, allocations: 0.811 MB / 0.4907 GB, free: 14.77 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.529e-05/0.599, allocations: 4 kB / 0.4907 GB, free: 14.77 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.085e-05/0.5991, allocations: 18 kB / 0.4907 GB, free: 14.77 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.779e-05/0.5991, allocations: 12.69 kB / 0.4907 GB, free: 14.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007253/0.6064, allocations: 1.314 MB / 0.492 GB, free: 13.7 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005455/0.6119, allocations: 1.395 MB / 0.4934 GB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006828/0.6188, allocations: 0.8684 MB / 0.4942 GB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001986/0.619, allocations: 12.48 kB / 0.4942 GB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.291e-05/0.6191, allocations: 47.05 kB / 0.4943 GB, free: 11.84 MB / 346.7 MB Notification: Performance of pre-optimization done (n=66): time 8.415e-06/0.6191, allocations: 0 / 0.4943 GB, free: 11.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=122): time 0.2284/0.8475, allocations: 18.27 MB / 0.5121 GB, free: 11.82 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.194e-05/0.8477, allocations: 94.19 kB / 0.5122 GB, free: 11.71 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007108/0.8484, allocations: 326.8 kB / 0.5125 GB, free: 11.44 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003256/0.8487, allocations: 50.7 kB / 0.5125 GB, free: 11.4 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/0.8489, allocations: 175 kB / 0.5127 GB, free: 11.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005925/0.8495, allocations: 410.6 kB / 0.5131 GB, free: 10.9 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002898/0.8498, allocations: 19.56 kB / 0.5131 GB, free: 10.9 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002011/0.85, allocations: 376.8 kB / 0.5135 GB, free: 10.55 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007515/0.8575, allocations: 1.456 MB / 0.5149 GB, free: 9.18 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00758/0.8652, allocations: 1.557 MB / 0.5164 GB, free: 7.602 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006879/0.8721, allocations: 1.299 MB / 0.5177 GB, free: 6.309 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.8721, allocations: 4 kB / 0.5177 GB, free: 6.305 MB / 362.7 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.01521/0.8873, allocations: 3.014 MB / 0.5206 GB, free: 3.277 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.793e-05/0.8874, allocations: 4 kB / 0.5206 GB, free: 3.273 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.8874, allocations: 0 / 0.5206 GB, free: 3.273 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.123e-05/0.8874, allocations: 8 kB / 0.5207 GB, free: 3.266 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005375/0.8928, allocations: 463.3 kB / 0.5211 GB, free: 2.812 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.215e-05/0.8929, allocations: 9.188 kB / 0.5211 GB, free: 2.809 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003919/0.8968, allocations: 283.7 kB / 0.5214 GB, free: 2.531 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002477/0.8971, allocations: 39.98 kB / 0.5214 GB, free: 2.492 MB / 362.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.0007258/0.8978, allocations: 224.6 kB / 0.5216 GB, free: 2.266 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003322/0.8981, allocations: 59.25 kB / 0.5217 GB, free: 2.207 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003484/0.8985, allocations: 111.7 kB / 0.5218 GB, free: 2.098 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.83e-05/0.8985, allocations: 12 kB / 0.5218 GB, free: 2.086 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.8986, allocations: 0 / 0.5218 GB, free: 2.086 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.678e-05/0.8986, allocations: 7.969 kB / 0.5218 GB, free: 2.078 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02194/0.9205, allocations: 5.578 MB / 0.5273 GB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.077e-05/0.9206, allocations: 20 kB / 0.5273 GB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003063/0.9237, allocations: 411.5 kB / 0.5277 GB, free: 11.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.292e-05/0.9237, allocations: 28 kB / 0.5277 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000183/0.9239, allocations: 51.98 kB / 0.5277 GB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.712e-05/0.924, allocations: 43.81 kB / 0.5278 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-05/0.924, allocations: 35.81 kB / 0.5278 GB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01556/0.9396, allocations: 4.533 MB / 0.5322 GB, free: 6.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000636/0.9403, allocations: 240.4 kB / 0.5325 GB, free: 5.926 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001994/0.9405, allocations: 51.94 kB / 0.5325 GB, free: 5.875 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002489/0.943, allocations: 251.8 kB / 0.5328 GB, free: 5.629 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007814/0.9438, allocations: 231.3 kB / 0.533 GB, free: 5.402 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001481/0.944, allocations: 59.98 kB / 0.533 GB, free: 5.344 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004875/0.9445, allocations: 249.9 kB / 0.5333 GB, free: 5.098 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.675e-06/0.9445, allocations: 0 / 0.5333 GB, free: 5.098 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001634/0.9461, allocations: 235.9 kB / 0.5335 GB, free: 4.867 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.02765/0.9738, allocations: 11.53 MB / 0.5448 GB, free: 8.672 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01666/0.9905, allocations: 2.562 MB / 0.5473 GB, free: 6.109 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.203e-05/0.9906, allocations: 4 kB / 0.5473 GB, free: 6.105 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006914/0.9975, allocations: 1.214 MB / 0.5485 GB, free: 4.898 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001357/0.9989, allocations: 128.6 kB / 0.5486 GB, free: 4.777 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03417/1.033, allocations: 8.773 MB / 0.5572 GB, free: 11.64 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008427/1.034, allocations: 0.9396 MB / 0.5581 GB, free: 10.68 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002291/1.036, allocations: 189.6 kB / 0.5582 GB, free: 10.49 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001323/1.038, allocations: 203.3 kB / 0.5584 GB, free: 10.29 MB / 410.7 MB Notification: Performance of SimCode: time 1.052e-06/1.038, allocations: 0 / 0.5584 GB, free: 10.29 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06444/1.102, allocations: 19.5 MB / 0.5775 GB, free: 6.844 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003113/1.103, allocations: 159.6 kB / 0.5776 GB, free: 6.605 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.08/4.183, allocations: 0 / 0.5776 GB, free: 6.605 MB / 426.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