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.0008411/0.0008411, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008651/0.0008651, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8971/0.8971, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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 1.373e-06/1.373e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.675e-05/1.813e-05, allocations: 2.281 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.006988/0.007006, allocations: 8.221 MB / 332.8 MB, free: 7.621 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004341/0.01135, allocations: 2.403 MB / 335.2 MB, free: 5.211 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008231/0.01217, allocations: 31.81 kB / 335.2 MB, free: 5.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007031/0.01287, allocations: 341 kB / 335.5 MB, free: 4.844 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00107/0.01394, allocations: 0.5344 MB / 336.1 MB, free: 4.305 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009926/0.01494, allocations: 0.6669 MB / 336.7 MB, free: 3.637 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001828/0.01676, allocations: 2.434 MB / 339.2 MB, free: 1.191 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008389/0.0176, allocations: 0.6945 MB / 339.8 MB, free: 460 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001395/0.019, allocations: 1.318 MB / 341.2 MB, free: 15.13 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007122/0.01971, allocations: 0.6817 MB / 341.8 MB, free: 14.45 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004259/0.02014, allocations: 280 kB / 342.1 MB, free: 14.17 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004187/0.02055, allocations: 355.8 kB / 342.5 MB, free: 13.82 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002661/0.02082, allocations: 0.522 MB / 343 MB, free: 13.3 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004034/0.02122, allocations: 0.6861 MB / 343.7 MB, free: 12.61 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002154/0.02338, allocations: 3.537 MB / 347.2 MB, free: 9.066 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.02338, allocations: 0 / 347.2 MB, free: 9.066 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.02338, allocations: 3.938 kB / 347.2 MB, free: 9.062 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.904e-05/0.0234, allocations: 0 / 347.2 MB, free: 9.062 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.002026/0.02543, allocations: 1.913 MB / 349.1 MB, free: 7.109 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.02546, allocations: 15.98 kB / 349.1 MB, free: 7.094 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001831/0.02565, allocations: 228 kB / 349.4 MB, free: 6.859 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002353/0.02588, allocations: 191.8 kB / 349.6 MB, free: 6.672 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000839/0.02672, allocations: 0.7776 MB / 350.3 MB, free: 5.867 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002229/0.02694, allocations: 446.3 kB / 350.8 MB, free: 5.363 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000145/0.02709, allocations: 160.3 kB / 350.9 MB, free: 5.207 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002096/0.02919, allocations: 1.899 MB / 352.8 MB, free: 3.23 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.1e-05/0.02922, allocations: 3.953 kB / 352.8 MB, free: 3.227 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.739e-05/0.02931, allocations: 67.94 kB / 352.9 MB, free: 3.16 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.886e-05/0.02933, allocations: 36 kB / 352.9 MB, free: 3.125 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001932/0.03126, allocations: 1.527 MB / 354.5 MB, free: 1.594 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005252/0.03652, allocations: 5.201 MB / 359.7 MB, free: 12.18 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001595/0.03811, allocations: 0.8914 MB / 360.5 MB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006194/0.03873, allocations: 492.9 kB / 361 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.197e-05/0.03877, allocations: 9 kB / 361 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008107/0.03958, allocations: 0.8497 MB / 361.9 MB, free: 9.824 MB / 330.7 MB Notification: Performance of pre-optimization done (n=92): time 2.114e-06/0.03959, allocations: 0 / 361.9 MB, free: 9.824 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.01735/0.05693, allocations: 8.563 MB / 370.5 MB, free: 1.215 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.05704, allocations: 303.7 kB / 370.7 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007709/0.05781, allocations: 0.8325 MB / 371.6 MB, free: 4 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.201e-05/0.05789, allocations: 57.73 kB / 371.6 MB, free: 15.94 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000339/0.05823, allocations: 0.68 MB / 372.3 MB, free: 15.25 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002265/0.05846, allocations: 428.4 kB / 372.7 MB, free: 14.83 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003/0.05876, allocations: 247.5 kB / 373 MB, free: 14.58 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.05888, allocations: 410.7 kB / 373.4 MB, free: 14.17 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001381/0.06026, allocations: 0.8004 MB / 374.2 MB, free: 13.37 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001323/0.06159, allocations: 1.315 MB / 375.5 MB, free: 11.89 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002041/0.06363, allocations: 1.611 MB / 377.1 MB, free: 10.19 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.06363, allocations: 4 kB / 377.1 MB, free: 10.19 MB / 346.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002653/0.06629, allocations: 2.045 MB / 379.2 MB, free: 8.125 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.0663, allocations: 12 kB / 379.2 MB, free: 8.113 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.06632, allocations: 8 kB / 379.2 MB, free: 8.105 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002885/0.06661, allocations: 218.4 kB / 379.4 MB, free: 7.883 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008118/0.06742, allocations: 351.5 kB / 379.7 MB, free: 7.539 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002627/0.07004, allocations: 4.493 MB / 384.2 MB, free: 2.707 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006715/0.07072, allocations: 167.8 kB / 384.4 MB, free: 2.543 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.143e-05/0.07079, allocations: 55.92 kB / 384.4 MB, free: 2.488 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.0004474/0.07123, allocations: 387.5 kB / 384.8 MB, free: 2.098 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.07135, allocations: 111.3 kB / 384.9 MB, free: 1.988 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001218/0.07147, allocations: 142.1 kB / 385.1 MB, free: 1.848 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.07147, allocations: 12 kB / 385.1 MB, free: 1.836 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.07148, allocations: 0 / 385.1 MB, free: 1.836 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.07149, allocations: 3.984 kB / 385.1 MB, free: 1.832 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004796/0.07628, allocations: 4.003 MB / 389.1 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.996e-06/0.07629, allocations: 12 kB / 389.1 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005588/0.07685, allocations: 264.2 kB / 389.4 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003152/0.07717, allocations: 277.5 kB / 389.6 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.586e-05/0.07722, allocations: 39.98 kB / 389.7 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001023/0.07825, allocations: 2.086 MB / 391.8 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.07825, allocations: 11.94 kB / 391.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002761/0.08101, allocations: 2.402 MB / 394.2 MB, free: 8.266 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003557/0.08137, allocations: 255.2 kB / 394.4 MB, free: 8.016 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001074/0.08148, allocations: 48 kB / 394.5 MB, free: 7.969 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000524/0.082, allocations: 147.8 kB / 394.6 MB, free: 7.824 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000227/0.08223, allocations: 180.1 kB / 394.8 MB, free: 7.648 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.985e-05/0.08228, allocations: 47.98 kB / 394.8 MB, free: 7.602 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007389/0.08301, allocations: 0.5498 MB / 395.4 MB, free: 7.051 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.08302, allocations: 0 / 395.4 MB, free: 7.051 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007427/0.08376, allocations: 343.9 kB / 395.7 MB, free: 6.715 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.003499/0.08726, allocations: 3.272 MB / 399 MB, free: 3.418 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002379/0.08964, allocations: 1.899 MB / 400.9 MB, free: 1.484 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.08964, allocations: 4 kB / 400.9 MB, free: 1.48 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001307/0.09095, allocations: 1.008 MB / 401.9 MB, free: 472 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000727/0.09167, allocations: 203.1 kB / 402.1 MB, free: 268 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01434/0.106, allocations: 12.07 MB / 414.2 MB, free: 3.621 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004548/0.1065, allocations: 0.6021 MB / 414.8 MB, free: 2.984 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005097/0.107, allocations: 172.4 kB / 414.9 MB, free: 2.812 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005763/0.1076, allocations: 0.5237 MB / 415.5 MB, free: 2.289 MB / 378.7 MB Notification: Performance of SimCode: time 1.002e-06/0.1076, allocations: 0 / 415.5 MB, free: 2.289 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04304/0.1506, allocations: 31.44 MB / 446.9 MB, free: 2.992 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.589/8.74, allocations: 7.922 kB / 446.9 MB, free: 2.984 MB / 410.7 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis_fmu --startTime=0 --stopTime=1.6 --stepSize=0.000340136 --timeout=50 --tolerance=1e-06 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: 10.646550420671701] 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.85963390301913 9.018439292 8.992515876 Calling exit ...