Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.456/1.456, allocations: 221.5 MB / 230.3 MB, free: 7.594 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 90.06 kB / 281.2 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.588e-05/2.573e-05, allocations: 4 kB / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1173, allocations: 50.42 MB / 387.6 MB, free: 7.48 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3722/0.4895, allocations: 95.8 MB / 483.4 MB, free: 14.89 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002411/0.4898, allocations: 87.95 kB / 483.4 MB, free: 14.8 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09532/0.5851, allocations: 38.7 MB / 0.5099 GB, free: 8.004 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.5853, allocations: 0 / 0.5099 GB, free: 8.004 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.739e-05/0.5854, allocations: 39.98 kB / 0.51 GB, free: 7.965 MB / 394.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.003805/0.5892, allocations: 1.508 MB / 0.5114 GB, free: 6.406 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.205e-05/0.5893, allocations: 12.02 kB / 0.5114 GB, free: 6.395 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005382/0.5898, allocations: 185.9 kB / 0.5116 GB, free: 6.211 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001436/0.5913, allocations: 0.7828 MB / 0.5124 GB, free: 5.383 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003137/0.5916, allocations: 188.1 kB / 0.5126 GB, free: 5.18 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002192/0.5918, allocations: 103.9 kB / 0.5127 GB, free: 5.078 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00265/0.5945, allocations: 1.291 MB / 0.5139 GB, free: 3.785 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002708/0.5972, allocations: 1.345 MB / 0.5152 GB, free: 2.414 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.207e-05/0.5973, allocations: 11.84 kB / 0.5152 GB, free: 2.402 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001198/0.5974, allocations: 0 / 0.5152 GB, free: 2.402 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.467e-05/0.5974, allocations: 40 kB / 0.5153 GB, free: 2.363 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009968/0.6074, allocations: 5.788 MB / 0.5209 GB, free: 12.36 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001302/0.6088, allocations: 0.7928 MB / 0.5217 GB, free: 11.55 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006582/0.6094, allocations: 452.7 kB / 0.5221 GB, free: 11.1 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.678e-05/0.6095, allocations: 12.77 kB / 0.5222 GB, free: 11.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008722/0.6104, allocations: 0.5706 MB / 0.5227 GB, free: 10.48 MB / 410.7 MB Notification: Performance of pre-optimization done (n=92): time 2.886e-06/0.6104, allocations: 0 / 0.5227 GB, free: 10.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=123): time 0.01223/0.6227, allocations: 5.324 MB / 0.5279 GB, free: 5.051 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000149/0.6228, allocations: 300 kB / 0.5282 GB, free: 4.691 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008789/0.6237, allocations: 0.6128 MB / 0.5288 GB, free: 4.074 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00011/0.6239, allocations: 33.7 kB / 0.5288 GB, free: 4.035 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005559/0.6244, allocations: 0.6468 MB / 0.5295 GB, free: 3.375 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003495/0.6248, allocations: 402.1 kB / 0.5298 GB, free: 2.977 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.36e-05/0.6249, allocations: 4.031 kB / 0.5298 GB, free: 2.973 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001998/0.6251, allocations: 406.7 kB / 0.5302 GB, free: 2.566 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001008/0.6261, allocations: 0.6133 MB / 0.5308 GB, free: 1.953 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001236/0.6273, allocations: 0.9315 MB / 0.5317 GB, free: 0.9062 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001049/0.6284, allocations: 0.5997 MB / 0.5323 GB, free: 320 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.6284, allocations: 0 / 0.5323 GB, free: 320 kB / 410.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.002829/0.6312, allocations: 1.62 MB / 0.5339 GB, free: 14.67 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.729e-05/0.6313, allocations: 11.95 kB / 0.5339 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.81e-05/0.6313, allocations: 11.98 kB / 0.5339 GB, free: 14.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004233/0.6318, allocations: 166.5 kB / 0.5341 GB, free: 14.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001706/0.6335, allocations: 375.5 kB / 0.5344 GB, free: 14.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00368/0.6372, allocations: 4.3 MB / 0.5386 GB, free: 9.457 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00172/0.6389, allocations: 179.8 kB / 0.5388 GB, free: 9.281 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001433/0.6391, allocations: 52 kB / 0.5389 GB, free: 9.23 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: axis.gear.bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0004362/0.6395, allocations: 158.8 kB / 0.539 GB, free: 9.07 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002469/0.642, allocations: 1.259 MB / 0.5402 GB, free: 7.797 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000217/0.6422, allocations: 106.7 kB / 0.5403 GB, free: 7.691 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002631/0.6449, allocations: 1.404 MB / 0.5417 GB, free: 6.266 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.508e-05/0.6449, allocations: 12 kB / 0.5417 GB, free: 6.254 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.6449, allocations: 4 kB / 0.5417 GB, free: 6.25 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/0.6449, allocations: 7.969 kB / 0.5417 GB, free: 6.242 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008008/0.6529, allocations: 3.936 MB / 0.5456 GB, free: 2.137 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.76e-05/0.653, allocations: 12 kB / 0.5456 GB, free: 2.125 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001198/0.6542, allocations: 280.3 kB / 0.5459 GB, free: 1.852 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005847/0.6548, allocations: 329.5 kB / 0.5462 GB, free: 1.523 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.256e-05/0.6549, allocations: 19.98 kB / 0.5462 GB, free: 1.504 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2712/0.9261, allocations: 2.053 MB / 0.5482 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.982e-05/0.9262, allocations: 14.55 kB / 0.5482 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004856/0.9311, allocations: 2.49 MB / 0.5506 GB, free: 115.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009661/0.9321, allocations: 320.9 kB / 0.551 GB, free: 115.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003693/0.9325, allocations: 25.84 kB / 0.551 GB, free: 115.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001376/0.9339, allocations: 139.1 kB / 0.5511 GB, free: 115.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004379/0.9343, allocations: 188.8 kB / 0.5513 GB, free: 115.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001368/0.9345, allocations: 48.95 kB / 0.5513 GB, free: 115.4 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009218/0.9354, allocations: 459.4 kB / 0.5518 GB, free: 115.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.9354, allocations: 0 / 0.5518 GB, free: 115.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001913/0.9373, allocations: 303.7 kB / 0.5521 GB, free: 115.3 MB / 426.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.004945/0.9423, allocations: 5.789 MB / 0.5577 GB, free: 111 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002938/0.9452, allocations: 1.675 MB / 0.5594 GB, free: 110.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.274e-05/0.9453, allocations: 2.062 kB / 0.5594 GB, free: 110.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001697/0.947, allocations: 0.8799 MB / 0.5602 GB, free: 110.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001245/0.9482, allocations: 130.4 kB / 0.5603 GB, free: 110.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007716/0.956, allocations: 2.58 MB / 0.5629 GB, free: 109.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001404/0.9574, allocations: 1.209 MB / 0.564 GB, free: 108.9 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001249/0.9587, allocations: 153.2 kB / 0.5642 GB, free: 108.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001039/0.9597, allocations: 0.5153 MB / 0.5647 GB, free: 108.8 MB / 426.7 MB Notification: Performance of SimCode: time 1.513e-06/0.9598, allocations: 4 kB / 0.5647 GB, free: 108.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07446/1.034, allocations: 25.41 MB / 0.5895 GB, free: 107.5 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002022/1.034, allocations: 155.1 kB / 0.5897 GB, free: 107.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.054/4.089, allocations: 2.25 kB / 0.5897 GB, free: 107.3 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis_fmu --startTime=0 --stopTime=1.6 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat does not exist to compare? outputFormat=mat