Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009408/0.0009408, allocations: 181.6 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.274/1.274, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0008872/0.0008872, allocations: 104.9 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002764/0.0002765, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2269/0.2272, allocations: 47.57 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1039/0.3312, allocations: 93.78 MB / 469.7 MB, free: 2.852 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002862/0.3315, allocations: 87.94 kB / 469.8 MB, free: 2.766 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2638/0.5953, allocations: 38.19 MB / 0.4961 GB, free: 93.51 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.457e-06/0.5953, allocations: 1 kB / 0.4961 GB, free: 93.51 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001372/0.5955, allocations: 34.66 kB / 0.4961 GB, free: 93.5 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.004695/0.6002, allocations: 1.626 MB / 0.4977 GB, free: 92.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.313e-05/0.6002, allocations: 12.66 kB / 0.4977 GB, free: 92.71 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006736/0.6009, allocations: 226.4 kB / 0.4979 GB, free: 92.67 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008672/0.6018, allocations: 183.6 kB / 0.4981 GB, free: 92.58 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001828/0.6036, allocations: 0.787 MB / 0.4989 GB, free: 92.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003324/0.604, allocations: 244 kB / 0.4991 GB, free: 92.19 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003951/0.6044, allocations: 156.5 kB / 0.4992 GB, free: 92.19 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003703/0.6081, allocations: 1.659 MB / 0.5009 GB, free: 92.08 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.187e-05/0.6082, allocations: 9.562 kB / 0.5009 GB, free: 92.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000156/0.6083, allocations: 63.53 kB / 0.5009 GB, free: 92.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.898e-05/0.6084, allocations: 36.16 kB / 0.501 GB, free: 92.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003062/0.6115, allocations: 1.543 MB / 0.5025 GB, free: 92.06 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008635/0.6201, allocations: 6.053 MB / 0.5084 GB, free: 90.53 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001687/0.6218, allocations: 0.9302 MB / 0.5093 GB, free: 90.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.952e-05/0.6219, allocations: 14.91 kB / 0.5093 GB, free: 90.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001072/0.623, allocations: 0.6649 MB / 0.5099 GB, free: 90.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=92): time 3.567e-06/0.623, allocations: 0 / 0.5099 GB, free: 90.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=123): time 0.03141/0.6544, allocations: 9.883 MB / 0.5196 GB, free: 87.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.221e-05/0.6545, allocations: 302.7 kB / 0.5199 GB, free: 86.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009328/0.6555, allocations: 0.689 MB / 0.5206 GB, free: 86.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001148/0.6556, allocations: 53.42 kB / 0.5206 GB, free: 86.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003935/0.656, allocations: 0.6555 MB / 0.5213 GB, free: 85.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002938/0.6563, allocations: 413.3 kB / 0.5216 GB, free: 85.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.758e-05/0.6564, allocations: 31.5 kB / 0.5217 GB, free: 85.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.6565, allocations: 405.1 kB / 0.5221 GB, free: 85.17 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001628/0.6582, allocations: 0.8317 MB / 0.5229 GB, free: 84.85 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001767/0.66, allocations: 1.141 MB / 0.524 GB, free: 84.18 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001677/0.6616, allocations: 0.8138 MB / 0.5248 GB, free: 83.83 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/0.6617, allocations: 0 / 0.5248 GB, free: 83.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004169/0.6658, allocations: 2.108 MB / 0.5268 GB, free: 82.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.278e-05/0.6659, allocations: 8.25 kB / 0.5269 GB, free: 82.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.076e-05/0.6659, allocations: 10.98 kB / 0.5269 GB, free: 82.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004133/0.6664, allocations: 183.3 kB / 0.527 GB, free: 82.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001511/0.6679, allocations: 372.3 kB / 0.5274 GB, free: 82.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002823/0.6707, allocations: 4.479 MB / 0.5318 GB, free: 77.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001572/0.6723, allocations: 206.7 kB / 0.532 GB, free: 77.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001735/0.6725, allocations: 55.38 kB / 0.532 GB, free: 77.59 MB / 378.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): 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.0008561/0.6734, allocations: 385.2 kB / 0.5324 GB, free: 77.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002764/0.6736, allocations: 106.7 kB / 0.5325 GB, free: 77.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003653/0.6773, allocations: 1.839 MB / 0.5343 GB, free: 75.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.6773, allocations: 16 kB / 0.5343 GB, free: 75.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.6773, allocations: 0 / 0.5343 GB, free: 75.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.6774, allocations: 10.52 kB / 0.5343 GB, free: 75.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007402/0.6848, allocations: 4.513 MB / 0.5387 GB, free: 71.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.85e-05/0.6848, allocations: 8 kB / 0.5387 GB, free: 71.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001082/0.6859, allocations: 285.4 kB / 0.539 GB, free: 71.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005007/0.6864, allocations: 335.4 kB / 0.5393 GB, free: 71.11 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/0.6865, allocations: 36 kB / 0.5393 GB, free: 71.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00127/0.6878, allocations: 2.104 MB / 0.5414 GB, free: 68.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.752e-06/0.6878, allocations: 11.94 kB / 0.5414 GB, free: 68.87 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004365/0.6922, allocations: 2.982 MB / 0.5443 GB, free: 65.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000698/0.693, allocations: 328.9 kB / 0.5446 GB, free: 65.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003233/0.6933, allocations: 51.7 kB / 0.5447 GB, free: 65.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001136/0.6945, allocations: 159.4 kB / 0.5448 GB, free: 65.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003444/0.6948, allocations: 185 kB / 0.545 GB, free: 65.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.361e-05/0.6949, allocations: 47.52 kB / 0.5451 GB, free: 65.11 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007502/0.6957, allocations: 0.5272 MB / 0.5456 GB, free: 64.66 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6957, allocations: 0 / 0.5456 GB, free: 64.66 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001455/0.6971, allocations: 351.9 kB / 0.5459 GB, free: 64.32 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * 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 (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.004937/0.7021, allocations: 6.302 MB / 0.5521 GB, free: 57.97 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003736/0.7059, allocations: 2.092 MB / 0.5541 GB, free: 56.03 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.828e-06/0.7059, allocations: 4 kB / 0.5541 GB, free: 56.03 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001918/0.7078, allocations: 1.071 MB / 0.5552 GB, free: 55.03 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001184/0.709, allocations: 175.7 kB / 0.5553 GB, free: 54.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01624/0.7253, allocations: 13.36 MB / 0.5684 GB, free: 41.97 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007386/0.7261, allocations: 1.207 MB / 0.5696 GB, free: 40.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009792/0.7271, allocations: 164.7 kB / 0.5697 GB, free: 40.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008274/0.7279, allocations: 0.5313 MB / 0.5702 GB, free: 40.32 MB / 378.7 MB Notification: Performance of SimCode: time 7.825e-06/0.7279, allocations: 0 / 0.5702 GB, free: 40.32 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04427/0.7722, allocations: 27.24 MB / 0.5968 GB, free: 13.53 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001366/0.7724, allocations: 227.7 kB / 0.597 GB, free: 13.29 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.539/3.312, allocations: 4 kB / 0.597 GB, free: 13.29 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis_fmu --startTime=0 --stopTime=1.6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis.fmu > Modelica_3.2.3_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_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat does not exist to compare? outputFormat=mat