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.00155/0.00155, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.001788/0.001788, allocations: 186.9 kB / 20.73 MB, free: 2.332 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.372/1.372, allocations: 225.6 MB / 249.1 MB, free: 3.609 MB / 190.1 MB " [Timeout remaining time 178] 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="me",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="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 51.92 kB / 365.6 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09718/0.09863, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01115/0.1098, allocations: 9.319 MB / 427.1 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004803/0.1146, allocations: 2.283 MB / 429.4 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001246/0.1158, allocations: 35.88 kB / 429.4 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001089/0.1169, allocations: 329 kB / 429.7 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001854/0.1188, allocations: 0.5036 MB / 430.2 MB, free: 92 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00148/0.1203, allocations: 0.6555 MB / 430.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002813/0.1231, allocations: 2.345 MB / 433.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001275/0.1243, allocations: 0.7521 MB / 434 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00122/0.1256, allocations: 0.853 MB / 434.9 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001008/0.1266, allocations: 0.891 MB / 435.7 MB, free: 10.53 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003155/0.1269, allocations: 283.9 kB / 436 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004487/0.1273, allocations: 327.9 kB / 436.3 MB, free: 9.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004324/0.1278, allocations: 0.5025 MB / 436.8 MB, free: 9.426 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008854/0.1286, allocations: 0.9687 MB / 437.8 MB, free: 8.453 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00334/0.132, allocations: 3.363 MB / 441.2 MB, free: 5.078 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.132, allocations: 0 / 441.2 MB, free: 5.078 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.132, allocations: 0 / 441.2 MB, free: 5.078 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.299e-05/0.132, allocations: 4 kB / 441.2 MB, free: 5.074 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: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.003763/0.1358, allocations: 1.957 MB / 443.1 MB, free: 3.059 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.1358, allocations: 8.031 kB / 443.1 MB, free: 3.051 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002758/0.1361, allocations: 227.9 kB / 443.4 MB, free: 2.816 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002812/0.1364, allocations: 195.8 kB / 443.6 MB, free: 2.625 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001305/0.1377, allocations: 0.8503 MB / 444.4 MB, free: 1.734 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002811/0.138, allocations: 232.5 kB / 444.6 MB, free: 1.488 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002315/0.1382, allocations: 167.9 kB / 444.8 MB, free: 1.324 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1973/0.3355, allocations: 1.674 MB / 446.5 MB, free: 28.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.122e-05/0.3356, allocations: 6.125 kB / 446.5 MB, free: 28.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001459/0.3357, allocations: 66.89 kB / 446.5 MB, free: 28.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.507e-05/0.3357, allocations: 34.56 kB / 446.6 MB, free: 28.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002907/0.3386, allocations: 1.563 MB / 448.1 MB, free: 28.65 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008021/0.3467, allocations: 5.827 MB / 454 MB, free: 26.19 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001827/0.3485, allocations: 0.8919 MB / 454.9 MB, free: 25.81 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001052/0.3495, allocations: 0.4905 MB / 455.4 MB, free: 25.61 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.197e-05/0.3496, allocations: 9.984 kB / 455.4 MB, free: 25.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001145/0.3507, allocations: 0.6644 MB / 456 MB, free: 25.28 MB / 366.1 MB Notification: Performance of pre-optimization done (n=90): time 2.345e-06/0.3507, allocations: 1.719 kB / 456 MB, free: 25.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.03219/0.3829, allocations: 8.964 MB / 465 MB, free: 22.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.506e-05/0.383, allocations: 305.6 kB / 465.3 MB, free: 21.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009777/0.384, allocations: 0.7915 MB / 466.1 MB, free: 21.4 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001087/0.3841, allocations: 53.33 kB / 466.1 MB, free: 21.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003766/0.3845, allocations: 0.6839 MB / 466.8 MB, free: 20.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002455/0.3847, allocations: 425.2 kB / 467.2 MB, free: 20.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004173/0.3851, allocations: 243.7 kB / 467.5 MB, free: 20.29 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.3853, allocations: 412.7 kB / 467.9 MB, free: 19.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001776/0.3871, allocations: 0.807 MB / 468.7 MB, free: 19.47 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001825/0.3889, allocations: 1.132 MB / 469.8 MB, free: 18.67 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00306/0.3919, allocations: 1.65 MB / 471.5 MB, free: 17.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.3919, allocations: 2.188 kB / 471.5 MB, free: 17.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003972/0.3959, allocations: 2.073 MB / 473.5 MB, free: 16.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.3959, allocations: 7.844 kB / 473.5 MB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.396, allocations: 10.94 kB / 473.6 MB, free: 16.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003586/0.3963, allocations: 181.3 kB / 473.7 MB, free: 16.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001538/0.3979, allocations: 355.5 kB / 474.1 MB, free: 16.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002585/0.4004, allocations: 4.81 MB / 478.9 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001359/0.4018, allocations: 162.2 kB / 479 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001001/0.4019, allocations: 50.62 kB / 479.1 MB, free: 11.48 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.0005864/0.4025, allocations: 382.7 kB / 479.5 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/0.4026, allocations: 114.7 kB / 479.6 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002089/0.4029, allocations: 144.3 kB / 479.7 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.206e-05/0.4029, allocations: 12.28 kB / 479.7 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-05/0.4029, allocations: 0.9062 kB / 479.7 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.4029, allocations: 8.875 kB / 479.7 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006133/0.409, allocations: 4.398 MB / 484.1 MB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.089e-05/0.409, allocations: 16.58 kB / 484.2 MB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009757/0.41, allocations: 265.5 kB / 484.4 MB, free: 7.875 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004077/0.4104, allocations: 366.7 kB / 484.8 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.677e-05/0.4105, allocations: 37.55 kB / 484.8 MB, free: 7.691 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001077/0.4116, allocations: 2.278 MB / 487.1 MB, free: 5.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.231e-06/0.4116, allocations: 15.06 kB / 487.1 MB, free: 5.516 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003521/0.4151, allocations: 2.504 MB / 489.6 MB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003838/0.4155, allocations: 324.3 kB / 489.9 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001465/0.4156, allocations: 44 kB / 490 MB, free: 2.738 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009054/0.4165, allocations: 139.8 kB / 490.1 MB, free: 2.602 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002429/0.4168, allocations: 168.2 kB / 490.3 MB, free: 2.438 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.003e-05/0.4168, allocations: 40 kB / 490.3 MB, free: 2.398 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000508/0.4173, allocations: 0.5342 MB / 490.8 MB, free: 1.867 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4173, allocations: 4 kB / 490.8 MB, free: 1.863 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001008/0.4183, allocations: 346.4 kB / 491.2 MB, free: 1.527 MB / 366.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.004532/0.4229, allocations: 3.112 MB / 494.3 MB, free: 14.26 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004188/0.4271, allocations: 1.93 MB / 496.2 MB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.298e-06/0.4271, allocations: 8.406 kB / 496.2 MB, free: 12.28 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002162/0.4292, allocations: 1.02 MB / 497.3 MB, free: 11.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001208/0.4304, allocations: 197.2 kB / 497.4 MB, free: 11.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02244/0.4529, allocations: 12.21 MB / 0.4977 GB, free: 14.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009247/0.4538, allocations: 1.175 MB / 0.4989 GB, free: 13.11 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007761/0.4546, allocations: 168.3 kB / 0.499 GB, free: 12.94 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008747/0.4555, allocations: 0.5149 MB / 0.4995 GB, free: 12.43 MB / 398.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4555, allocations: 0 / 0.4995 GB, free: 12.43 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07457/0.53, allocations: 29.62 MB / 0.5285 GB, free: 15.09 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.63/14.16, allocations: 7.875 kB / 0.5285 GB, free: 15.09 MB / 430.1 MB " [Timeout remaining time 646] (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: 16.940071628894657] 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.272603382822126 14.294486764 14.158106477 Calling exit ...