Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_4_0_0_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.000989/0.000989, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.001051/0.001051, allocations: 183.1 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 223.2 MB / 241.2 MB, free: 5.176 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000393/0.0003931, allocations: 7.562 kB / 300.9 MB, free: 5.492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1186, allocations: 50.42 MB / 351.3 MB, free: 11.21 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.009096/0.1278, allocations: 8.142 MB / 359.5 MB, free: 3.031 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005629/0.1335, allocations: 2.205 MB / 361.7 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001649/0.1351, allocations: 31.88 kB / 361.7 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001209/0.1364, allocations: 234.2 kB / 361.9 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001968/0.1384, allocations: 412.9 kB / 362.4 MB, free: 156 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001446/0.1398, allocations: 351.5 kB / 362.7 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003093/0.1429, allocations: 2.075 MB / 364.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001858/0.1448, allocations: 0.8132 MB / 365.6 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001434/0.1463, allocations: 0.5797 MB / 366.2 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001588/0.1479, allocations: 0.6454 MB / 366.8 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000569/0.1485, allocations: 80 kB / 366.9 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009203/0.1494, allocations: 128 kB / 367 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006002/0.15, allocations: 282.9 kB / 367.3 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007845/0.1508, allocations: 344.9 kB / 367.6 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002574/0.1534, allocations: 2.664 MB / 370.3 MB, free: 8.156 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.1534, allocations: 0 / 370.3 MB, free: 8.156 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.347e-06/0.1534, allocations: 4 kB / 370.3 MB, free: 8.152 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.872e-05/0.1535, allocations: 0 / 370.3 MB, free: 8.152 MB / 302.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.003405/0.1569, allocations: 1.635 MB / 371.9 MB, free: 6.461 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.1569, allocations: 11.97 kB / 371.9 MB, free: 6.449 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002993/0.1573, allocations: 227.8 kB / 372.2 MB, free: 6.215 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002724/0.1575, allocations: 177.9 kB / 372.3 MB, free: 6.039 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001229/0.1588, allocations: 0.8061 MB / 373.1 MB, free: 5.191 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002863/0.1591, allocations: 244.1 kB / 373.4 MB, free: 4.934 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002247/0.1593, allocations: 155.9 kB / 373.5 MB, free: 4.781 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003197/0.1625, allocations: 1.694 MB / 375.2 MB, free: 3.059 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.359e-05/0.1626, allocations: 4 kB / 375.2 MB, free: 3.055 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001458/0.1627, allocations: 64 kB / 375.3 MB, free: 2.992 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.61e-05/0.1628, allocations: 43.98 kB / 375.3 MB, free: 2.949 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003349/0.1661, allocations: 1.566 MB / 376.9 MB, free: 1.379 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009082/0.1752, allocations: 5.954 MB / 382.9 MB, free: 11.21 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001848/0.1771, allocations: 0.9675 MB / 383.8 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009592/0.1781, allocations: 0.534 MB / 384.4 MB, free: 9.691 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.998e-05/0.1782, allocations: 13 kB / 384.4 MB, free: 9.68 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001204/0.1794, allocations: 0.6724 MB / 385 MB, free: 8.961 MB / 318.1 MB Notification: Performance of pre-optimization done (n=90): time 2.715e-06/0.1794, allocations: 0 / 385 MB, free: 8.961 MB / 318.1 MB Notification: Performance of matching and sorting (n=120): time 0.03096/0.2103, allocations: 9.851 MB / 394.9 MB, free: 14.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001978/0.2106, allocations: 299.7 kB / 395.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001277/0.2119, allocations: 0.7817 MB / 396 MB, free: 13.83 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001263/0.212, allocations: 57.73 kB / 396 MB, free: 13.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005798/0.2126, allocations: 0.6584 MB / 396.7 MB, free: 13.1 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003888/0.213, allocations: 414.1 kB / 397.1 MB, free: 12.69 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.468e-05/0.2131, allocations: 28 kB / 397.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002173/0.2133, allocations: 410.7 kB / 397.5 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001787/0.2151, allocations: 0.8433 MB / 398.4 MB, free: 11.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001989/0.2171, allocations: 1.158 MB / 399.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001703/0.2188, allocations: 0.8262 MB / 400.3 MB, free: 9.309 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.2189, allocations: 8 kB / 400.4 MB, free: 9.301 MB / 334.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.00438/0.2233, allocations: 2.131 MB / 402.5 MB, free: 7.152 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.805e-05/0.2233, allocations: 8 kB / 402.5 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/0.2233, allocations: 8 kB / 402.5 MB, free: 7.137 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004332/0.2238, allocations: 186.4 kB / 402.7 MB, free: 6.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001513/0.2253, allocations: 367.5 kB / 403 MB, free: 6.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003638/0.2289, allocations: 4.458 MB / 407.5 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001372/0.2303, allocations: 203.9 kB / 407.7 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001151/0.2305, allocations: 51.94 kB / 407.7 MB, free: 1.469 MB / 334.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.000799/0.2313, allocations: 387.4 kB / 408.1 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001801/0.2314, allocations: 102.8 kB / 408.2 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002911/0.2317, allocations: 142 kB / 408.4 MB, free: 0.832 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.099e-05/0.2318, allocations: 12 kB / 408.4 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.48e-05/0.2318, allocations: 0 / 408.4 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.2318, allocations: 3.984 kB / 408.4 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007547/0.2394, allocations: 4.54 MB / 412.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-05/0.2394, allocations: 8 kB / 412.9 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/0.2404, allocations: 284.5 kB / 413.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000557/0.241, allocations: 369.5 kB / 413.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.184e-05/0.2411, allocations: 32 kB / 413.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001718/0.2428, allocations: 2.169 MB / 415.8 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.445e-05/0.2428, allocations: 19.92 kB / 415.8 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00465/0.2475, allocations: 2.602 MB / 418.4 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005563/0.2481, allocations: 331.6 kB / 418.7 MB, free: 5.957 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001612/0.2482, allocations: 47.92 kB / 418.8 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009362/0.2492, allocations: 175.9 kB / 418.9 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003195/0.2495, allocations: 184.2 kB / 419.1 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.852e-05/0.2496, allocations: 43.98 kB / 419.2 MB, free: 5.516 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007411/0.2504, allocations: 0.5264 MB / 419.7 MB, free: 4.996 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2504, allocations: 0 / 419.7 MB, free: 4.996 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001288/0.2517, allocations: 359.9 kB / 420 MB, free: 4.645 MB / 350.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.004915/0.2566, allocations: 3.198 MB / 423.2 MB, free: 1.289 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.2026/0.4592, allocations: 2.094 MB / 425.3 MB, free: 64.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.654e-05/0.4593, allocations: 1.219 kB / 425.3 MB, free: 64.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002518/0.4618, allocations: 1.094 MB / 426.4 MB, free: 64.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001656/0.4635, allocations: 180 kB / 426.6 MB, free: 64.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02104/0.4845, allocations: 9.052 MB / 435.6 MB, free: 61.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001043/0.4856, allocations: 1.184 MB / 436.8 MB, free: 61.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001075/0.4867, allocations: 163.5 kB / 437 MB, free: 61.01 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008365/0.4875, allocations: 0.5148 MB / 437.5 MB, free: 61.01 MB / 350.1 MB Notification: Performance of SimCode: time 1.212e-06/0.4876, allocations: 0 / 437.5 MB, free: 61.01 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04489/0.5325, allocations: 27.18 MB / 464.7 MB, free: 40.14 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001403/0.5326, allocations: 230.3 kB / 464.9 MB, free: 39.9 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.424/2.957, allocations: 3.938 kB / 464.9 MB, free: 39.9 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis_fmu --startTime=0 --stopTime=1.6 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat does not exist to compare? outputFormat=mat