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.006669/0.006669, allocations: 112 kB / 21.97 MB, free: 5.25 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.001455/0.001455, allocations: 202.5 kB / 25.27 MB, free: 3.238 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.325/1.325, allocations: 207.6 MB / 236 MB, free: 9.988 MB / 190.1 MB " [Timeout remaining time 179] 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="cs",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="cs",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.001695/0.001695, allocations: 51.92 kB / 348 MB, free: 10.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2217/0.2234, allocations: 49.16 MB / 397.1 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.008647/0.232, allocations: 9.255 MB / 406.4 MB, free: 2.332 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004635/0.2366, allocations: 2.324 MB / 408.7 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001516/0.2382, allocations: 40.22 kB / 408.8 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001028/0.2392, allocations: 320.9 kB / 409.1 MB, free: 400 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002068/0.2412, allocations: 0.4986 MB / 409.6 MB, free: 24 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001798/0.243, allocations: 0.6564 MB / 410.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00367/0.2467, allocations: 2.352 MB / 412.6 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00148/0.2482, allocations: 0.7379 MB / 413.3 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001597/0.2498, allocations: 0.8743 MB / 414.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001471/0.2513, allocations: 0.8859 MB / 415.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004489/0.2517, allocations: 276 kB / 415.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007049/0.2524, allocations: 329 kB / 415.7 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005001/0.2529, allocations: 0.507 MB / 416.2 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00119/0.2541, allocations: 0.9761 MB / 417.2 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003636/0.2577, allocations: 3.354 MB / 420.5 MB, free: 8.934 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2577, allocations: 0 / 420.5 MB, free: 8.934 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2578, allocations: 3.938 kB / 420.5 MB, free: 8.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.817e-05/0.2578, allocations: 0.875 kB / 420.5 MB, free: 8.93 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.00428/0.2621, allocations: 1.887 MB / 422.4 MB, free: 7.578 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.904e-05/0.2622, allocations: 18.22 kB / 422.4 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.07e-05/0.2622, allocations: 43.09 kB / 422.5 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003035/0.2625, allocations: 228 kB / 422.7 MB, free: 7.379 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003843/0.2629, allocations: 185.1 kB / 422.9 MB, free: 7.289 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001437/0.2644, allocations: 0.7896 MB / 423.7 MB, free: 6.621 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003853/0.2647, allocations: 445.7 kB / 424.1 MB, free: 6.203 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002431/0.265, allocations: 160.9 kB / 424.3 MB, free: 6.145 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003038/0.268, allocations: 1.679 MB / 425.9 MB, free: 5.156 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.32e-05/0.2681, allocations: 11.61 kB / 425.9 MB, free: 5.148 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001407/0.2682, allocations: 64.77 kB / 426 MB, free: 5.098 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.741e-05/0.2682, allocations: 37.31 kB / 426 MB, free: 5.098 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003185/0.2714, allocations: 1.561 MB / 427.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009182/0.2806, allocations: 5.695 MB / 433.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002005/0.2826, allocations: 0.8978 MB / 434.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001027/0.2836, allocations: 0.4969 MB / 434.7 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.228e-05/0.2837, allocations: 12.94 kB / 434.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001256/0.2849, allocations: 0.6606 MB / 435.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.275e-06/0.2849, allocations: 0 / 435.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.03401/0.319, allocations: 8.648 MB / 444 MB, free: 3.844 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001625/0.3191, allocations: 303.7 kB / 444.3 MB, free: 3.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001118/0.3202, allocations: 0.7973 MB / 445.1 MB, free: 2.676 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001301/0.3204, allocations: 53.7 kB / 445.2 MB, free: 2.617 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005655/0.3209, allocations: 0.68 MB / 445.8 MB, free: 1.926 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003953/0.3213, allocations: 436.4 kB / 446.3 MB, free: 1.496 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004819/0.3218, allocations: 243.5 kB / 446.5 MB, free: 1.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002214/0.322, allocations: 406.7 kB / 446.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001952/0.324, allocations: 0.812 MB / 447.7 MB, free: 32 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002239/0.3262, allocations: 1.126 MB / 448.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003652/0.3299, allocations: 1.65 MB / 450.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.744e-06/0.3299, allocations: 4 kB / 450.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004868/0.3347, allocations: 2.073 MB / 452.6 MB, free: 10.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.87e-05/0.3348, allocations: 11.94 kB / 452.6 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/0.3348, allocations: 8 kB / 452.6 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004347/0.3352, allocations: 182.5 kB / 452.8 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001661/0.3369, allocations: 359.4 kB / 453.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004284/0.3412, allocations: 4.497 MB / 457.6 MB, free: 5.555 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001634/0.3428, allocations: 167.9 kB / 457.8 MB, free: 5.391 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001817/0.343, allocations: 48 kB / 457.8 MB, free: 5.344 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.0008122/0.3438, allocations: 387.2 kB / 458.2 MB, free: 4.957 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002846/0.3441, allocations: 119.2 kB / 458.3 MB, free: 4.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003035/0.3444, allocations: 134 kB / 458.4 MB, free: 4.707 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/0.3444, allocations: 12 kB / 458.5 MB, free: 4.695 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/0.3444, allocations: 4 kB / 458.5 MB, free: 4.691 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.547e-05/0.3444, allocations: 3.984 kB / 458.5 MB, free: 4.688 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008608/0.353, allocations: 4.374 MB / 462.8 MB, free: 132 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-05/0.3531, allocations: 8 kB / 462.8 MB, free: 124 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001166/0.3542, allocations: 263.7 kB / 463.1 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006211/0.3548, allocations: 369.4 kB / 463.5 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001286/0.355, allocations: 39.98 kB / 463.5 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001926/0.3569, allocations: 2.18 MB / 465.7 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.208e-05/0.3569, allocations: 15.94 kB / 465.7 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005082/0.362, allocations: 2.491 MB / 468.2 MB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006517/0.3626, allocations: 247.3 kB / 468.4 MB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002649/0.3629, allocations: 47.97 kB / 468.5 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001116/0.364, allocations: 139.8 kB / 468.6 MB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003353/0.3644, allocations: 172.2 kB / 468.8 MB, free: 9.891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.174e-05/0.3645, allocations: 47.92 kB / 468.8 MB, free: 9.844 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008173/0.3653, allocations: 0.5342 MB / 469.4 MB, free: 9.312 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3653, allocations: 0 / 469.4 MB, free: 9.312 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001332/0.3666, allocations: 348 kB / 469.7 MB, free: 8.973 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.005493/0.3721, allocations: 3.124 MB / 472.8 MB, free: 5.688 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004305/0.3764, allocations: 1.918 MB / 474.7 MB, free: 3.734 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.878e-06/0.3764, allocations: 8.062 kB / 474.8 MB, free: 3.727 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002253/0.3787, allocations: 1.027 MB / 475.8 MB, free: 2.684 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001319/0.38, allocations: 195.1 kB / 476 MB, free: 2.492 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02288/0.4029, allocations: 12.2 MB / 488.2 MB, free: 5.719 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001008/0.4039, allocations: 1.178 MB / 489.4 MB, free: 4.512 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000787/0.4047, allocations: 168.3 kB / 489.5 MB, free: 4.344 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008773/0.4055, allocations: 0.5149 MB / 490 MB, free: 3.828 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4055, allocations: 0 / 490 MB, free: 3.828 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07216/0.4777, allocations: 30.74 MB / 0.5086 GB, free: 4.996 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.19/14.66, allocations: 12.03 kB / 0.5086 GB, free: 4.984 MB / 430.1 MB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis_fmu --startTime=0 --stopTime=1.6 --stepSize=0.000340136 --timeout=50 --tolerance=1e-06 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: 17.347514964989386] 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'] 14.846840987040196 14.861487963 14.600568419 Calling exit ...