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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001309/0.001309, allocations: 113.6 kB / 21.19 MB, free: 0.7031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001439/0.001439, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.467/1.467, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002913/0.002913, allocations: 51.94 kB / 347.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3016/0.3045, allocations: 49.16 MB / 396.4 MB, free: 8.988 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.009062/0.3135, allocations: 9.257 MB / 405.6 MB, free: 2.328 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005586/0.3191, allocations: 2.324 MB / 407.9 MB, free: 0.582 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002005/0.3211, allocations: 35.88 kB / 408 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001039/0.3222, allocations: 322.8 kB / 408.3 MB, free: 396 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002276/0.3244, allocations: 0.4992 MB / 408.8 MB, free: 20 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001923/0.3264, allocations: 0.655 MB / 409.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003831/0.3302, allocations: 2.348 MB / 411.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001467/0.3317, allocations: 0.7376 MB / 412.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001932/0.3336, allocations: 0.8783 MB / 413.4 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001947/0.3355, allocations: 0.8948 MB / 414.3 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004641/0.336, allocations: 274.8 kB / 414.6 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007756/0.3368, allocations: 328.4 kB / 414.9 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005247/0.3373, allocations: 0.5056 MB / 415.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001085/0.3384, allocations: 0.9685 MB / 416.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00395/0.3423, allocations: 3.358 MB / 419.7 MB, free: 8.934 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.283e-06/0.3424, allocations: 0 / 419.7 MB, free: 8.934 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3424, allocations: 0 / 419.7 MB, free: 8.934 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.165e-05/0.3424, allocations: 0 / 419.7 MB, free: 8.934 MB / 334.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.004576/0.347, allocations: 1.891 MB / 421.6 MB, free: 7.578 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.3471, allocations: 14.42 kB / 421.6 MB, free: 7.574 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003184/0.3474, allocations: 226.9 kB / 421.9 MB, free: 7.391 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003937/0.3478, allocations: 193.5 kB / 422 MB, free: 7.293 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001564/0.3493, allocations: 0.7781 MB / 422.8 MB, free: 6.637 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004417/0.3498, allocations: 450.4 kB / 423.3 MB, free: 6.215 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002512/0.35, allocations: 160.9 kB / 423.4 MB, free: 6.156 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003231/0.3533, allocations: 1.687 MB / 425.1 MB, free: 5.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.804e-05/0.3533, allocations: 6.609 kB / 425.1 MB, free: 5.156 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001416/0.3534, allocations: 61.34 kB / 425.2 MB, free: 5.109 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.523e-05/0.3535, allocations: 36.91 kB / 425.2 MB, free: 5.109 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00336/0.3568, allocations: 1.566 MB / 426.8 MB, free: 4.344 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009932/0.3668, allocations: 5.698 MB / 432.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002035/0.3688, allocations: 0.894 MB / 433.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00105/0.3699, allocations: 0.4968 MB / 433.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.119e-05/0.3699, allocations: 9 kB / 433.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001328/0.3713, allocations: 0.6645 MB / 434.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 3.086e-06/0.3713, allocations: 0 / 434.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.03311/0.4044, allocations: 8.652 MB / 443.2 MB, free: 3.871 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001853/0.4046, allocations: 295.7 kB / 443.5 MB, free: 3.516 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001268/0.4058, allocations: 0.7974 MB / 444.3 MB, free: 2.711 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001404/0.406, allocations: 53.7 kB / 444.3 MB, free: 2.652 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006306/0.4066, allocations: 0.68 MB / 445 MB, free: 1.961 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004241/0.407, allocations: 428.3 kB / 445.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004767/0.4075, allocations: 247.5 kB / 445.7 MB, free: 1.289 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002507/0.4078, allocations: 410.7 kB / 446.1 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001926/0.4097, allocations: 0.8159 MB / 446.9 MB, free: 64 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002278/0.412, allocations: 1.126 MB / 448 MB, free: 14.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003637/0.4156, allocations: 1.65 MB / 449.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.4156, allocations: 0 / 449.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004827/0.4204, allocations: 2.081 MB / 451.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.789e-05/0.4205, allocations: 8 kB / 451.7 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.763e-05/0.4205, allocations: 4 kB / 451.8 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004529/0.4209, allocations: 178.5 kB / 451.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001634/0.4226, allocations: 355.5 kB / 452.3 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004467/0.427, allocations: 4.512 MB / 456.8 MB, free: 5.582 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001718/0.4287, allocations: 155.9 kB / 456.9 MB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001581/0.4289, allocations: 55.98 kB / 457 MB, free: 5.375 MB / 366.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 (168): * Single equations (assignments): 165 * 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.000791/0.4297, allocations: 391.1 kB / 457.4 MB, free: 4.984 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002308/0.4299, allocations: 111.2 kB / 457.5 MB, free: 4.875 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002794/0.4302, allocations: 138 kB / 457.6 MB, free: 4.738 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.179e-05/0.4302, allocations: 12 kB / 457.6 MB, free: 4.727 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/0.4302, allocations: 0 / 457.6 MB, free: 4.727 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.4302, allocations: 3.984 kB / 457.6 MB, free: 4.723 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00832/0.4386, allocations: 4.374 MB / 462 MB, free: 168 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.672e-05/0.4386, allocations: 12 kB / 462 MB, free: 156 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001148/0.4397, allocations: 259.6 kB / 462.3 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006205/0.4403, allocations: 369.8 kB / 462.6 MB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.482e-05/0.4404, allocations: 32 kB / 462.7 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002058/0.4425, allocations: 2.187 MB / 464.9 MB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.305e-05/0.4425, allocations: 19.92 kB / 464.9 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004951/0.4475, allocations: 2.491 MB / 467.4 MB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006945/0.4481, allocations: 247.2 kB / 467.6 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001889/0.4483, allocations: 47.98 kB / 467.7 MB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.4494, allocations: 143.8 kB / 467.8 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003368/0.4497, allocations: 172.3 kB / 468 MB, free: 9.918 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.898e-05/0.4498, allocations: 47.98 kB / 468 MB, free: 9.871 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008063/0.4506, allocations: 0.5342 MB / 468.5 MB, free: 9.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4506, allocations: 0 / 468.5 MB, free: 9.34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001327/0.4519, allocations: 344 kB / 468.9 MB, free: 9.004 MB / 382.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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005528/0.4574, allocations: 3.12 MB / 472 MB, free: 5.723 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004482/0.4619, allocations: 1.925 MB / 473.9 MB, free: 3.762 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.769e-06/0.4619, allocations: 0 / 473.9 MB, free: 3.762 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002263/0.4642, allocations: 1.025 MB / 474.9 MB, free: 2.723 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001404/0.4656, allocations: 194.8 kB / 475.1 MB, free: 2.531 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0234/0.489, allocations: 12.2 MB / 487.3 MB, free: 5.758 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009956/0.49, allocations: 1.178 MB / 488.5 MB, free: 4.551 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008409/0.4908, allocations: 168.3 kB / 488.7 MB, free: 4.383 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008739/0.4917, allocations: 0.5149 MB / 489.2 MB, free: 3.867 MB / 398.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4917, allocations: 3.938 kB / 489.2 MB, free: 3.863 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08074/0.5725, allocations: 30.71 MB / 0.5077 GB, free: 5.059 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.22/15.79, allocations: 11.83 kB / 0.5077 GB, free: 5.047 MB / 430.1 MB " [Timeout remaining time 644] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.55614108699956] 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'] 15.92694314900291 15.9548773 15.606708611 Calling exit ...