Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001741/0.001741, allocations: 120.4 kB / 20.43 MB, free: 1.301 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002119/0.002119, allocations: 211.2 kB / 23.74 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 230.5 MB / 257.4 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 63.91 kB / 377.8 MB, free: 3.008 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.266, allocations: 53.41 MB / 431.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01258/0.2786, allocations: 9.463 MB / 440.7 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006624/0.2852, allocations: 2.462 MB / 443.1 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001766/0.287, allocations: 39.75 kB / 443.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001212/0.2882, allocations: 344.9 kB / 443.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002204/0.2904, allocations: 0.5075 MB / 444 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001505/0.2919, allocations: 0.6667 MB / 444.7 MB, free: 9.168 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003299/0.2952, allocations: 2.368 MB / 447 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001421/0.2966, allocations: 0.7449 MB / 447.8 MB, free: 6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001829/0.2985, allocations: 0.888 MB / 448.7 MB, free: 5.109 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001699/0.3002, allocations: 0.9027 MB / 449.6 MB, free: 4.203 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004457/0.3006, allocations: 280 kB / 449.9 MB, free: 3.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006375/0.3012, allocations: 328 kB / 450.2 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004838/0.3017, allocations: 0.5142 MB / 450.7 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001013/0.3027, allocations: 0.9842 MB / 451.7 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004108/0.3068, allocations: 3.411 MB / 455.1 MB, free: 14.69 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.326e-06/0.3069, allocations: 0 / 455.1 MB, free: 14.69 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3069, allocations: 0 / 455.1 MB, free: 14.69 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.675e-05/0.3069, allocations: 0 / 455.1 MB, free: 14.69 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.004292/0.3112, allocations: 1.92 MB / 457 MB, free: 12.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.3113, allocations: 15.97 kB / 457 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003027/0.3116, allocations: 224 kB / 457.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00032/0.3119, allocations: 187.8 kB / 457.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001516/0.3134, allocations: 0.7924 MB / 458.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004365/0.3138, allocations: 450.1 kB / 458.7 MB, free: 10.97 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002502/0.3141, allocations: 160 kB / 458.8 MB, free: 10.81 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003268/0.3174, allocations: 1.667 MB / 460.5 MB, free: 9.117 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.577e-05/0.3174, allocations: 11.94 kB / 460.5 MB, free: 9.105 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001445/0.3176, allocations: 60 kB / 460.5 MB, free: 9.047 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.495e-05/0.3176, allocations: 36 kB / 460.6 MB, free: 9.012 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00341/0.321, allocations: 1.535 MB / 462.1 MB, free: 7.473 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0101/0.3311, allocations: 5.719 MB / 467.8 MB, free: 1.535 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002099/0.3332, allocations: 0.8787 MB / 468.7 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/0.3342, allocations: 481.1 kB / 469.2 MB, free: 172 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.1e-05/0.3343, allocations: 13 kB / 469.2 MB, free: 156 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001343/0.3356, allocations: 0.6373 MB / 469.8 MB, free: 15.47 MB / 382.1 MB Notification: Performance of pre-optimization done (n=91): time 4.107e-06/0.3357, allocations: 4 kB / 469.8 MB, free: 15.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=121): time 0.0329/0.3686, allocations: 8.531 MB / 478.4 MB, free: 6.891 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001825/0.3687, allocations: 303.8 kB / 478.7 MB, free: 6.527 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001187/0.3699, allocations: 0.7975 MB / 479.5 MB, free: 5.715 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001141/0.37, allocations: 53.7 kB / 479.5 MB, free: 5.656 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006016/0.3706, allocations: 0.6878 MB / 480.2 MB, free: 4.957 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003902/0.371, allocations: 428.4 kB / 480.6 MB, free: 4.535 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004695/0.3715, allocations: 247.5 kB / 480.9 MB, free: 4.289 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00023/0.3717, allocations: 406.7 kB / 481.3 MB, free: 3.883 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00195/0.3737, allocations: 0.7925 MB / 482.1 MB, free: 3.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002195/0.3759, allocations: 1.111 MB / 483.2 MB, free: 1.867 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003553/0.3794, allocations: 1.603 MB / 484.8 MB, free: 176 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.3794, allocations: 0 / 484.8 MB, free: 176 kB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004787/0.3842, allocations: 2.038 MB / 486.8 MB, free: 14.11 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.3842, allocations: 8 kB / 486.8 MB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-05/0.3843, allocations: 8 kB / 486.8 MB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004791/0.3847, allocations: 222.4 kB / 487 MB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00165/0.3864, allocations: 351.5 kB / 487.4 MB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004458/0.3908, allocations: 4.532 MB / 491.9 MB, free: 8.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/0.3923, allocations: 163.9 kB / 492.1 MB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001195/0.3925, allocations: 52 kB / 492.1 MB, free: 8.438 MB / 398.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,pathPlanning.terminateSimulation.condition,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase,axis.gear.bearingFriction.mode,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.startBackward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 166 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007822/0.3932, allocations: 395.3 kB / 492.5 MB, free: 8.043 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002125/0.3934, allocations: 107.3 kB / 492.6 MB, free: 7.938 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002896/0.3937, allocations: 138 kB / 492.7 MB, free: 7.797 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.3937, allocations: 12 kB / 492.8 MB, free: 7.785 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.3938, allocations: 4 kB / 492.8 MB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.312e-05/0.3938, allocations: 11.97 kB / 492.8 MB, free: 7.77 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008157/0.4019, allocations: 4.311 MB / 497.1 MB, free: 3.281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.565e-05/0.4019, allocations: 12 kB / 497.1 MB, free: 3.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001161/0.4031, allocations: 267.6 kB / 497.4 MB, free: 3.008 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005591/0.4037, allocations: 277.8 kB / 497.6 MB, free: 2.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.807e-05/0.4038, allocations: 35.98 kB / 497.7 MB, free: 2.695 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002029/0.4058, allocations: 2.086 MB / 499.8 MB, free: 476 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.401e-05/0.4058, allocations: 20 kB / 499.8 MB, free: 456 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004958/0.4108, allocations: 2.393 MB / 0.4904 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007128/0.4115, allocations: 247.2 kB / 0.4906 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002076/0.4117, allocations: 51.92 kB / 0.4907 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.4127, allocations: 143.8 kB / 0.4908 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003456/0.4131, allocations: 172.2 kB / 0.491 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.609e-05/0.4131, allocations: 47.98 kB / 0.491 GB, free: 13.26 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007811/0.4139, allocations: 0.542 MB / 0.4916 GB, free: 12.72 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4139, allocations: 0 / 0.4916 GB, free: 12.72 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001191/0.4151, allocations: 339.9 kB / 0.4919 GB, free: 12.39 MB / 414.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00643/0.4216, allocations: 3.249 MB / 0.4951 GB, free: 9.102 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004335/0.4259, allocations: 1.887 MB / 0.4969 GB, free: 7.172 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.4259, allocations: 0 / 0.4969 GB, free: 7.172 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002265/0.4282, allocations: 1.012 MB / 0.4979 GB, free: 6.152 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001272/0.4294, allocations: 202.2 kB / 0.4981 GB, free: 5.957 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02245/0.4519, allocations: 12.06 MB / 0.5099 GB, free: 9.332 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009327/0.4528, allocations: 1.19 MB / 0.511 GB, free: 8.105 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007948/0.4536, allocations: 164.5 kB / 0.5112 GB, free: 7.941 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008636/0.4545, allocations: 0.5227 MB / 0.5117 GB, free: 7.418 MB / 430.1 MB Notification: Performance of SimCode: time 8.31e-07/0.4545, allocations: 0 / 0.5117 GB, free: 7.418 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2907/0.7452, allocations: 31.17 MB / 0.5421 GB, free: 102.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.33/16.07, allocations: 3.844 kB / 0.5421 GB, free: 102.3 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.csv --start-time 0 --stop-time 1.6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000340136 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.890738684000098] Failed to read output from testmodel.py, exit status != 0: ['time', 'axis.controller.PI.x', 'axis.gear.spring.phi_rel', 'axis.gear.spring.w_rel', 'axis.initializeFlange.phi_flange', 'axis.initializeFlange.w_flange', 'axis.motor.C.v', 'axis.motor.La.i', 'axis.gear.bearingFriction.mode', 'axis.gear.bearingFriction.startBackward', 'axis.gear.bearingFriction.startForward'] 16.281952050001564 16.293067096 15.983648663 Calling exit ...