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.001217/0.001217, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001329/0.001329, allocations: 208.7 kB / 24.51 MB, free: 3.941 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.379/1.379, allocations: 230.5 MB / 258.2 MB, free: 7.793 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001796, allocations: 59.89 kB / 378.5 MB, free: 2.812 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2206/0.2224, allocations: 53.4 MB / 431.9 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01038/0.2328, allocations: 8.191 MB / 440.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004439/0.2372, allocations: 2.403 MB / 442.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007423/0.238, allocations: 35.81 kB / 442.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00078/0.2388, allocations: 340.9 kB / 442.9 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001161/0.2399, allocations: 0.5114 MB / 443.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001127/0.2411, allocations: 0.6554 MB / 444 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002558/0.2436, allocations: 2.372 MB / 446.4 MB, free: 7.918 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001139/0.2447, allocations: 0.7336 MB / 447.2 MB, free: 7.133 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001023/0.2458, allocations: 0.853 MB / 448 MB, free: 6.277 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001074/0.2468, allocations: 0.9143 MB / 448.9 MB, free: 5.359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003259/0.2472, allocations: 280 kB / 449.2 MB, free: 5.086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006104/0.2478, allocations: 359.9 kB / 449.5 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004534/0.2482, allocations: 0.5104 MB / 450.1 MB, free: 4.223 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007934/0.249, allocations: 0.7977 MB / 450.9 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003229/0.2523, allocations: 3.44 MB / 454.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2523, allocations: 4 kB / 454.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2523, allocations: 0 / 454.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.649e-05/0.2523, allocations: 0 / 454.3 MB, free: 15.96 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.003682/0.256, allocations: 1.932 MB / 456.2 MB, free: 13.99 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.256, allocations: 8.031 kB / 456.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.351e-05/0.2561, allocations: 39.14 kB / 456.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002721/0.2563, allocations: 228 kB / 456.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000401/0.2567, allocations: 191.8 kB / 456.7 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001311/0.2581, allocations: 0.7822 MB / 457.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003882/0.2584, allocations: 445.9 kB / 457.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002411/0.2587, allocations: 163.9 kB / 458.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00326/0.2619, allocations: 1.883 MB / 459.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.339e-05/0.262, allocations: 7.953 kB / 460 MB, free: 10.08 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001522/0.2621, allocations: 71.98 kB / 460 MB, free: 10.01 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.26e-05/0.2622, allocations: 40 kB / 460.1 MB, free: 9.969 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003267/0.2654, allocations: 1.535 MB / 461.6 MB, free: 8.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008654/0.2741, allocations: 5.185 MB / 466.8 MB, free: 3.031 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002057/0.2762, allocations: 0.8996 MB / 467.7 MB, free: 2.109 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001019/0.2772, allocations: 485.1 kB / 468.2 MB, free: 1.633 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.516e-05/0.2772, allocations: 12.94 kB / 468.2 MB, free: 1.621 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001407/0.2786, allocations: 0.8653 MB / 469 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 2.965e-06/0.2786, allocations: 0 / 469 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.03431/0.313, allocations: 8.558 MB / 477.6 MB, free: 8.062 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001776/0.3131, allocations: 303.7 kB / 477.9 MB, free: 7.695 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001249/0.3144, allocations: 0.817 MB / 478.7 MB, free: 6.863 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001426/0.3145, allocations: 57.69 kB / 478.8 MB, free: 6.801 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005866/0.3151, allocations: 0.6723 MB / 479.4 MB, free: 6.117 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004242/0.3155, allocations: 444.3 kB / 479.9 MB, free: 5.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000508/0.316, allocations: 247.5 kB / 480.1 MB, free: 5.434 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002189/0.3163, allocations: 406.7 kB / 480.5 MB, free: 5.027 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00195/0.3182, allocations: 0.7926 MB / 481.3 MB, free: 4.234 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002334/0.3205, allocations: 1.323 MB / 482.6 MB, free: 2.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003697/0.3242, allocations: 1.619 MB / 484.2 MB, free: 1.039 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.3243, allocations: 4 kB / 484.2 MB, free: 1.035 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.005008/0.3293, allocations: 2.037 MB / 486.3 MB, free: 14.98 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.946e-05/0.3293, allocations: 8 kB / 486.3 MB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.949e-05/0.3293, allocations: 12.19 kB / 486.3 MB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000544/0.3299, allocations: 218.4 kB / 486.5 MB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001665/0.3315, allocations: 355.5 kB / 486.9 MB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004551/0.3361, allocations: 4.501 MB / 491.4 MB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001686/0.3378, allocations: 167.8 kB / 491.5 MB, free: 9.387 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001534/0.3379, allocations: 51.98 kB / 491.6 MB, free: 9.336 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: 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.0009341/0.3388, allocations: 391.5 kB / 492 MB, free: 8.945 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002876/0.3391, allocations: 111.3 kB / 492.1 MB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003024/0.3394, allocations: 138.1 kB / 492.2 MB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.114e-05/0.3394, allocations: 12 kB / 492.2 MB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.275e-05/0.3395, allocations: 4 kB / 492.2 MB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.3395, allocations: 3.984 kB / 492.2 MB, free: 8.676 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008482/0.3479, allocations: 4.003 MB / 496.2 MB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.137e-05/0.348, allocations: 12 kB / 496.2 MB, free: 4.477 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001192/0.3492, allocations: 256.1 kB / 496.5 MB, free: 4.227 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006138/0.3498, allocations: 289.4 kB / 496.8 MB, free: 3.938 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001322/0.3499, allocations: 39.98 kB / 496.8 MB, free: 3.898 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001986/0.3519, allocations: 2.082 MB / 498.9 MB, free: 1.676 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.007e-05/0.3519, allocations: 11.94 kB / 498.9 MB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005311/0.3572, allocations: 2.421 MB / 0.4896 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007536/0.358, allocations: 263.1 kB / 0.4898 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000308/0.3583, allocations: 48 kB / 0.4899 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001234/0.3595, allocations: 139.8 kB / 0.49 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004183/0.3599, allocations: 176.3 kB / 0.4902 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001134/0.36, allocations: 47.98 kB / 0.4902 GB, free: 14.43 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0009809/0.361, allocations: 0.5498 MB / 0.4908 GB, free: 13.89 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.361, allocations: 0 / 0.4908 GB, free: 13.89 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001617/0.3626, allocations: 340 kB / 0.4911 GB, free: 13.55 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: 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.006976/0.3696, allocations: 3.296 MB / 0.4943 GB, free: 10.22 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004651/0.3743, allocations: 1.901 MB / 0.4962 GB, free: 8.285 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.007e-05/0.3743, allocations: 5.812 kB / 0.4962 GB, free: 8.281 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002332/0.3766, allocations: 1.008 MB / 0.4971 GB, free: 7.266 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001499/0.3781, allocations: 208.5 kB / 0.4973 GB, free: 7.07 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02442/0.4025, allocations: 12.2 MB / 0.5093 GB, free: 10.3 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008994/0.4034, allocations: 0.5943 MB / 0.5098 GB, free: 9.668 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009411/0.4044, allocations: 180.3 kB / 0.51 GB, free: 9.488 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009891/0.4054, allocations: 0.5188 MB / 0.5105 GB, free: 8.969 MB / 430.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4054, allocations: 7.938 kB / 0.5105 GB, free: 8.961 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2645/0.6699, allocations: 31.37 MB / 0.5412 GB, free: 105.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.7/15.37, allocations: 5.625 kB / 0.5412 GB, free: 105.8 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 & /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: 18.18687468697317] 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.603619005065411 15.61315123 15.35881492 Calling exit ...