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.001962/0.001962, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 89.06 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003194/0.0003195, allocations: 4 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.2834, allocations: 50.41 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1233/0.4068, allocations: 96.52 MB / 498.1 MB, free: 15.89 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000332/0.4072, allocations: 93.59 kB / 498.2 MB, free: 15.8 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3394/0.7467, allocations: 38.98 MB / 0.5246 GB, free: 88.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.477e-06/0.7467, allocations: 1.312 kB / 0.5246 GB, free: 88.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001144/0.7469, allocations: 28.22 kB / 0.5246 GB, free: 88.73 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.003844/0.7507, allocations: 1.632 MB / 0.5262 GB, free: 87.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.7508, allocations: 12.03 kB / 0.5262 GB, free: 87.04 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005647/0.7513, allocations: 227 kB / 0.5265 GB, free: 86.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007753/0.7521, allocations: 181.9 kB / 0.5266 GB, free: 86.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001684/0.7538, allocations: 0.7923 MB / 0.5274 GB, free: 85.8 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003/0.7541, allocations: 240.1 kB / 0.5276 GB, free: 85.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003932/0.7545, allocations: 155.9 kB / 0.5278 GB, free: 85.4 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00363/0.7582, allocations: 1.663 MB / 0.5294 GB, free: 83.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.901e-05/0.7583, allocations: 3.906 kB / 0.5294 GB, free: 83.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001917/0.7585, allocations: 64 kB / 0.5295 GB, free: 83.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.049e-05/0.7585, allocations: 36 kB / 0.5295 GB, free: 83.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003412/0.7619, allocations: 1.546 MB / 0.531 GB, free: 82.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01105/0.773, allocations: 6.042 MB / 0.5369 GB, free: 75.87 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00201/0.7751, allocations: 0.9399 MB / 0.5378 GB, free: 74.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.628e-05/0.7752, allocations: 9 kB / 0.5378 GB, free: 74.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001325/0.7766, allocations: 0.6684 MB / 0.5385 GB, free: 74.19 MB / 378.7 MB Notification: Performance of pre-optimization done (n=92): time 4.649e-06/0.7766, allocations: 3.938 kB / 0.5385 GB, free: 74.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=123): time 0.03489/0.8115, allocations: 9.886 MB / 0.5481 GB, free: 64.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.758e-05/0.8116, allocations: 295.7 kB / 0.5484 GB, free: 63.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001167/0.8128, allocations: 0.6911 MB / 0.5491 GB, free: 63.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000187/0.813, allocations: 53.7 kB / 0.5492 GB, free: 63.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005701/0.8136, allocations: 0.6571 MB / 0.5498 GB, free: 62.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003913/0.814, allocations: 416.6 kB / 0.5502 GB, free: 62 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001111/0.8141, allocations: 32 kB / 0.5502 GB, free: 61.97 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.8143, allocations: 406.7 kB / 0.5506 GB, free: 61.56 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001825/0.8161, allocations: 0.8316 MB / 0.5514 GB, free: 60.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00196/0.8181, allocations: 1.138 MB / 0.5525 GB, free: 59.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001733/0.8198, allocations: 0.8179 MB / 0.5533 GB, free: 58.67 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.184e-06/0.8199, allocations: 0 / 0.5533 GB, free: 58.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004321/0.8242, allocations: 2.111 MB / 0.5554 GB, free: 56.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.378e-05/0.8242, allocations: 11.12 kB / 0.5554 GB, free: 56.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.785e-05/0.8243, allocations: 11.94 kB / 0.5554 GB, free: 56.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004112/0.8247, allocations: 182.4 kB / 0.5556 GB, free: 56.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00159/0.8263, allocations: 367.5 kB / 0.5559 GB, free: 55.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002964/0.8293, allocations: 4.47 MB / 0.5603 GB, free: 51.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001788/0.8311, allocations: 211.9 kB / 0.5605 GB, free: 50.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002326/0.8313, allocations: 55.98 kB / 0.5606 GB, free: 50.84 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.001084/0.8324, allocations: 379.8 kB / 0.5609 GB, free: 50.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003121/0.8328, allocations: 106.7 kB / 0.561 GB, free: 50.36 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003976/0.8367, allocations: 1.838 MB / 0.5628 GB, free: 48.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.8368, allocations: 16 kB / 0.5628 GB, free: 48.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.8368, allocations: 0 / 0.5628 GB, free: 48.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/0.8368, allocations: 7.969 kB / 0.5628 GB, free: 48.47 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008088/0.8449, allocations: 4.511 MB / 0.5672 GB, free: 43.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.89e-05/0.845, allocations: 12 kB / 0.5673 GB, free: 43.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/0.8461, allocations: 287.8 kB / 0.5675 GB, free: 43.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005407/0.8467, allocations: 328.4 kB / 0.5678 GB, free: 43.19 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001085/0.8468, allocations: 35.98 kB / 0.5679 GB, free: 43.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001349/0.8482, allocations: 2.106 MB / 0.5699 GB, free: 40.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.396e-06/0.8482, allocations: 15.94 kB / 0.57 GB, free: 40.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004827/0.853, allocations: 2.983 MB / 0.5729 GB, free: 37.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008049/0.8539, allocations: 331.6 kB / 0.5732 GB, free: 37.17 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000328/0.8542, allocations: 48 kB / 0.5732 GB, free: 37.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001185/0.8554, allocations: 159.9 kB / 0.5734 GB, free: 36.97 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003537/0.8558, allocations: 188.5 kB / 0.5736 GB, free: 36.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.92e-05/0.8559, allocations: 44 kB / 0.5736 GB, free: 36.74 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007738/0.8567, allocations: 0.5264 MB / 0.5741 GB, free: 36.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8567, allocations: 0 / 0.5741 GB, free: 36.21 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001451/0.8581, allocations: 355.9 kB / 0.5745 GB, free: 35.87 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.004997/0.8631, allocations: 6.304 MB / 0.5806 GB, free: 29.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003831/0.867, allocations: 2.097 MB / 0.5827 GB, free: 27.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.299e-05/0.867, allocations: 4 kB / 0.5827 GB, free: 27.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00199/0.869, allocations: 1.066 MB / 0.5837 GB, free: 26.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001253/0.8703, allocations: 175.8 kB / 0.5839 GB, free: 25.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01666/0.887, allocations: 13.35 MB / 0.5969 GB, free: 12.07 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008595/0.8879, allocations: 1.21 MB / 0.5981 GB, free: 10.83 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001222/0.8892, allocations: 164.3 kB / 0.5982 GB, free: 10.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008557/0.89, allocations: 0.5203 MB / 0.5988 GB, free: 10.15 MB / 378.7 MB Notification: Performance of SimCode: time 9.799e-06/0.8901, allocations: 0 / 0.5988 GB, free: 10.15 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05462/0.9447, allocations: 27.25 MB / 0.6254 GB, free: 15.23 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001961/0.9449, allocations: 229 kB / 0.6256 GB, free: 14.99 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.78/3.725, allocations: 0 / 0.6256 GB, free: 14.99 MB / 410.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