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.002516/0.002515, allocations: 182.6 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.121/2.121, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001219/0.001219, allocations: 89.61 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006036/0.0006039, allocations: 11.98 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3595/0.3602, allocations: 47.57 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01058/0.3708, allocations: 7.381 MB / 382 MB, free: 39.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005745/0.3766, allocations: 2.318 MB / 384.3 MB, free: 37.81 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00158/0.3783, allocations: 25.53 kB / 384.4 MB, free: 37.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000935/0.3792, allocations: 223.3 kB / 384.6 MB, free: 37.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002384/0.3817, allocations: 0.5179 MB / 385.1 MB, free: 37.17 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001653/0.3834, allocations: 356.6 kB / 385.4 MB, free: 36.88 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003571/0.387, allocations: 1.419 MB / 386.9 MB, free: 35.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001722/0.3887, allocations: 0.817 MB / 387.7 MB, free: 35.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001561/0.3903, allocations: 0.5834 MB / 388.3 MB, free: 35.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001182/0.3916, allocations: 0.6533 MB / 388.9 MB, free: 34.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000253/0.3918, allocations: 80 kB / 389 MB, free: 34.4 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004717/0.3923, allocations: 119.9 kB / 389.1 MB, free: 34.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002928/0.3926, allocations: 282.9 kB / 389.4 MB, free: 34.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003705/0.393, allocations: 344.9 kB / 389.7 MB, free: 33.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002769/0.3958, allocations: 2.665 MB / 392.4 MB, free: 30.99 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3958, allocations: 4 kB / 392.4 MB, free: 30.99 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.3958, allocations: 0 / 392.4 MB, free: 30.99 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.661e-05/0.3959, allocations: 0 / 392.4 MB, free: 30.99 MB / 298.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.004875/0.4008, allocations: 1.635 MB / 394 MB, free: 29.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.4009, allocations: 12.02 kB / 394 MB, free: 29.29 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004895/0.4014, allocations: 227.8 kB / 394.3 MB, free: 29.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003998/0.4018, allocations: 181.9 kB / 394.4 MB, free: 28.87 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0016/0.4034, allocations: 0.8062 MB / 395.3 MB, free: 28.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003628/0.4038, allocations: 240.1 kB / 395.5 MB, free: 27.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003506/0.4042, allocations: 155.9 kB / 395.6 MB, free: 27.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00477/0.4089, allocations: 1.674 MB / 397.3 MB, free: 25.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.626e-05/0.4091, allocations: 7.906 kB / 397.3 MB, free: 25.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002202/0.4093, allocations: 60 kB / 397.4 MB, free: 25.85 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.715e-05/0.4093, allocations: 36 kB / 397.4 MB, free: 25.81 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005352/0.4147, allocations: 1.581 MB / 399 MB, free: 24.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01346/0.4282, allocations: 5.958 MB / 405 MB, free: 18.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003103/0.4314, allocations: 0.9528 MB / 405.9 MB, free: 17.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.824e-05/0.4315, allocations: 12.95 kB / 405.9 MB, free: 17.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001852/0.4334, allocations: 0.6646 MB / 406.6 MB, free: 16.37 MB / 298.7 MB Notification: Performance of pre-optimization done (n=90): time 3.858e-06/0.4334, allocations: 8 kB / 406.6 MB, free: 16.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=120): time 0.0607/0.4941, allocations: 9.842 MB / 416.4 MB, free: 6.398 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.522e-05/0.4943, allocations: 299.7 kB / 416.7 MB, free: 6.039 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00143/0.4957, allocations: 0.7894 MB / 417.5 MB, free: 5.242 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003015/0.496, allocations: 53.7 kB / 417.6 MB, free: 5.184 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004895/0.4965, allocations: 0.6765 MB / 418.2 MB, free: 4.496 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004311/0.497, allocations: 414 kB / 418.6 MB, free: 4.086 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001539/0.4971, allocations: 24 kB / 418.7 MB, free: 4.062 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.4973, allocations: 362.8 kB / 419 MB, free: 3.699 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003319/0.5006, allocations: 0.8434 MB / 419.9 MB, free: 2.855 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003653/0.5043, allocations: 1.161 MB / 421 MB, free: 1.582 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003358/0.5077, allocations: 0.8223 MB / 421.9 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.405e-05/0.5077, allocations: 4 kB / 421.9 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.008526/0.5163, allocations: 2.092 MB / 424 MB, free: 14.64 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.579e-05/0.5164, allocations: 8 kB / 424 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.028e-05/0.5164, allocations: 4 kB / 424 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006488/0.5171, allocations: 182.4 kB / 424.1 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003304/0.5204, allocations: 371.5 kB / 424.5 MB, free: 14.08 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006111/0.5265, allocations: 4.497 MB / 429 MB, free: 9.184 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002813/0.5294, allocations: 207.9 kB / 429.2 MB, free: 8.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000223/0.5296, allocations: 44 kB / 429.2 MB, free: 8.938 MB / 314.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: 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.001303/0.531, allocations: 391.2 kB / 429.6 MB, free: 8.543 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003558/0.5313, allocations: 106.8 kB / 429.7 MB, free: 8.438 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003584/0.5317, allocations: 129.9 kB / 429.9 MB, free: 8.305 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.76e-05/0.5317, allocations: 12 kB / 429.9 MB, free: 8.293 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.329e-05/0.5317, allocations: 0 / 429.9 MB, free: 8.293 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.991e-05/0.5318, allocations: 11.97 kB / 429.9 MB, free: 8.281 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01465/0.5464, allocations: 4.537 MB / 434.4 MB, free: 3.555 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.306e-05/0.5465, allocations: 11.94 kB / 434.4 MB, free: 3.543 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002349/0.5489, allocations: 283.7 kB / 434.7 MB, free: 3.266 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001065/0.55, allocations: 369.4 kB / 435.1 MB, free: 2.898 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001978/0.5502, allocations: 43.98 kB / 435.1 MB, free: 2.855 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002747/0.553, allocations: 2.177 MB / 437.3 MB, free: 0.5117 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-05/0.553, allocations: 15.94 kB / 437.3 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009549/0.5626, allocations: 3.077 MB / 440.4 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009364/0.5636, allocations: 324 kB / 440.7 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003/0.5639, allocations: 43.94 kB / 440.7 MB, free: 12.64 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001999/0.5659, allocations: 179.8 kB / 440.9 MB, free: 12.46 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006171/0.5666, allocations: 184.2 kB / 441.1 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001411/0.5667, allocations: 47.98 kB / 441.1 MB, free: 12.24 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001247/0.568, allocations: 0.5303 MB / 441.7 MB, free: 11.71 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.568, allocations: 0 / 441.7 MB, free: 11.71 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002101/0.5701, allocations: 340 kB / 442 MB, free: 11.38 MB / 330.7 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.01148/0.5816, allocations: 6.522 MB / 448.5 MB, free: 4.547 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00765/0.5893, allocations: 2.094 MB / 450.6 MB, free: 2.418 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.529e-05/0.5894, allocations: 4 kB / 450.6 MB, free: 2.414 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003942/0.5934, allocations: 1.059 MB / 451.7 MB, free: 1.344 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001598/0.595, allocations: 174.8 kB / 451.9 MB, free: 1.172 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03297/0.628, allocations: 13.45 MB / 465.3 MB, free: 3.234 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001233/0.6293, allocations: 1.206 MB / 466.5 MB, free: 1.992 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001669/0.631, allocations: 0.5188 MB / 467 MB, free: 1.473 MB / 346.7 MB Notification: Performance of SimCode: time 1.162e-06/0.631, allocations: 0 / 467 MB, free: 1.473 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.673/4.304, allocations: 40.34 MB / 0.4955 GB, free: 109.8 MB / 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