Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002229/0.00223, allocations: 181.5 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.471/2.471, allocations: 205.2 MB / 219.4 MB, free: 14.22 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001113/0.001113, allocations: 82.77 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.116e-05/4.131e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1062, allocations: 47.57 MB / 369.2 MB, free: 2.098 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4495/0.5558, allocations: 93.69 MB / 462.9 MB, free: 15.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003591/0.5562, allocations: 89.75 kB / 463 MB, free: 15.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.154/0.7102, allocations: 38.16 MB / 0.4894 GB, free: 10.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.109e-06/0.7103, allocations: 0 / 0.4894 GB, free: 10.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001201/0.7104, allocations: 31.94 kB / 0.4894 GB, free: 10.95 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: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.005821/0.7163, allocations: 1.515 MB / 0.4909 GB, free: 9.387 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.168e-05/0.7164, allocations: 12.03 kB / 0.4909 GB, free: 9.375 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007821/0.7171, allocations: 219.8 kB / 0.4911 GB, free: 9.148 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007101/0.7179, allocations: 189.9 kB / 0.4913 GB, free: 8.961 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002248/0.7201, allocations: 0.7944 MB / 0.4921 GB, free: 8.121 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004787/0.7207, allocations: 240.1 kB / 0.4923 GB, free: 7.867 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004747/0.7211, allocations: 155.9 kB / 0.4924 GB, free: 7.715 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005309/0.7265, allocations: 1.569 MB / 0.494 GB, free: 6.113 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.939e-05/0.7266, allocations: 3.906 kB / 0.494 GB, free: 6.109 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000269/0.7269, allocations: 68 kB / 0.494 GB, free: 6.043 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.827e-05/0.727, allocations: 36 kB / 0.4941 GB, free: 6.008 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005115/0.7321, allocations: 1.383 MB / 0.4954 GB, free: 4.621 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01791/0.7501, allocations: 6.049 MB / 0.5013 GB, free: 14.34 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002638/0.7528, allocations: 0.8401 MB / 0.5022 GB, free: 13.48 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001415/0.7542, allocations: 472.7 kB / 0.5026 GB, free: 13.01 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001371/0.7544, allocations: 12.78 kB / 0.5026 GB, free: 13 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001596/0.756, allocations: 0.5947 MB / 0.5032 GB, free: 12.36 MB / 394.7 MB Notification: Performance of pre-optimization done (n=92): time 4.459e-06/0.756, allocations: 0 / 0.5032 GB, free: 12.36 MB / 394.7 MB Notification: Performance of matching and sorting (n=123): time 0.02362/0.7797, allocations: 5.58 MB / 0.5087 GB, free: 6.684 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001908/0.7799, allocations: 299.7 kB / 0.5089 GB, free: 6.324 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001687/0.7816, allocations: 0.6835 MB / 0.5096 GB, free: 5.633 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003971/0.782, allocations: 53.7 kB / 0.5097 GB, free: 5.574 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008193/0.7829, allocations: 0.6689 MB / 0.5103 GB, free: 4.895 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007377/0.7836, allocations: 425.9 kB / 0.5107 GB, free: 4.473 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001843/0.7838, allocations: 28 kB / 0.5107 GB, free: 4.445 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.784, allocations: 358.8 kB / 0.5111 GB, free: 4.086 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002/0.786, allocations: 0.6445 MB / 0.5117 GB, free: 3.441 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00245/0.7885, allocations: 0.9627 MB / 0.5127 GB, free: 2.371 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002054/0.7906, allocations: 0.6324 MB / 0.5133 GB, free: 1.742 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.539e-05/0.7907, allocations: 4 kB / 0.5133 GB, free: 1.738 MB / 394.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005236/0.7959, allocations: 1.694 MB / 0.5149 GB, free: 28 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.805e-05/0.796, allocations: 8 kB / 0.5149 GB, free: 20 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.8e-05/0.7961, allocations: 8 kB / 0.5149 GB, free: 12 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006656/0.7968, allocations: 182.5 kB / 0.5151 GB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003609/0.8004, allocations: 371.5 kB / 0.5155 GB, free: 15.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005978/0.8064, allocations: 4.451 MB / 0.5198 GB, free: 10.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003079/0.8096, allocations: 207.9 kB / 0.52 GB, free: 10.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002933/0.8099, allocations: 55.98 kB / 0.5201 GB, free: 10.35 MB / 410.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0005636/0.8105, allocations: 188 kB / 0.5203 GB, free: 10.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003481/0.8108, allocations: 110.7 kB / 0.5204 GB, free: 10.05 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004664/0.8155, allocations: 1.491 MB / 0.5218 GB, free: 8.539 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.383e-05/0.8156, allocations: 12 kB / 0.5218 GB, free: 8.527 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.8156, allocations: 4 kB / 0.5218 GB, free: 8.523 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-05/0.8157, allocations: 7.969 kB / 0.5218 GB, free: 8.516 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01302/0.8287, allocations: 4.241 MB / 0.526 GB, free: 4.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-05/0.8288, allocations: 16.16 kB / 0.526 GB, free: 4.074 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002424/0.8312, allocations: 279.6 kB / 0.5263 GB, free: 3.801 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009767/0.8322, allocations: 325.4 kB / 0.5266 GB, free: 3.477 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002086/0.8324, allocations: 43.98 kB / 0.5266 GB, free: 3.434 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002478/0.8349, allocations: 2.091 MB / 0.5287 GB, free: 1.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-05/0.835, allocations: 19.89 kB / 0.5287 GB, free: 1.16 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.296/1.131, allocations: 2.553 MB / 0.5312 GB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001109/1.132, allocations: 329.5 kB / 0.5315 GB, free: 112.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003874/1.133, allocations: 45.69 kB / 0.5315 GB, free: 112.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00227/1.135, allocations: 161 kB / 0.5317 GB, free: 112.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007611/1.136, allocations: 187.4 kB / 0.5319 GB, free: 112.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000162/1.136, allocations: 48.95 kB / 0.5319 GB, free: 112.3 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00127/1.137, allocations: 0.5141 MB / 0.5324 GB, free: 112.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.11e-07/1.137, allocations: 1.188 kB / 0.5324 GB, free: 112.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002389/1.14, allocations: 347.1 kB / 0.5327 GB, free: 112.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * Number of states: 7 (axis.gear.gear.phi_a,axis.gear.spring.phi_rel,axis.gear.spring.w_rel,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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 112 * 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.007395/1.147, allocations: 5.874 MB / 0.5385 GB, free: 108 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005119/1.152, allocations: 1.764 MB / 0.5402 GB, free: 107.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.709e-05/1.152, allocations: 2.875 kB / 0.5402 GB, free: 107.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00314/1.155, allocations: 0.891 MB / 0.5411 GB, free: 107.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002145/1.158, allocations: 171.4 kB / 0.5412 GB, free: 107.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01015/1.168, allocations: 2.748 MB / 0.5439 GB, free: 106.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001222/1.169, allocations: 1.21 MB / 0.5451 GB, free: 105.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001762/1.171, allocations: 0.5265 MB / 0.5456 GB, free: 105.8 MB / 410.7 MB Notification: Performance of SimCode: time 1.573e-06/1.171, allocations: 0 / 0.5456 GB, free: 105.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.488/4.659, allocations: 40.69 MB / 0.5853 GB, free: 92.38 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis_fmu --startTime=0 --stopTime=1.6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat does not exist to compare? outputFormat=mat