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.001487/0.001487, allocations: 180 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.017/2.017, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00108/0.00108, allocations: 92.45 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.077e-05/2.092e-05, allocations: 0 / 314.9 MB, free: 9.047 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3664/0.3665, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1518/0.5184, allocations: 93.03 MB / 455.5 MB, free: 9.152 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003377/0.5188, allocations: 79.95 kB / 455.6 MB, free: 9.074 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1491/0.6679, allocations: 37.9 MB / 493.5 MB, free: 3.176 MB / 379.1 MB Notification: Performance of FrontEnd: time 2.975e-06/0.668, allocations: 0 / 493.5 MB, free: 3.176 MB / 379.1 MB Notification: Performance of Transformations before backend: time 0.0001589/0.6682, allocations: 32.22 kB / 493.5 MB, free: 3.145 MB / 379.1 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.006125/0.6743, allocations: 1.517 MB / 495 MB, free: 1.578 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.652e-05/0.6744, allocations: 8.031 kB / 495 MB, free: 1.57 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001019/0.6754, allocations: 185.9 kB / 495.2 MB, free: 1.387 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002425/0.6779, allocations: 0.7906 MB / 496 MB, free: 0.5508 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004465/0.6784, allocations: 192.1 kB / 496.2 MB, free: 352 kB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00049/0.6789, allocations: 95.89 kB / 496.3 MB, free: 256 kB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004563/0.6834, allocations: 1.299 MB / 497.6 MB, free: 14.95 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004525/0.688, allocations: 1.337 MB / 498.9 MB, free: 13.58 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.026e-05/0.6882, allocations: 7.906 kB / 498.9 MB, free: 13.57 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000212/0.6884, allocations: 3.984 kB / 498.9 MB, free: 13.57 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-05/0.6885, allocations: 39.98 kB / 498.9 MB, free: 13.53 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01657/0.705, allocations: 5.787 MB / 0.4929 GB, free: 7.535 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002185/0.7073, allocations: 0.7975 MB / 0.4937 GB, free: 6.719 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001114/0.7084, allocations: 448.6 kB / 0.4941 GB, free: 6.277 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001122/0.7086, allocations: 16.91 kB / 0.4941 GB, free: 6.258 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001363/0.7099, allocations: 0.5658 MB / 0.4947 GB, free: 5.648 MB / 395.1 MB Notification: Performance of pre-optimization done (n=92): time 3.827e-06/0.71, allocations: 3.938 kB / 0.4947 GB, free: 5.645 MB / 395.1 MB Notification: Performance of matching and sorting (n=123): time 0.02222/0.7322, allocations: 5.328 MB / 0.4999 GB, free: 220 kB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2738/1.006, allocations: 301.1 kB / 0.5002 GB, free: 106.6 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001517/1.008, allocations: 0.6033 MB / 0.5008 GB, free: 106.5 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003856/1.008, allocations: 34.41 kB / 0.5008 GB, free: 106.5 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00062/1.009, allocations: 0.6772 MB / 0.5015 GB, free: 106.3 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006008/1.009, allocations: 402.8 kB / 0.5018 GB, free: 106.1 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001574/1.009, allocations: 0 / 0.5018 GB, free: 106.1 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/1.01, allocations: 366.3 kB / 0.5022 GB, free: 105.8 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001674/1.011, allocations: 0.6149 MB / 0.5028 GB, free: 105.8 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002109/1.013, allocations: 0.918 MB / 0.5037 GB, free: 105.5 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001907/1.015, allocations: 0.6111 MB / 0.5043 GB, free: 105.5 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.787e-05/1.015, allocations: 1.188 kB / 0.5043 GB, free: 105.5 MB / 395.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004836/1.02, allocations: 1.574 MB / 0.5058 GB, free: 105.4 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.817e-05/1.02, allocations: 7.719 kB / 0.5058 GB, free: 105.4 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.216e-05/1.02, allocations: 8.781 kB / 0.5058 GB, free: 105.4 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005959/1.021, allocations: 177.2 kB / 0.506 GB, free: 105.3 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003443/1.025, allocations: 373.4 kB / 0.5064 GB, free: 105.3 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004688/1.029, allocations: 4.294 MB / 0.5106 GB, free: 101.7 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003009/1.032, allocations: 177.9 kB / 0.5107 GB, free: 101.7 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003847/1.033, allocations: 53.34 kB / 0.5108 GB, free: 101.7 MB / 395.1 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.0005605/1.033, allocations: 147.1 kB / 0.5109 GB, free: 101.6 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004168/1.038, allocations: 1.269 MB / 0.5122 GB, free: 101.4 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005066/1.038, allocations: 106 kB / 0.5123 GB, free: 101.4 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004271/1.042, allocations: 1.405 MB / 0.5136 GB, free: 101.3 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.291e-05/1.042, allocations: 12.53 kB / 0.5136 GB, free: 101.3 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.146e-06/1.042, allocations: 0 / 0.5136 GB, free: 101.3 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-05/1.043, allocations: 8.547 kB / 0.5137 GB, free: 101.3 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01218/1.055, allocations: 3.954 MB / 0.5175 GB, free: 100.4 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.1e-05/1.055, allocations: 9.031 kB / 0.5175 GB, free: 100.4 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002391/1.057, allocations: 281.9 kB / 0.5178 GB, free: 100.4 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009711/1.058, allocations: 321.5 kB / 0.5181 GB, free: 100.3 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002912/1.059, allocations: 21.55 kB / 0.5181 GB, free: 100.3 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002122/1.061, allocations: 2.061 MB / 0.5201 GB, free: 98.38 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.877e-05/1.061, allocations: 13.38 kB / 0.5201 GB, free: 98.38 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005423/1.066, allocations: 2.487 MB / 0.5226 GB, free: 96.46 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001061/1.067, allocations: 322 kB / 0.5229 GB, free: 96.22 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003705/1.068, allocations: 28 kB / 0.5229 GB, free: 96.21 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002102/1.07, allocations: 142.3 kB / 0.523 GB, free: 96.21 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005922/1.07, allocations: 185 kB / 0.5232 GB, free: 96.17 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001336/1.071, allocations: 50.2 kB / 0.5233 GB, free: 96.16 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.00088/1.071, allocations: 463.2 kB / 0.5237 GB, free: 95.93 MB / 395.1 MB Notification: Performance of sort global known variables: time 6.11e-07/1.071, allocations: 0 / 0.5237 GB, free: 95.93 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002286/1.074, allocations: 296.7 kB / 0.524 GB, free: 95.93 MB / 395.1 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.005918/1.08, allocations: 5.778 MB / 0.5296 GB, free: 90.85 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.004009/1.084, allocations: 1.669 MB / 0.5313 GB, free: 89.89 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.85e-05/1.084, allocations: 3.469 kB / 0.5313 GB, free: 89.89 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002417/1.086, allocations: 0.8534 MB / 0.5321 GB, free: 89.44 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001544/1.088, allocations: 140.8 kB / 0.5322 GB, free: 89.4 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008578/1.097, allocations: 2.617 MB / 0.5348 GB, free: 87.93 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001016/1.098, allocations: 1.206 MB / 0.536 GB, free: 87.19 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001571/1.099, allocations: 0.5284 MB / 0.5365 GB, free: 86.79 MB / 395.1 MB Notification: Performance of SimCode: time 1.343e-06/1.099, allocations: 0 / 0.5365 GB, free: 86.79 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.438/4.537, allocations: 40.19 MB / 0.5757 GB, free: 62.57 MB / 395.1 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