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.001491/0.00149, allocations: 185.4 kB / 16.41 MB, free: 5.727 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.95/1.95, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001164/0.001164, allocations: 93.3 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000403/0.0004028, allocations: 8 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.3322, allocations: 47.57 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1564/0.4887, allocations: 93.77 MB / 468.4 MB, free: 2.84 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003481/0.4891, allocations: 95.94 kB / 468.5 MB, free: 2.746 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4311/0.9203, allocations: 38.18 MB / 0.4948 GB, free: 93.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.015e-06/0.9203, allocations: 0.9688 kB / 0.4948 GB, free: 93.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001031/0.9204, allocations: 34.91 kB / 0.4948 GB, free: 93.33 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.004961/0.9254, allocations: 1.632 MB / 0.4964 GB, free: 92.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.9255, allocations: 8.688 kB / 0.4965 GB, free: 92.54 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005141/0.926, allocations: 225.1 kB / 0.4967 GB, free: 92.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005567/0.9266, allocations: 185.2 kB / 0.4968 GB, free: 92.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001677/0.9283, allocations: 0.7857 MB / 0.4976 GB, free: 92.12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003805/0.9287, allocations: 245.2 kB / 0.4978 GB, free: 92.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003875/0.9291, allocations: 158.1 kB / 0.498 GB, free: 92.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005063/0.9341, allocations: 1.661 MB / 0.4996 GB, free: 91.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.777e-05/0.9343, allocations: 6.406 kB / 0.4996 GB, free: 91.9 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000234/0.9345, allocations: 65.12 kB / 0.4997 GB, free: 91.9 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.803e-05/0.9346, allocations: 36.97 kB / 0.4997 GB, free: 91.9 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005342/0.9399, allocations: 1.541 MB / 0.5012 GB, free: 91.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01288/0.9528, allocations: 6.054 MB / 0.5071 GB, free: 90.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003133/0.956, allocations: 0.9307 MB / 0.508 GB, free: 90.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001341/0.9562, allocations: 13.75 kB / 0.5081 GB, free: 90.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001943/0.9581, allocations: 0.6731 MB / 0.5087 GB, free: 90.05 MB / 378.7 MB Notification: Performance of pre-optimization done (n=92): time 3.476e-06/0.9581, allocations: 0 / 0.5087 GB, free: 90.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=123): time 0.06335/1.022, allocations: 9.877 MB / 0.5184 GB, free: 86.88 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.336e-05/1.022, allocations: 305.7 kB / 0.5187 GB, free: 86.53 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001299/1.023, allocations: 0.6876 MB / 0.5193 GB, free: 86.21 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001842/1.023, allocations: 61.11 kB / 0.5194 GB, free: 86.15 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004739/1.024, allocations: 0.6746 MB / 0.52 GB, free: 85.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004031/1.024, allocations: 411.2 kB / 0.5204 GB, free: 85.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001876/1.024, allocations: 27.69 kB / 0.5205 GB, free: 85.26 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001047/1.024, allocations: 366.2 kB / 0.5208 GB, free: 84.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003342/1.028, allocations: 0.8238 MB / 0.5216 GB, free: 84.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003532/1.031, allocations: 1.149 MB / 0.5227 GB, free: 83.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003189/1.034, allocations: 0.8091 MB / 0.5235 GB, free: 83.58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/1.035, allocations: 3.188 kB / 0.5235 GB, free: 83.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.007497/1.042, allocations: 2.061 MB / 0.5255 GB, free: 82.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.729e-05/1.042, allocations: 7.531 kB / 0.5255 GB, free: 82.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.768e-05/1.042, allocations: 11.19 kB / 0.5256 GB, free: 82.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005643/1.043, allocations: 183 kB / 0.5257 GB, free: 82.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003014/1.046, allocations: 366.5 kB / 0.5261 GB, free: 82.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004259/1.05, allocations: 4.483 MB / 0.5305 GB, free: 77.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002813/1.053, allocations: 200.6 kB / 0.5307 GB, free: 77.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001773/1.053, allocations: 59.42 kB / 0.5307 GB, free: 77.67 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.001026/1.054, allocations: 390.6 kB / 0.5311 GB, free: 77.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002579/1.054, allocations: 102.8 kB / 0.5312 GB, free: 77.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006944/1.061, allocations: 1.839 MB / 0.533 GB, free: 75.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.509e-05/1.061, allocations: 12 kB / 0.533 GB, free: 75.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/1.061, allocations: 7.797 kB / 0.533 GB, free: 75.58 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.563e-05/1.061, allocations: 3.469 kB / 0.533 GB, free: 75.58 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01257/1.074, allocations: 4.506 MB / 0.5374 GB, free: 71.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-05/1.074, allocations: 8 kB / 0.5374 GB, free: 71.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002134/1.076, allocations: 287.3 kB / 0.5377 GB, free: 71.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008202/1.077, allocations: 335 kB / 0.538 GB, free: 71.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001199/1.077, allocations: 42.95 kB / 0.538 GB, free: 71.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001843/1.079, allocations: 2.094 MB / 0.5401 GB, free: 68.97 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.028e-05/1.079, allocations: 15.94 kB / 0.5401 GB, free: 68.96 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008069/1.087, allocations: 2.988 MB / 0.543 GB, free: 65.83 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008101/1.088, allocations: 326.1 kB / 0.5433 GB, free: 65.53 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002767/1.088, allocations: 47.66 kB / 0.5434 GB, free: 65.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001795/1.09, allocations: 163 kB / 0.5435 GB, free: 65.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000495/1.091, allocations: 181.1 kB / 0.5437 GB, free: 65.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001198/1.091, allocations: 47.94 kB / 0.5437 GB, free: 65.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001019/1.092, allocations: 0.5269 MB / 0.5443 GB, free: 64.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.6e-07/1.092, allocations: 0 / 0.5443 GB, free: 64.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001705/1.093, allocations: 355.9 kB / 0.5446 GB, free: 64.4 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.00896/1.102, allocations: 6.304 MB / 0.5508 GB, free: 58.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006883/1.109, allocations: 2.096 MB / 0.5528 GB, free: 56.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.812e-05/1.109, allocations: 4 kB / 0.5528 GB, free: 56.11 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003584/1.113, allocations: 1.047 MB / 0.5538 GB, free: 55.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001512/1.115, allocations: 172 kB / 0.554 GB, free: 55 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02587/1.14, allocations: 13.42 MB / 0.5671 GB, free: 42.02 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008511/1.141, allocations: 1.208 MB / 0.5683 GB, free: 40.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00149/1.143, allocations: 0.5264 MB / 0.5688 GB, free: 40.49 MB / 378.7 MB Notification: Performance of SimCode: time 1.112e-06/1.143, allocations: 4 kB / 0.5688 GB, free: 40.49 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.291/4.434, allocations: 40.51 MB / 0.6084 GB, free: 312 kB / 378.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