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.001078/0.001078, allocations: 83.69 kB / 20.68 MB, free: 3.883 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.0008601/0.0008601, 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.8864/0.8864, allocations: 177.1 MB / 204.3 MB, free: 5.707 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 2.295e-06/2.295e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.197e-05/2.427e-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.007491/0.007516, allocations: 8.232 MB / 332.8 MB, free: 7.652 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002876/0.01039, allocations: 2.403 MB / 335.2 MB, free: 5.242 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004639/0.01086, allocations: 35.81 kB / 335.2 MB, free: 5.207 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006394/0.01149, allocations: 336.9 kB / 335.6 MB, free: 4.875 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007708/0.01227, allocations: 0.5344 MB / 336.1 MB, free: 4.336 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007731/0.01304, allocations: 0.6553 MB / 336.8 MB, free: 3.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001352/0.01439, allocations: 2.437 MB / 339.2 MB, free: 1.234 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001103/0.01549, allocations: 0.7022 MB / 339.9 MB, free: 492 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009396/0.01643, allocations: 1.318 MB / 341.2 MB, free: 15.16 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005359/0.01697, allocations: 0.6778 MB / 341.9 MB, free: 14.48 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001861/0.01716, allocations: 280 kB / 342.2 MB, free: 14.21 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003627/0.01752, allocations: 347.9 kB / 342.5 MB, free: 13.87 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002794/0.0178, allocations: 0.5258 MB / 343 MB, free: 13.34 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003882/0.01819, allocations: 0.6939 MB / 343.7 MB, free: 12.64 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002017/0.0202, allocations: 3.541 MB / 347.3 MB, free: 9.094 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.02021, allocations: 4 kB / 347.3 MB, free: 9.09 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.02021, allocations: 0 / 347.3 MB, free: 9.09 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.456e-05/0.02022, allocations: 0 / 347.3 MB, free: 9.09 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.002044/0.02227, allocations: 1.905 MB / 349.2 MB, free: 7.145 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.02231, allocations: 12.03 kB / 349.2 MB, free: 7.133 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001859/0.0225, allocations: 228 kB / 349.4 MB, free: 6.898 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000247/0.02274, allocations: 191.8 kB / 349.6 MB, free: 6.711 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008411/0.02359, allocations: 0.7815 MB / 350.4 MB, free: 5.898 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002326/0.02382, allocations: 446.3 kB / 350.8 MB, free: 5.395 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001465/0.02396, allocations: 156.3 kB / 351 MB, free: 5.242 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001899/0.02586, allocations: 1.895 MB / 352.9 MB, free: 3.27 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.208e-05/0.0259, allocations: 3.953 kB / 352.9 MB, free: 3.266 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001007/0.026, allocations: 64 kB / 352.9 MB, free: 3.203 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.99e-05/0.02602, allocations: 36 kB / 353 MB, free: 3.168 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002043/0.02806, allocations: 1.531 MB / 354.5 MB, free: 1.633 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005122/0.03318, allocations: 5.201 MB / 359.7 MB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001268/0.03445, allocations: 0.8914 MB / 360.6 MB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007082/0.03516, allocations: 492.9 kB / 361.1 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.964e-05/0.03521, allocations: 12.94 kB / 361.1 MB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008123/0.03602, allocations: 0.8536 MB / 361.9 MB, free: 9.855 MB / 330.7 MB Notification: Performance of pre-optimization done (n=92): time 2.315e-06/0.03602, allocations: 7.938 kB / 362 MB, free: 9.848 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.0175/0.05352, allocations: 8.554 MB / 370.5 MB, free: 1.25 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.709e-05/0.05361, allocations: 299.7 kB / 370.8 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007471/0.05436, allocations: 0.8403 MB / 371.6 MB, free: 36 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.145e-05/0.05444, allocations: 53.78 kB / 371.7 MB, free: 15.97 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003592/0.0548, allocations: 0.6799 MB / 372.4 MB, free: 15.29 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002136/0.05501, allocations: 428.4 kB / 372.8 MB, free: 14.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002904/0.0553, allocations: 247.5 kB / 373 MB, free: 14.61 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.05543, allocations: 406.7 kB / 373.4 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001134/0.05657, allocations: 0.7965 MB / 374.2 MB, free: 13.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001831/0.0584, allocations: 1.312 MB / 375.5 MB, free: 11.94 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003047/0.06144, allocations: 1.619 MB / 377.2 MB, free: 10.23 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.553e-06/0.06145, allocations: 0 / 377.2 MB, free: 10.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.004251/0.0657, allocations: 2.049 MB / 379.2 MB, free: 8.164 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.295e-05/0.06573, allocations: 8 kB / 379.2 MB, free: 8.156 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.156e-05/0.06576, allocations: 4 kB / 379.2 MB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004886/0.06624, allocations: 214.5 kB / 379.4 MB, free: 7.934 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/0.06739, allocations: 355.5 kB / 379.8 MB, free: 7.586 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002698/0.07009, allocations: 4.496 MB / 384.3 MB, free: 2.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001073/0.07116, allocations: 171.9 kB / 384.4 MB, free: 2.582 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.07126, allocations: 47.98 kB / 384.5 MB, free: 2.535 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.0007322/0.07199, allocations: 391.5 kB / 384.9 MB, free: 2.141 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001879/0.07218, allocations: 115.2 kB / 385 MB, free: 2.027 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001889/0.07237, allocations: 134.2 kB / 385.1 MB, free: 1.895 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.158e-05/0.07238, allocations: 15.98 kB / 385.1 MB, free: 1.879 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.776e-05/0.0724, allocations: 4 kB / 385.1 MB, free: 1.875 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.07241, allocations: 4.125 kB / 385.1 MB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004756/0.07717, allocations: 4.007 MB / 389.1 MB, free: 13.67 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.365e-06/0.07718, allocations: 11.94 kB / 389.2 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000634/0.07781, allocations: 272.4 kB / 389.4 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003155/0.07813, allocations: 269.5 kB / 389.7 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.459e-05/0.07818, allocations: 39.98 kB / 389.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001034/0.07921, allocations: 2.086 MB / 391.8 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.672e-06/0.07922, allocations: 15.94 kB / 391.8 MB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002705/0.08193, allocations: 2.402 MB / 394.2 MB, free: 8.301 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003434/0.08227, allocations: 255.2 kB / 394.5 MB, free: 8.051 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.434e-05/0.08236, allocations: 44 kB / 394.5 MB, free: 8.008 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005121/0.08288, allocations: 139.8 kB / 394.7 MB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002157/0.08309, allocations: 180.1 kB / 394.8 MB, free: 7.695 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.978e-05/0.08314, allocations: 47.98 kB / 394.9 MB, free: 7.648 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004905/0.08363, allocations: 0.5536 MB / 395.4 MB, free: 7.094 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.08363, allocations: 4 kB / 395.4 MB, free: 7.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000774/0.08441, allocations: 339.9 kB / 395.8 MB, free: 6.758 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.003768/0.08817, allocations: 3.28 MB / 399 MB, free: 3.469 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002525/0.0907, allocations: 1.891 MB / 400.9 MB, free: 1.543 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.225e-06/0.09071, allocations: 7.938 kB / 400.9 MB, free: 1.535 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001275/0.09198, allocations: 1.02 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.0007595/0.09274, allocations: 209 kB / 402.2 MB, free: 312 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01429/0.107, allocations: 12.06 MB / 414.2 MB, free: 3.672 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005051/0.1075, allocations: 0.5981 MB / 414.8 MB, free: 3.039 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000631/0.1082, allocations: 176.4 kB / 415 MB, free: 2.863 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005625/0.1087, allocations: 0.5159 MB / 415.5 MB, free: 2.348 MB / 378.7 MB Notification: Performance of SimCode: time 1.502e-06/0.1087, allocations: 0 / 415.5 MB, free: 2.348 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04138/0.1501, allocations: 31.47 MB / 447 MB, free: 3.125 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.605/8.755, allocations: 3.781 kB / 447 MB, free: 3.125 MB / 410.7 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_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.78629794344306] 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.877128451131284 9.032163933 9.010516176 Calling exit ...