Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0008626/0.0008626, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008589/0.0008589, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8516/0.8516, allocations: 177.1 MB / 204.3 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_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_1_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.492e-06/1.492e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.091e-05/2.24e-05, allocations: 4.672 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.007381/0.007403, allocations: 8.228 MB / 332.8 MB, free: 7.652 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004036/0.01144, allocations: 2.399 MB / 335.2 MB, free: 5.246 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001162/0.0126, allocations: 35.81 kB / 335.2 MB, free: 5.211 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001038/0.01364, allocations: 340.9 kB / 335.6 MB, free: 4.875 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001525/0.01516, allocations: 0.5305 MB / 336.1 MB, free: 4.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001207/0.01637, allocations: 0.6707 MB / 336.8 MB, free: 3.672 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002659/0.01903, allocations: 2.43 MB / 339.2 MB, free: 1.234 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001036/0.02007, allocations: 0.7022 MB / 339.9 MB, free: 492 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00164/0.02171, allocations: 1.314 MB / 341.2 MB, free: 15.16 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008787/0.02259, allocations: 0.6817 MB / 341.9 MB, free: 14.48 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000336/0.02292, allocations: 280 kB / 342.2 MB, free: 14.21 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005402/0.02346, allocations: 347.9 kB / 342.5 MB, free: 13.87 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000303/0.02376, allocations: 0.5258 MB / 343 MB, free: 13.34 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005175/0.02428, allocations: 0.69 MB / 343.7 MB, free: 12.65 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002823/0.0271, allocations: 3.544 MB / 347.3 MB, free: 9.094 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.02711, allocations: 0 / 347.3 MB, free: 9.094 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.02711, allocations: 0 / 347.3 MB, free: 9.094 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.376e-05/0.02715, allocations: 0 / 347.3 MB, free: 9.094 MB / 314.7 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.002468/0.02962, allocations: 1.912 MB / 349.2 MB, free: 7.145 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.02966, allocations: 8.031 kB / 349.2 MB, free: 7.137 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001997/0.02986, allocations: 228 kB / 349.4 MB, free: 6.902 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002669/0.03013, allocations: 191.8 kB / 349.6 MB, free: 6.715 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009497/0.03108, allocations: 0.7815 MB / 350.4 MB, free: 5.902 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002528/0.03133, allocations: 446.3 kB / 350.8 MB, free: 5.398 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001559/0.03149, allocations: 160.3 kB / 351 MB, free: 5.242 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002257/0.03375, allocations: 1.891 MB / 352.9 MB, free: 3.273 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.527e-05/0.03378, allocations: 11.95 kB / 352.9 MB, free: 3.262 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.141e-05/0.03387, allocations: 60 kB / 352.9 MB, free: 3.203 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.121e-05/0.03389, allocations: 40 kB / 353 MB, free: 3.164 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002009/0.0359, allocations: 1.523 MB / 354.5 MB, free: 1.637 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005795/0.0417, allocations: 5.201 MB / 359.7 MB, free: 12.22 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001279/0.04298, allocations: 0.8953 MB / 360.6 MB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006162/0.04359, allocations: 488.9 kB / 361.1 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.936e-05/0.04364, allocations: 9 kB / 361.1 MB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008603/0.0445, allocations: 0.8575 MB / 361.9 MB, free: 9.859 MB / 330.7 MB Notification: Performance of pre-optimization done (n=92): time 3.336e-06/0.04451, allocations: 3.938 kB / 362 MB, free: 9.855 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.01889/0.0634, allocations: 8.555 MB / 370.5 MB, free: 1.254 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/0.06352, allocations: 307.6 kB / 370.8 MB, free: 0.8828 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009159/0.06444, allocations: 0.8247 MB / 371.6 MB, free: 48 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001151/0.06455, allocations: 65.81 kB / 371.7 MB, free: 15.97 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004494/0.065, allocations: 0.676 MB / 372.4 MB, free: 15.29 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002849/0.06529, allocations: 428.4 kB / 372.8 MB, free: 14.87 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003121/0.0656, allocations: 247.5 kB / 373 MB, free: 14.62 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004169/0.06602, allocations: 410.7 kB / 373.4 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001098/0.06711, allocations: 0.7965 MB / 374.2 MB, free: 13.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00131/0.06842, allocations: 1.312 MB / 375.5 MB, free: 11.94 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00205/0.07047, allocations: 1.615 MB / 377.2 MB, free: 10.23 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/0.07048, allocations: 4 kB / 377.2 MB, free: 10.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002826/0.07331, allocations: 2.041 MB / 379.2 MB, free: 8.172 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/0.07333, allocations: 12 kB / 379.2 MB, free: 8.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.07334, allocations: 8 kB / 379.2 MB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003448/0.07369, allocations: 214.4 kB / 379.4 MB, free: 7.934 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008239/0.07451, allocations: 351.5 kB / 379.8 MB, free: 7.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002959/0.07747, allocations: 4.501 MB / 384.3 MB, free: 2.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000929/0.0784, allocations: 167.8 kB / 384.4 MB, free: 2.586 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-05/0.07847, allocations: 55.98 kB / 384.5 MB, free: 2.531 MB / 346.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: 13 (axis.gear.bearingFriction.free,pathPlanning.terminateSimulation.condition,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase,pathPlanning.path.motion_ref,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 (170): * Single equations (assignments): 167 * 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.0006607/0.07913, allocations: 391.4 kB / 384.9 MB, free: 2.137 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.07926, allocations: 115.2 kB / 385 MB, free: 2.023 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001268/0.07939, allocations: 138.2 kB / 385.1 MB, free: 1.887 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.0794, allocations: 15.98 kB / 385.1 MB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/0.07941, allocations: 0 / 385.1 MB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/0.07941, allocations: 3.984 kB / 385.1 MB, free: 1.867 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004906/0.08432, allocations: 3.995 MB / 389.1 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/0.08433, allocations: 8 kB / 389.1 MB, free: 13.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005596/0.08489, allocations: 276.2 kB / 389.4 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003293/0.08522, allocations: 277.5 kB / 389.7 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.78e-05/0.08527, allocations: 35.98 kB / 389.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001115/0.08639, allocations: 2.09 MB / 391.8 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.0864, allocations: 11.94 kB / 391.8 MB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002738/0.08913, allocations: 2.398 MB / 394.2 MB, free: 8.309 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000648/0.08978, allocations: 263.2 kB / 394.5 MB, free: 8.051 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.688e-05/0.08988, allocations: 44 kB / 394.5 MB, free: 8.008 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005158/0.09039, allocations: 143.8 kB / 394.7 MB, free: 7.867 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002224/0.09062, allocations: 180.1 kB / 394.8 MB, free: 7.691 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.873e-05/0.09067, allocations: 43.98 kB / 394.9 MB, free: 7.648 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005164/0.09118, allocations: 0.5576 MB / 395.4 MB, free: 7.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.09118, allocations: 0 / 395.4 MB, free: 7.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008203/0.092, allocations: 343.9 kB / 395.8 MB, free: 6.754 MB / 362.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: 9 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,pathPlanning.path.motion_ref,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 (113): * Single equations (assignments): 111 * 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.003488/0.09549, allocations: 3.277 MB / 399 MB, free: 3.469 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002493/0.09798, allocations: 1.895 MB / 400.9 MB, free: 1.539 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.09799, allocations: 0 / 400.9 MB, free: 1.539 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001538/0.09953, allocations: 1.024 MB / 402 MB, free: 0.5039 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00082/0.1003, allocations: 212.1 kB / 402.2 MB, free: 312 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01406/0.1144, allocations: 12.07 MB / 414.2 MB, free: 3.668 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000466/0.1149, allocations: 0.6021 MB / 414.8 MB, free: 3.031 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005591/0.1154, allocations: 168.4 kB / 415 MB, free: 2.863 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005835/0.116, allocations: 0.5199 MB / 415.5 MB, free: 2.344 MB / 378.7 MB Notification: Performance of SimCode: time 2.164e-06/0.116, allocations: 0 / 415.5 MB, free: 2.344 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05073/0.1667, allocations: 31.45 MB / 447 MB, free: 3.129 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.136/8.303, allocations: 8.047 kB / 447 MB, free: 3.121 MB / 410.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis_fmu --startTime=0 --stopTime=1.6 --stepSize=0.000340136 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.148679143749177] 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'] 8.421123904176056 8.551544433 8.523077616 Calling exit ...