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.005182/0.005182, allocations: 100.7 kB / 21.96 MB, free: 5.211 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.001401/0.001401, allocations: 217.5 kB / 25.26 MB, free: 3.141 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.316/1.316, allocations: 207.7 MB / 236.1 MB, free: 9.805 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.001619/0.001619, allocations: 58.56 kB / 348 MB, free: 9.887 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2211/0.2227, allocations: 49.16 MB / 397.1 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.007577/0.2303, allocations: 8.003 MB / 405.1 MB, free: 3.566 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00399/0.2342, allocations: 2.28 MB / 407.4 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00109/0.2353, allocations: 35.44 kB / 407.5 MB, free: 1.859 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006981/0.236, allocations: 321.2 kB / 407.8 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001218/0.2373, allocations: 0.4925 MB / 408.3 MB, free: 1.316 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001084/0.2383, allocations: 0.6574 MB / 408.9 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002385/0.2407, allocations: 2.347 MB / 411.3 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001179/0.2419, allocations: 0.7385 MB / 412 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001245/0.2431, allocations: 0.8442 MB / 412.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001183/0.2443, allocations: 0.9028 MB / 413.8 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003242/0.2447, allocations: 281.1 kB / 414 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005457/0.2452, allocations: 337.8 kB / 414.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004677/0.2457, allocations: 0.5072 MB / 414.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008542/0.2465, allocations: 0.7921 MB / 415.7 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003163/0.2497, allocations: 3.387 MB / 419 MB, free: 10.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2497, allocations: 0 / 419 MB, free: 10.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2497, allocations: 3.938 kB / 419.1 MB, free: 10.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.5e-05/0.2497, allocations: 3.938 kB / 419.1 MB, free: 10.38 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.003742/0.2535, allocations: 1.899 MB / 421 MB, free: 9.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.2535, allocations: 13.61 kB / 421 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.13e-05/0.2536, allocations: 38.62 kB / 421 MB, free: 9.012 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002883/0.2539, allocations: 232.3 kB / 421.2 MB, free: 8.824 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003871/0.2543, allocations: 186.8 kB / 421.4 MB, free: 8.734 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001326/0.2556, allocations: 0.7812 MB / 422.2 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003941/0.256, allocations: 446.5 kB / 422.6 MB, free: 7.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002367/0.2562, allocations: 161.9 kB / 422.8 MB, free: 7.602 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003217/0.2594, allocations: 1.887 MB / 424.7 MB, free: 6.359 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.588e-05/0.2595, allocations: 10.11 kB / 424.7 MB, free: 6.352 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001435/0.2596, allocations: 61.22 kB / 424.7 MB, free: 6.305 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.838e-05/0.2596, allocations: 37.5 kB / 424.8 MB, free: 6.305 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003159/0.2628, allocations: 1.574 MB / 426.4 MB, free: 5.535 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008646/0.2715, allocations: 5.181 MB / 431.5 MB, free: 228 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002048/0.2735, allocations: 0.9101 MB / 432.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001033/0.2745, allocations: 0.5008 MB / 432.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.741e-05/0.2746, allocations: 9 kB / 433 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001375/0.276, allocations: 0.8692 MB / 433.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=91): time 3.066e-06/0.276, allocations: 0 / 433.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=121): time 0.03271/0.3087, allocations: 8.704 MB / 442.5 MB, free: 5.066 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001729/0.3089, allocations: 295.7 kB / 442.8 MB, free: 4.711 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001151/0.31, allocations: 0.8052 MB / 443.6 MB, free: 3.898 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00011/0.3101, allocations: 53.7 kB / 443.7 MB, free: 3.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005854/0.3107, allocations: 0.676 MB / 444.4 MB, free: 3.152 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003844/0.3111, allocations: 428.4 kB / 444.8 MB, free: 2.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004957/0.3116, allocations: 255.6 kB / 445 MB, free: 2.473 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002279/0.3118, allocations: 406.7 kB / 445.4 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001859/0.3137, allocations: 0.816 MB / 446.2 MB, free: 1.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002266/0.3159, allocations: 1.339 MB / 447.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003452/0.3194, allocations: 1.654 MB / 449.2 MB, free: 14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.3194, allocations: 0 / 449.2 MB, free: 14 MB / 366.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004477/0.3239, allocations: 2.088 MB / 451.3 MB, free: 11.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.3239, allocations: 11.98 kB / 451.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.3239, allocations: 8 kB / 451.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004061/0.3243, allocations: 182.5 kB / 451.5 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001576/0.3259, allocations: 347.5 kB / 451.9 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004188/0.3301, allocations: 4.469 MB / 456.3 MB, free: 6.531 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001416/0.3315, allocations: 176 kB / 456.5 MB, free: 6.359 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001162/0.3316, allocations: 44 kB / 456.5 MB, free: 6.316 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: 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.0006825/0.3323, allocations: 387.5 kB / 456.9 MB, free: 5.926 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001976/0.3325, allocations: 115.2 kB / 457 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002317/0.3327, allocations: 138 kB / 457.2 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.3327, allocations: 12 kB / 457.2 MB, free: 5.664 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.3327, allocations: 0 / 457.2 MB, free: 5.664 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.3327, allocations: 7.969 kB / 457.2 MB, free: 5.656 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007584/0.3403, allocations: 4.078 MB / 461.3 MB, free: 1.395 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.238e-05/0.3403, allocations: 8 kB / 461.3 MB, free: 1.387 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/0.3415, allocations: 263.6 kB / 461.5 MB, free: 1.129 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005782/0.342, allocations: 369.9 kB / 461.9 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.778e-05/0.3421, allocations: 35.98 kB / 461.9 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00187/0.344, allocations: 2.172 MB / 464.1 MB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-05/0.344, allocations: 20.06 kB / 464.1 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004782/0.3488, allocations: 2.518 MB / 466.6 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005655/0.3494, allocations: 255.2 kB / 466.9 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001811/0.3495, allocations: 47.98 kB / 466.9 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009874/0.3505, allocations: 135.9 kB / 467.1 MB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003425/0.3509, allocations: 176.2 kB / 467.2 MB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.627e-05/0.351, allocations: 47.98 kB / 467.3 MB, free: 11.08 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000759/0.3517, allocations: 0.542 MB / 467.8 MB, free: 10.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3517, allocations: 0 / 467.8 MB, free: 10.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001172/0.3529, allocations: 351.9 kB / 468.2 MB, free: 10.2 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: 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.005394/0.3583, allocations: 3.132 MB / 471.3 MB, free: 6.902 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004062/0.3623, allocations: 1.945 MB / 473.2 MB, free: 4.918 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.062e-05/0.3624, allocations: 4 kB / 473.2 MB, free: 4.914 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002178/0.3645, allocations: 1.028 MB / 474.3 MB, free: 3.879 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001189/0.3657, allocations: 190.8 kB / 474.5 MB, free: 3.695 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0217/0.3874, allocations: 12.35 MB / 486.8 MB, free: 6.766 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006919/0.3881, allocations: 0.5942 MB / 487.4 MB, free: 6.141 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007648/0.3889, allocations: 168.3 kB / 487.6 MB, free: 5.973 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008638/0.3897, allocations: 0.511 MB / 488.1 MB, free: 5.461 MB / 398.1 MB Notification: Performance of SimCode: time 1.192e-06/0.3897, allocations: 0 / 488.1 MB, free: 5.461 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06716/0.4569, allocations: 30.87 MB / 0.5068 GB, free: 6.461 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.34/14.79, allocations: 0 / 0.5068 GB, free: 6.461 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.467205106979236] 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.990379443042912 15.00505148 14.752429414 Calling exit ...