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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 95.08 kB / 16.94 MB, free: 6.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001179/0.001179, allocations: 184.6 kB / 17.83 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.565/1.565, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005278/0.0005279, allocations: 15.28 kB / 280.9 MB, free: 3.633 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.105, allocations: 47.57 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.00793/0.113, allocations: 7.379 MB / 335.8 MB, free: 12.58 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004801/0.1179, allocations: 2.32 MB / 338.1 MB, free: 10.25 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001214/0.1191, allocations: 31.88 kB / 338.2 MB, free: 10.22 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006366/0.1198, allocations: 218.4 kB / 338.4 MB, free: 10 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001311/0.1211, allocations: 0.5258 MB / 338.9 MB, free: 9.477 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009508/0.1221, allocations: 351.5 kB / 339.2 MB, free: 9.133 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002086/0.1241, allocations: 1.42 MB / 340.7 MB, free: 7.711 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001162/0.1253, allocations: 0.8132 MB / 341.5 MB, free: 6.863 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001157/0.1265, allocations: 0.5876 MB / 342.1 MB, free: 6.273 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009083/0.1274, allocations: 0.6455 MB / 342.7 MB, free: 5.625 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000172/0.1276, allocations: 80 kB / 342.8 MB, free: 5.547 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003625/0.128, allocations: 124 kB / 342.9 MB, free: 5.426 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003025/0.1283, allocations: 278.9 kB / 343.2 MB, free: 5.152 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003792/0.1287, allocations: 340.9 kB / 343.5 MB, free: 4.812 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002524/0.1312, allocations: 2.664 MB / 346.2 MB, free: 2.141 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1312, allocations: 0 / 346.2 MB, free: 2.141 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1312, allocations: 0 / 346.2 MB, free: 2.141 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.234e-05/0.1313, allocations: 0 / 346.2 MB, free: 2.141 MB / 286.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.003782/0.1351, allocations: 1.643 MB / 347.8 MB, free: 452 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.027e-05/0.1352, allocations: 12.03 kB / 347.8 MB, free: 440 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003123/0.1355, allocations: 219.8 kB / 348 MB, free: 208 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003046/0.1358, allocations: 189.9 kB / 348.2 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001269/0.1371, allocations: 0.8061 MB / 349 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002954/0.1374, allocations: 240.1 kB / 349.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002251/0.1377, allocations: 159.9 kB / 349.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003121/0.1408, allocations: 1.674 MB / 351.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.181e-05/0.1408, allocations: 3.906 kB / 351.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001461/0.141, allocations: 64 kB / 351.2 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.89e-05/0.141, allocations: 36 kB / 351.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003226/0.1443, allocations: 1.581 MB / 352.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009184/0.1535, allocations: 5.958 MB / 358.7 MB, free: 5.195 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001974/0.1555, allocations: 0.9596 MB / 359.7 MB, free: 4.219 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.994e-05/0.1556, allocations: 16.95 kB / 359.7 MB, free: 4.203 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001228/0.1568, allocations: 0.6646 MB / 360.4 MB, free: 3.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.665e-06/0.1568, allocations: 0 / 360.4 MB, free: 3.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.03403/0.1909, allocations: 9.839 MB / 370.2 MB, free: 9.535 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001666/0.1911, allocations: 307.7 kB / 370.5 MB, free: 9.168 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001142/0.1922, allocations: 0.7778 MB / 371.3 MB, free: 8.383 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001218/0.1924, allocations: 53.7 kB / 371.4 MB, free: 8.324 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005334/0.1929, allocations: 0.6583 MB / 372 MB, free: 7.652 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003421/0.1933, allocations: 410.2 kB / 372.4 MB, free: 7.246 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.88e-05/0.1933, allocations: 28 kB / 372.4 MB, free: 7.219 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002448/0.1936, allocations: 406.7 kB / 372.8 MB, free: 6.812 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001959/0.1956, allocations: 0.8433 MB / 373.7 MB, free: 5.969 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002199/0.1978, allocations: 1.161 MB / 374.8 MB, free: 4.695 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001829/0.1996, allocations: 0.8262 MB / 375.7 MB, free: 3.867 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.384e-06/0.1996, allocations: 4 kB / 375.7 MB, free: 3.863 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004717/0.2044, allocations: 2.131 MB / 377.8 MB, free: 1.715 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.976e-05/0.2044, allocations: 8 kB / 377.8 MB, free: 1.707 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.689e-05/0.2044, allocations: 8 kB / 377.8 MB, free: 1.699 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004445/0.2049, allocations: 186.4 kB / 378 MB, free: 1.508 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001617/0.2065, allocations: 367.5 kB / 378.4 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1863/0.3928, allocations: 4.479 MB / 382.8 MB, free: 47.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00174/0.3946, allocations: 205.1 kB / 383 MB, free: 47.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001126/0.3947, allocations: 55.88 kB / 383.1 MB, free: 47.46 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 12 (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.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 (168): * Single equations (assignments): 165 * 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: 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.000746/0.3954, allocations: 388.1 kB / 383.5 MB, free: 47.34 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001673/0.3956, allocations: 104.1 kB / 383.6 MB, free: 47.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002761/0.3959, allocations: 133.1 kB / 383.7 MB, free: 47.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.3959, allocations: 11.69 kB / 383.7 MB, free: 47.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/0.3959, allocations: 2.094 kB / 383.7 MB, free: 47.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.417e-05/0.396, allocations: 7.656 kB / 383.7 MB, free: 47.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007904/0.4039, allocations: 4.538 MB / 388.3 MB, free: 45.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.662e-05/0.4039, allocations: 9.453 kB / 388.3 MB, free: 45.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001159/0.4051, allocations: 288.6 kB / 388.6 MB, free: 45.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005617/0.4057, allocations: 368.4 kB / 388.9 MB, free: 45.46 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.197e-05/0.4058, allocations: 40.69 kB / 389 MB, free: 45.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001393/0.4072, allocations: 2.178 MB / 391.1 MB, free: 43.46 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.491e-05/0.4072, allocations: 16.47 kB / 391.2 MB, free: 43.45 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00506/0.4123, allocations: 3.072 MB / 394.2 MB, free: 41.43 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007274/0.413, allocations: 327.6 kB / 394.5 MB, free: 41.24 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001837/0.4132, allocations: 51.03 kB / 394.6 MB, free: 41.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001115/0.4143, allocations: 180.5 kB / 394.8 MB, free: 41.18 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003427/0.4147, allocations: 180 kB / 394.9 MB, free: 41.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.268e-05/0.4148, allocations: 45.66 kB / 395 MB, free: 41.13 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007397/0.4155, allocations: 0.5255 MB / 395.5 MB, free: 40.89 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4155, allocations: 1 kB / 395.5 MB, free: 40.89 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001198/0.4167, allocations: 346.2 kB / 395.9 MB, free: 40.85 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 7 (axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.motor.La.i,axis.motor.C.v,axis.motor.Jmotor.w,axis.controller.PI.x,axis.initializeFlange.phi_flange) * Number of discrete variables: 8 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,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 (112): * Single equations (assignments): 110 * 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.005082/0.4218, allocations: 6.523 MB / 402.4 MB, free: 35.48 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00381/0.4256, allocations: 2.096 MB / 404.5 MB, free: 34.49 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.218e-06/0.4257, allocations: 4.062 kB / 404.5 MB, free: 34.48 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001907/0.4276, allocations: 1.079 MB / 405.6 MB, free: 33.99 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009187/0.4285, allocations: 168.1 kB / 405.7 MB, free: 33.93 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01484/0.4434, allocations: 13.41 MB / 419.1 MB, free: 21.83 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005949/0.444, allocations: 1.206 MB / 420.3 MB, free: 20.59 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008402/0.4448, allocations: 160.4 kB / 420.5 MB, free: 20.43 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006482/0.4455, allocations: 0.5149 MB / 421 MB, free: 19.92 MB / 318.1 MB Notification: Performance of SimCode: time 2.756e-06/0.4455, allocations: 0 / 421 MB, free: 19.92 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04461/0.4901, allocations: 27.14 MB / 448.1 MB, free: 8.762 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000185/0.4904, allocations: 228.5 kB / 448.4 MB, free: 8.516 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.345/2.835, allocations: 0 / 448.4 MB, free: 8.516 MB / 334.1 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) Environment - environmentSimulation: 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