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.001085/0.001085, allocations: 177.3 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.793/1.793, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001079/0.00108, allocations: 82.7 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.952e-05/1.954e-05, allocations: 0 / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.124, allocations: 47.59 MB / 363.2 MB, free: 6.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4393/0.5634, allocations: 93.27 MB / 456.5 MB, free: 2.277 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003385/0.5638, allocations: 89.92 kB / 456.5 MB, free: 2.227 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09151/0.6553, allocations: 37.9 MB / 494.4 MB, free: 2.227 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.6554, allocations: 0 / 494.4 MB, free: 2.227 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001564/0.6556, allocations: 32.22 kB / 494.5 MB, free: 2.195 MB / 362.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.005197/0.6608, allocations: 1.515 MB / 496 MB, free: 0.6289 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.719e-05/0.6609, allocations: 12.03 kB / 496 MB, free: 0.6172 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001002/0.6619, allocations: 185.9 kB / 496.2 MB, free: 444 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002286/0.6642, allocations: 0.7868 MB / 497 MB, free: 15.6 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003746/0.6646, allocations: 192.1 kB / 497.2 MB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005281/0.6651, allocations: 91.91 kB / 497.2 MB, free: 15.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003394/0.6685, allocations: 1.303 MB / 498.5 MB, free: 14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003829/0.6724, allocations: 1.337 MB / 499.9 MB, free: 12.63 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.034e-05/0.6725, allocations: 11.89 kB / 499.9 MB, free: 12.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002212/0.6727, allocations: 0 / 499.9 MB, free: 12.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.554e-05/0.6728, allocations: 40 kB / 499.9 MB, free: 12.58 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01259/0.6854, allocations: 5.798 MB / 0.4939 GB, free: 6.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001522/0.6869, allocations: 0.7936 MB / 0.4947 GB, free: 5.758 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007794/0.6878, allocations: 448.6 kB / 0.4951 GB, free: 5.316 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000102/0.6879, allocations: 16.91 kB / 0.4951 GB, free: 5.297 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009974/0.6889, allocations: 0.5658 MB / 0.4956 GB, free: 4.688 MB / 378.7 MB Notification: Performance of pre-optimization done (n=92): time 3.938e-06/0.6889, allocations: 0 / 0.4956 GB, free: 4.688 MB / 378.7 MB Notification: Performance of matching and sorting (n=123): time 0.0131/0.702, allocations: 5.326 MB / 0.5009 GB, free: 15.26 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001981/0.7023, allocations: 300 kB / 0.5011 GB, free: 14.89 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001259/0.7035, allocations: 0.6089 MB / 0.5017 GB, free: 14.28 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001341/0.7037, allocations: 33.7 kB / 0.5018 GB, free: 14.24 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007351/0.7044, allocations: 0.6624 MB / 0.5024 GB, free: 13.57 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004136/0.7049, allocations: 398.1 kB / 0.5028 GB, free: 13.17 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.875e-05/0.705, allocations: 0 / 0.5028 GB, free: 13.17 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002419/0.7052, allocations: 406.7 kB / 0.5032 GB, free: 12.77 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001082/0.7063, allocations: 0.6172 MB / 0.5038 GB, free: 12.15 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001362/0.7077, allocations: 0.9197 MB / 0.5047 GB, free: 11.12 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001213/0.7089, allocations: 0.6038 MB / 0.5053 GB, free: 10.52 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.009e-05/0.7089, allocations: 4 kB / 0.5053 GB, free: 10.51 MB / 394.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003135/0.7121, allocations: 1.62 MB / 0.5069 GB, free: 8.875 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.7121, allocations: 8 kB / 0.5069 GB, free: 8.867 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.912e-05/0.7122, allocations: 4 kB / 0.5069 GB, free: 8.863 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004429/0.7126, allocations: 174.5 kB / 0.507 GB, free: 8.684 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001702/0.7143, allocations: 371.5 kB / 0.5074 GB, free: 8.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004107/0.7185, allocations: 4.296 MB / 0.5116 GB, free: 3.672 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001705/0.7202, allocations: 179.8 kB / 0.5118 GB, free: 3.496 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002077/0.7204, allocations: 55.98 kB / 0.5118 GB, free: 3.441 MB / 394.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.0004633/0.7209, allocations: 146.9 kB / 0.5119 GB, free: 3.293 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002809/0.7237, allocations: 1.267 MB / 0.5132 GB, free: 2.012 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003342/0.724, allocations: 102.8 kB / 0.5133 GB, free: 1.91 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002951/0.727, allocations: 1.404 MB / 0.5147 GB, free: 500 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.835e-05/0.727, allocations: 12 kB / 0.5147 GB, free: 488 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.134e-05/0.7271, allocations: 3.953 kB / 0.5147 GB, free: 484 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.421e-05/0.7271, allocations: 3.984 kB / 0.5147 GB, free: 480 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008958/0.736, allocations: 3.957 MB / 0.5185 GB, free: 12.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.516e-05/0.7361, allocations: 8 kB / 0.5185 GB, free: 12.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001267/0.7374, allocations: 283.6 kB / 0.5188 GB, free: 12.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006265/0.738, allocations: 317.5 kB / 0.5191 GB, free: 11.73 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001386/0.7382, allocations: 23.98 kB / 0.5191 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002137/0.7403, allocations: 2.059 MB / 0.5211 GB, free: 9.516 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.26e-05/0.7404, allocations: 16.08 kB / 0.5212 GB, free: 9.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003875/0.7443, allocations: 2.488 MB / 0.5236 GB, free: 6.629 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008003/0.7451, allocations: 323.7 kB / 0.5239 GB, free: 6.293 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003352/0.7454, allocations: 27.98 kB / 0.5239 GB, free: 6.266 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001275/0.7467, allocations: 135.9 kB / 0.5241 GB, free: 6.133 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003803/0.7471, allocations: 192.3 kB / 0.5242 GB, free: 5.945 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001228/0.7472, allocations: 43.98 kB / 0.5243 GB, free: 5.902 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008582/0.7481, allocations: 467.2 kB / 0.5247 GB, free: 5.445 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.7481, allocations: 0 / 0.5247 GB, free: 5.445 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001795/0.7499, allocations: 300 kB / 0.525 GB, free: 5.152 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.3158/1.066, allocations: 5.771 MB / 0.5307 GB, free: 115.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004211/1.07, allocations: 1.667 MB / 0.5323 GB, free: 115.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.659e-05/1.07, allocations: 1.969 kB / 0.5323 GB, free: 115.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002043/1.072, allocations: 0.8804 MB / 0.5331 GB, free: 115.4 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001501/1.074, allocations: 133.7 kB / 0.5333 GB, free: 115.4 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006659/1.08, allocations: 2.573 MB / 0.5358 GB, free: 114.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001175/1.082, allocations: 1.211 MB / 0.537 GB, free: 113.8 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001088/1.083, allocations: 156 kB / 0.5371 GB, free: 113.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009002/1.084, allocations: 0.5157 MB / 0.5376 GB, free: 113.7 MB / 410.7 MB Notification: Performance of SimCode: time 1.393e-06/1.084, allocations: 0 / 0.5376 GB, free: 113.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06335/1.147, allocations: 25.41 MB / 0.5624 GB, free: 112.3 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001819/1.147, allocations: 163 kB / 0.5626 GB, free: 112.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.051/4.199, allocations: 0 / 0.5626 GB, free: 112.1 MB / 410.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