Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 101.5 kB / 21.21 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 188.9 kB / 24.49 MB, free: 3.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 225.7 MB / 253.3 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 47.92 kB / 371.2 MB, free: 9.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2182/0.2197, allocations: 52.19 MB / 423.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01029/0.2299, allocations: 8.098 MB / 431.5 MB, free: 6.266 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004463/0.2344, allocations: 2.248 MB / 433.7 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001181/0.2356, allocations: 31.88 kB / 433.7 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009064/0.2365, allocations: 333 kB / 434.1 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001552/0.238, allocations: 0.4958 MB / 434.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001255/0.2393, allocations: 0.6555 MB / 435.2 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002852/0.2422, allocations: 2.341 MB / 437.6 MB, free: 152 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001122/0.2433, allocations: 0.7451 MB / 438.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001124/0.2444, allocations: 0.8491 MB / 439.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001136/0.2455, allocations: 0.9066 MB / 440.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003312/0.2459, allocations: 276 kB / 440.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005608/0.2464, allocations: 339.9 kB / 440.7 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004393/0.2469, allocations: 0.5026 MB / 441.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008278/0.2477, allocations: 0.7976 MB / 442 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00335/0.251, allocations: 3.391 MB / 445.4 MB, free: 8.281 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.251, allocations: 0 / 445.4 MB, free: 8.281 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.251, allocations: 0 / 445.4 MB, free: 8.281 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.55e-05/0.2511, allocations: 4 kB / 445.4 MB, free: 8.277 MB / 350.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.003834/0.2549, allocations: 1.897 MB / 447.3 MB, free: 6.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.255, allocations: 8.031 kB / 447.3 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.781e-05/0.255, allocations: 39.12 kB / 447.3 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002754/0.2553, allocations: 228 kB / 447.5 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003831/0.2557, allocations: 191.8 kB / 447.7 MB, free: 5.871 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00132/0.257, allocations: 0.7821 MB / 448.5 MB, free: 5.059 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003902/0.2574, allocations: 445.9 kB / 448.9 MB, free: 4.555 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002446/0.2576, allocations: 156 kB / 449.1 MB, free: 4.402 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003387/0.261, allocations: 1.895 MB / 451 MB, free: 2.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.416e-05/0.2611, allocations: 4 kB / 451 MB, free: 2.426 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000143/0.2612, allocations: 60 kB / 451 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.923e-05/0.2612, allocations: 36 kB / 451.1 MB, free: 2.332 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003398/0.2646, allocations: 1.581 MB / 452.7 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009067/0.2737, allocations: 5.201 MB / 457.9 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002056/0.2758, allocations: 0.8977 MB / 458.8 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/0.2768, allocations: 0.4963 MB / 459.2 MB, free: 9.918 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.124e-05/0.2769, allocations: 13 kB / 459.3 MB, free: 9.906 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001375/0.2782, allocations: 0.8702 MB / 460.1 MB, free: 8.945 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.786e-06/0.2782, allocations: 0 / 460.1 MB, free: 8.945 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03299/0.3112, allocations: 8.701 MB / 468.8 MB, free: 196 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001802/0.3114, allocations: 299.7 kB / 469.1 MB, free: 15.83 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001159/0.3126, allocations: 0.8013 MB / 469.9 MB, free: 15.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001415/0.3127, allocations: 57.7 kB / 470 MB, free: 14.96 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005623/0.3133, allocations: 0.676 MB / 470.7 MB, free: 14.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003943/0.3137, allocations: 432.4 kB / 471.1 MB, free: 13.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004825/0.3142, allocations: 243.5 kB / 471.3 MB, free: 13.6 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002205/0.3144, allocations: 414.7 kB / 471.7 MB, free: 13.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00192/0.3163, allocations: 0.816 MB / 472.5 MB, free: 12.37 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002274/0.3186, allocations: 1.339 MB / 473.9 MB, free: 10.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003608/0.3222, allocations: 1.662 MB / 475.5 MB, free: 9.109 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.3222, allocations: 0 / 475.5 MB, free: 9.109 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004793/0.327, allocations: 2.084 MB / 477.6 MB, free: 7.008 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.472e-05/0.327, allocations: 8 kB / 477.6 MB, free: 7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.762e-05/0.327, allocations: 8 kB / 477.6 MB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004301/0.3275, allocations: 178.4 kB / 477.8 MB, free: 6.809 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001631/0.3291, allocations: 351.5 kB / 478.2 MB, free: 6.465 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004284/0.3334, allocations: 4.466 MB / 482.6 MB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001533/0.3349, allocations: 172 kB / 482.8 MB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001551/0.3351, allocations: 55.98 kB / 482.8 MB, free: 1.438 MB / 382.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 (169): * Single equations (assignments): 166 * 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.0007785/0.3358, allocations: 387.5 kB / 483.2 MB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002435/0.3361, allocations: 111.3 kB / 483.3 MB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002748/0.3364, allocations: 130 kB / 483.5 MB, free: 0.8125 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/0.3364, allocations: 12 kB / 483.5 MB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.3364, allocations: 3.984 kB / 483.5 MB, free: 0.7969 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.199e-05/0.3364, allocations: 7.984 kB / 483.5 MB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008253/0.3446, allocations: 4.07 MB / 487.6 MB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.333e-05/0.3447, allocations: 12.19 kB / 487.6 MB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001169/0.3458, allocations: 271.5 kB / 487.8 MB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006202/0.3464, allocations: 369.5 kB / 488.2 MB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001144/0.3466, allocations: 39.98 kB / 488.2 MB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001958/0.3485, allocations: 2.156 MB / 490.4 MB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.119e-05/0.3485, allocations: 15.94 kB / 490.4 MB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005219/0.3538, allocations: 2.526 MB / 492.9 MB, free: 6.867 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006554/0.3544, allocations: 247.2 kB / 493.2 MB, free: 6.625 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002735/0.3547, allocations: 43.98 kB / 493.2 MB, free: 6.582 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001157/0.3558, allocations: 143.8 kB / 493.4 MB, free: 6.441 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003769/0.3562, allocations: 176.2 kB / 493.5 MB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.363e-05/0.3563, allocations: 43.98 kB / 493.6 MB, free: 6.227 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008667/0.3572, allocations: 0.5536 MB / 494.1 MB, free: 5.676 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3572, allocations: 0 / 494.1 MB, free: 5.676 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001311/0.3585, allocations: 343.9 kB / 494.5 MB, free: 5.34 MB / 398.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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00552/0.364, allocations: 3.145 MB / 497.6 MB, free: 2.039 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004328/0.3683, allocations: 1.926 MB / 499.5 MB, free: 72 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.504e-05/0.3683, allocations: 4 kB / 499.5 MB, free: 68 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002293/0.3706, allocations: 1.04 MB / 0.4888 GB, free: 15.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00145/0.3721, allocations: 198.5 kB / 0.489 GB, free: 14.83 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02382/0.3959, allocations: 12.35 MB / 0.5011 GB, free: 1.91 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008278/0.3967, allocations: 0.5979 MB / 0.5017 GB, free: 1.281 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007804/0.3975, allocations: 168.4 kB / 0.5018 GB, free: 1.113 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008932/0.3984, allocations: 0.5149 MB / 0.5023 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of SimCode: time 1.212e-06/0.3984, allocations: 0 / 0.5023 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08006/0.4785, allocations: 30.86 MB / 0.5325 GB, free: 2.141 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.4/14.88, allocations: 8.062 kB / 0.5325 GB, free: 2.133 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis_fmu --startTime=0 --stopTime=1.6 --stepSize=0.000340136 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.680985376005992] 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.064016788033769 15.219193995 14.965688954 Calling exit ...