Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.586/1.586, allocations: 171.2 MB / 186.8 MB, free: 1.109 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003586/0.0003586, allocations: 8 kB / 233.4 MB, free: 0.8164 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08244/0.08284, allocations: 38.77 MB / 272.1 MB, free: 9.961 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3599/0.4428, allocations: 83.76 MB / 355.9 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003547/0.4432, allocations: 91.95 kB / 356 MB, free: 15.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1498/0.593, allocations: 38.05 MB / 394 MB, free: 8.953 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.5931, allocations: 0 / 394 MB, free: 8.953 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001348/0.5932, allocations: 39.98 kB / 394.1 MB, free: 8.914 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: 387 * Number of variables: 387 Notification: Performance of Generate backend data structure: time 0.006176/0.5994, allocations: 1.624 MB / 395.7 MB, free: 7.234 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.293e-05/0.5995, allocations: 11.97 kB / 395.7 MB, free: 7.223 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008329/0.6004, allocations: 223.8 kB / 395.9 MB, free: 6.992 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006727/0.601, allocations: 182 kB / 396.1 MB, free: 6.812 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002197/0.6033, allocations: 0.8022 MB / 396.9 MB, free: 5.965 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004778/0.6038, allocations: 244.1 kB / 397.1 MB, free: 5.707 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005216/0.6043, allocations: 155.9 kB / 397.3 MB, free: 5.555 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006184/0.6105, allocations: 1.686 MB / 399 MB, free: 3.84 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.531e-05/0.6107, allocations: 7.906 kB / 399 MB, free: 3.832 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002655/0.6109, allocations: 60 kB / 399 MB, free: 3.773 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.781e-05/0.611, allocations: 36 kB / 399.1 MB, free: 3.738 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00679/0.6178, allocations: 1.601 MB / 400.7 MB, free: 2.133 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01778/0.6357, allocations: 6.069 MB / 406.7 MB, free: 11.83 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004068/0.6398, allocations: 0.9959 MB / 407.7 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000142/0.64, allocations: 9 kB / 407.7 MB, free: 10.81 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002405/0.6424, allocations: 0.6762 MB / 408.4 MB, free: 10.09 MB / 346.7 MB Notification: Performance of pre-optimization done (n=90): time 4.979e-06/0.6425, allocations: 0 / 408.4 MB, free: 10.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=121): time 0.3271/0.9696, allocations: 9.956 MB / 418.4 MB, free: 93.7 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/0.9698, allocations: 301.3 kB / 418.7 MB, free: 93.36 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002046/0.9718, allocations: 0.7098 MB / 419.4 MB, free: 93.24 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000391/0.9723, allocations: 55.27 kB / 419.4 MB, free: 93.21 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007725/0.9731, allocations: 0.6783 MB / 420.1 MB, free: 93.01 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007336/0.9738, allocations: 411.9 kB / 420.5 MB, free: 92.81 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000196/0.974, allocations: 26.81 kB / 420.5 MB, free: 92.81 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.9742, allocations: 362 kB / 420.9 MB, free: 92.5 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004021/0.9782, allocations: 0.8598 MB / 421.8 MB, free: 92.49 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004272/0.9826, allocations: 1.169 MB / 422.9 MB, free: 92.18 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003915/0.9865, allocations: 0.8358 MB / 423.8 MB, free: 92.16 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.939e-05/0.9866, allocations: 2.594 kB / 423.8 MB, free: 92.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.009563/0.9962, allocations: 2.121 MB / 425.9 MB, free: 92.05 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.132e-05/0.9963, allocations: 9 kB / 425.9 MB, free: 92.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.946e-05/0.9963, allocations: 7.812 kB / 425.9 MB, free: 92.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000639/0.997, allocations: 178.3 kB / 426.1 MB, free: 92.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00348/1, allocations: 374.3 kB / 426.4 MB, free: 92.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00501/1.006, allocations: 4.492 MB / 430.9 MB, free: 88.19 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003048/1.009, allocations: 202.7 kB / 431.1 MB, free: 88.19 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002597/1.009, allocations: 61.11 kB / 431.2 MB, free: 88.19 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 (axis.gear.bearingFriction.free,$whenCondition1,$PRE.axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.mode,pathPlanning.path.motion_ref,pathPlanning.path.noWphase,pathPlanning.pathToAxis1.moving[1],pathPlanning.terminateSimulation.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 166 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001211/1.01, allocations: 385.1 kB / 431.6 MB, free: 88.07 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003606/1.011, allocations: 102.4 kB / 431.7 MB, free: 88.02 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003636/1.011, allocations: 136.5 kB / 431.8 MB, free: 87.99 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.945e-05/1.011, allocations: 14.53 kB / 431.8 MB, free: 87.99 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.89e-05/1.011, allocations: 1.531 kB / 431.8 MB, free: 87.99 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.528e-05/1.011, allocations: 11.2 kB / 431.8 MB, free: 87.99 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01649/1.028, allocations: 4.563 MB / 436.4 MB, free: 87.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.941e-05/1.028, allocations: 11.25 kB / 436.4 MB, free: 87.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002433/1.03, allocations: 281 kB / 436.7 MB, free: 87.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001366/1.032, allocations: 484 kB / 437.1 MB, free: 87.23 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003321/1.032, allocations: 44.25 kB / 437.2 MB, free: 87.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002306/1.034, allocations: 2.181 MB / 439.4 MB, free: 85.46 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.454e-05/1.034, allocations: 13.2 kB / 439.4 MB, free: 85.46 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009775/1.044, allocations: 3.053 MB / 442.4 MB, free: 83.48 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001077/1.045, allocations: 336 kB / 442.8 MB, free: 83.22 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004339/1.046, allocations: 45.06 kB / 442.8 MB, free: 83.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002204/1.048, allocations: 161.5 kB / 443 MB, free: 83.18 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007319/1.049, allocations: 185.8 kB / 443.1 MB, free: 83.13 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001557/1.049, allocations: 49.92 kB / 443.2 MB, free: 83.12 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001355/1.05, allocations: 0.5346 MB / 443.7 MB, free: 82.89 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.092e-06/1.05, allocations: 0 / 443.7 MB, free: 82.89 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002503/1.053, allocations: 354.2 kB / 444.1 MB, free: 82.84 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 7 (axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.gear.bearingFriction.phi,axis.motor.La.i,axis.motor.C.v,axis.controller.PI.x,load.w) * Number of discrete variables: 9 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,pathPlanning.path.motion_ref,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase) * Number of discrete states: 3 (axis.gear.bearingFriction.mode,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 111 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.009871/1.063, allocations: 6.227 MB / 450.3 MB, free: 77.77 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007491/1.07, allocations: 2.092 MB / 452.4 MB, free: 76.79 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.451e-05/1.07, allocations: 3.438 kB / 452.4 MB, free: 76.79 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003737/1.074, allocations: 1.053 MB / 453.5 MB, free: 76.3 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001772/1.076, allocations: 164.3 kB / 453.6 MB, free: 76.24 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03912/1.115, allocations: 13.46 MB / 467.1 MB, free: 66.75 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001247/1.116, allocations: 1.212 MB / 468.3 MB, free: 66.01 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00203/1.118, allocations: 0.5241 MB / 468.8 MB, free: 65.6 MB / 346.7 MB Notification: Performance of SimCode: time 1.363e-06/1.119, allocations: 0 / 468.8 MB, free: 65.6 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.313/4.431, allocations: 40.15 MB / 0.497 GB, free: 38.47 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat does not exist to compare? outputFormat=mat