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.0009308/0.0009309, allocations: 92.27 kB / 16.95 MB, free: 6.113 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.001078/0.001078, allocations: 179.5 kB / 17.84 MB, free: 5.73 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.553/1.553, allocations: 205.4 MB / 224 MB, free: 13.15 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.0004615/0.0004615, allocations: 14.34 kB / 280.9 MB, free: 3.617 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1118, allocations: 47.58 MB / 328.5 MB, free: 3.965 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01092/0.1227, allocations: 8.044 MB / 336.5 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006385/0.1292, allocations: 2.218 MB / 338.7 MB, free: 9.656 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001692/0.1309, allocations: 31.88 kB / 338.8 MB, free: 9.625 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009628/0.1319, allocations: 230.3 kB / 339 MB, free: 9.398 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001834/0.1338, allocations: 404.9 kB / 339.4 MB, free: 9 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001441/0.1352, allocations: 347.5 kB / 339.7 MB, free: 8.66 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003123/0.1384, allocations: 2.083 MB / 341.8 MB, free: 6.57 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001722/0.1401, allocations: 0.8132 MB / 342.6 MB, free: 5.723 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001329/0.1415, allocations: 0.5836 MB / 343.2 MB, free: 5.137 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001001/0.1425, allocations: 0.6493 MB / 343.8 MB, free: 4.484 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001777/0.1427, allocations: 80 kB / 343.9 MB, free: 4.406 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003629/0.143, allocations: 123.9 kB / 344 MB, free: 4.285 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003372/0.1434, allocations: 278.9 kB / 344.3 MB, free: 4.012 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004371/0.1438, allocations: 344.9 kB / 344.7 MB, free: 3.668 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002917/0.1468, allocations: 2.672 MB / 347.3 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.1468, allocations: 0 / 347.3 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.1468, allocations: 0 / 347.3 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.009e-05/0.1469, allocations: 4 kB / 347.3 MB, free: 0.9844 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.004226/0.1511, allocations: 1.635 MB / 349 MB, free: 15.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.769e-05/0.1512, allocations: 8.031 kB / 349 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004479/0.1516, allocations: 227.7 kB / 349.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003959/0.152, allocations: 177.9 kB / 349.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001614/0.1537, allocations: 0.8178 MB / 350.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003472/0.154, allocations: 236.1 kB / 350.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003356/0.1544, allocations: 160 kB / 350.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004536/0.1589, allocations: 1.682 MB / 352.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.216e-05/0.159, allocations: 11.91 kB / 352.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002031/0.1592, allocations: 60 kB / 352.3 MB, free: 11.83 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.347e-05/0.1593, allocations: 43.94 kB / 352.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004635/0.1639, allocations: 1.57 MB / 353.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01277/0.1767, allocations: 5.958 MB / 359.9 MB, free: 4.039 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002698/0.1795, allocations: 0.9635 MB / 360.9 MB, free: 3.059 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001482/0.181, allocations: 0.5471 MB / 361.4 MB, free: 2.508 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.979e-05/0.1811, allocations: 12.98 kB / 361.4 MB, free: 2.496 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001846/0.183, allocations: 0.6724 MB / 362.1 MB, free: 1.777 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 4.519e-06/0.183, allocations: 0 / 362.1 MB, free: 1.777 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.03244/0.2154, allocations: 9.849 MB / 371.9 MB, free: 7.805 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001477/0.2156, allocations: 295.7 kB / 372.2 MB, free: 7.449 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001034/0.2167, allocations: 0.7778 MB / 373 MB, free: 6.664 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001058/0.2168, allocations: 57.69 kB / 373.1 MB, free: 6.602 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004747/0.2173, allocations: 0.6622 MB / 373.7 MB, free: 5.926 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003092/0.2176, allocations: 402.2 kB / 374.1 MB, free: 5.527 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.938e-05/0.2177, allocations: 32 kB / 374.2 MB, free: 5.496 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.2179, allocations: 406.8 kB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001716/0.2196, allocations: 0.8394 MB / 375.4 MB, free: 4.25 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00192/0.2215, allocations: 1.169 MB / 376.6 MB, free: 2.969 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001714/0.2232, allocations: 0.8262 MB / 377.4 MB, free: 2.141 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.2233, allocations: 3.938 kB / 377.4 MB, free: 2.137 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.2053/0.4286, allocations: 2.132 MB / 379.5 MB, free: 50.72 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.4286, allocations: 6.875 kB / 379.5 MB, free: 50.72 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.566e-05/0.4287, allocations: 7.719 kB / 379.5 MB, free: 50.72 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00054/0.4292, allocations: 178.8 kB / 379.7 MB, free: 50.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00188/0.4311, allocations: 370.1 kB / 380.1 MB, free: 50.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003298/0.4344, allocations: 4.466 MB / 384.5 MB, free: 46.88 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001842/0.4363, allocations: 210.5 kB / 384.7 MB, free: 46.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001634/0.4365, allocations: 53.59 kB / 384.8 MB, free: 46.88 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.001094/0.4376, allocations: 390.8 kB / 385.2 MB, free: 46.75 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002639/0.4378, allocations: 102.8 kB / 385.3 MB, free: 46.75 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003637/0.4382, allocations: 134.8 kB / 385.4 MB, free: 46.74 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.468e-05/0.4382, allocations: 12.34 kB / 385.4 MB, free: 46.74 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.745e-05/0.4383, allocations: 1.844 kB / 385.4 MB, free: 46.74 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-05/0.4383, allocations: 6.328 kB / 385.4 MB, free: 46.74 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01055/0.4489, allocations: 4.533 MB / 390 MB, free: 44.78 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.772e-05/0.4489, allocations: 9.188 kB / 390 MB, free: 44.78 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001164/0.4501, allocations: 279.6 kB / 390.2 MB, free: 44.76 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006794/0.4508, allocations: 370.1 kB / 390.6 MB, free: 44.63 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.39e-05/0.4509, allocations: 37.45 kB / 390.6 MB, free: 44.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001585/0.4525, allocations: 2.18 MB / 392.8 MB, free: 42.62 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.531e-05/0.4525, allocations: 17.94 kB / 392.8 MB, free: 42.61 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005159/0.4577, allocations: 2.595 MB / 395.4 MB, free: 41.32 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008449/0.4586, allocations: 323.7 kB / 395.8 MB, free: 41.11 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001938/0.4588, allocations: 47.25 kB / 395.8 MB, free: 41.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/0.4598, allocations: 184.5 kB / 396 MB, free: 41.06 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003441/0.4602, allocations: 182.8 kB / 396.2 MB, free: 41.01 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.333e-05/0.4603, allocations: 43.34 kB / 396.2 MB, free: 41 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000786/0.4611, allocations: 0.5255 MB / 396.7 MB, free: 40.76 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.382e-06/0.4611, allocations: 0 / 396.7 MB, free: 40.76 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001444/0.4625, allocations: 345.8 kB / 397.1 MB, free: 40.73 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.004869/0.4674, allocations: 3.213 MB / 400.3 MB, free: 38.79 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003596/0.471, allocations: 2.091 MB / 402.4 MB, free: 37.81 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.528e-06/0.4711, allocations: 3.969 kB / 402.4 MB, free: 37.81 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001861/0.4729, allocations: 1.085 MB / 403.5 MB, free: 37.3 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001257/0.4742, allocations: 193.5 kB / 403.6 MB, free: 37.23 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0146/0.4888, allocations: 9.061 MB / 412.7 MB, free: 29.01 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000634/0.4895, allocations: 1.178 MB / 413.9 MB, free: 27.79 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009033/0.4904, allocations: 164.4 kB / 414 MB, free: 27.63 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006842/0.4911, allocations: 0.5149 MB / 414.6 MB, free: 27.12 MB / 318.1 MB Notification: Performance of SimCode: time 1.393e-06/0.4911, allocations: 0 / 414.6 MB, free: 27.12 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04083/0.532, allocations: 27.18 MB / 441.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000188/0.5322, allocations: 234 kB / 442 MB, free: 15.67 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.56/3.092, allocations: 4 kB / 442 MB, free: 15.66 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