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.001536/0.001536, allocations: 116 kB / 18.49 MB, free: 4.66 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.00156/0.00156, allocations: 190.6 kB / 21.44 MB, free: 1.73 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.376/1.376, allocations: 225.6 MB / 249.8 MB, free: 3.617 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="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.001552/0.001552, allocations: 39.94 kB / 366.3 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09579/0.09734, allocations: 52.15 MB / 418.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01107/0.1084, allocations: 9.319 MB / 427.8 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00493/0.1133, allocations: 2.283 MB / 430.1 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00121/0.1146, allocations: 47.69 kB / 430.1 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000846/0.1154, allocations: 333 kB / 430.5 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001179/0.1166, allocations: 0.4997 MB / 431 MB, free: 60 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001142/0.1177, allocations: 0.6439 MB / 431.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002497/0.1202, allocations: 2.352 MB / 434 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001096/0.1213, allocations: 0.7482 MB / 434.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001091/0.1224, allocations: 0.8764 MB / 435.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001071/0.1235, allocations: 0.891 MB / 436.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003836/0.1239, allocations: 276 kB / 436.8 MB, free: 10.21 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004975/0.1244, allocations: 327.9 kB / 437.1 MB, free: 9.891 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004674/0.1248, allocations: 0.5025 MB / 437.6 MB, free: 9.387 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001067/0.1259, allocations: 0.9725 MB / 438.5 MB, free: 8.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003631/0.1295, allocations: 3.36 MB / 441.9 MB, free: 5.039 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.1295, allocations: 0 / 441.9 MB, free: 5.039 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1295, allocations: 0 / 441.9 MB, free: 5.039 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.126e-05/0.1296, allocations: 0 / 441.9 MB, free: 5.039 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.004111/0.1337, allocations: 1.965 MB / 443.9 MB, free: 3.016 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.1337, allocations: 8.031 kB / 443.9 MB, free: 3.008 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.377e-05/0.1338, allocations: 39.12 kB / 443.9 MB, free: 2.969 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002908/0.1341, allocations: 228 kB / 444.1 MB, free: 2.734 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003156/0.1344, allocations: 187.8 kB / 444.3 MB, free: 2.551 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00134/0.1357, allocations: 0.8502 MB / 445.2 MB, free: 1.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002912/0.136, allocations: 240.2 kB / 445.4 MB, free: 1.406 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002411/0.1362, allocations: 156 kB / 445.6 MB, free: 1.254 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1712/0.3075, allocations: 1.687 MB / 447.2 MB, free: 28.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001015/0.3076, allocations: 0.9375 kB / 447.2 MB, free: 28.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002723/0.3078, allocations: 63.69 kB / 447.3 MB, free: 28.68 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.373e-05/0.3079, allocations: 37.38 kB / 447.3 MB, free: 28.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003554/0.3114, allocations: 1.563 MB / 448.9 MB, free: 28.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009277/0.3207, allocations: 5.831 MB / 454.7 MB, free: 26.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00199/0.3227, allocations: 0.8869 MB / 455.6 MB, free: 25.79 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001217/0.3239, allocations: 0.4942 MB / 456.1 MB, free: 25.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.35e-05/0.324, allocations: 10.77 kB / 456.1 MB, free: 25.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001296/0.3253, allocations: 0.6579 MB / 456.8 MB, free: 25.25 MB / 366.1 MB Notification: Performance of pre-optimization done (n=90): time 5.58e-06/0.3253, allocations: 0.625 kB / 456.8 MB, free: 25.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.03523/0.3605, allocations: 8.972 MB / 465.8 MB, free: 22.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.657e-05/0.3606, allocations: 303 kB / 466.1 MB, free: 21.79 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001152/0.3617, allocations: 0.788 MB / 466.8 MB, free: 21.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001379/0.3619, allocations: 53.3 kB / 466.9 MB, free: 21.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004141/0.3623, allocations: 0.6805 MB / 467.6 MB, free: 20.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003038/0.3626, allocations: 426.4 kB / 468 MB, free: 20.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004864/0.3631, allocations: 244.7 kB / 468.2 MB, free: 20.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.3632, allocations: 417.3 kB / 468.6 MB, free: 19.83 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001856/0.3651, allocations: 0.8103 MB / 469.5 MB, free: 19.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002019/0.3671, allocations: 1.138 MB / 470.6 MB, free: 18.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003425/0.3705, allocations: 1.647 MB / 472.2 MB, free: 17.58 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.14e-05/0.3705, allocations: 2.906 kB / 472.2 MB, free: 17.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004588/0.3751, allocations: 2.07 MB / 474.3 MB, free: 16.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.562e-05/0.3751, allocations: 10.92 kB / 474.3 MB, free: 16.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/0.3751, allocations: 6.531 kB / 474.3 MB, free: 16.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004167/0.3756, allocations: 188.7 kB / 474.5 MB, free: 16.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00161/0.3772, allocations: 347.9 kB / 474.8 MB, free: 16.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003004/0.3802, allocations: 4.815 MB / 479.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001587/0.3818, allocations: 162.4 kB / 479.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001647/0.3819, allocations: 49.81 kB / 479.9 MB, free: 11.41 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.0007959/0.3827, allocations: 387.2 kB / 480.3 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000276/0.383, allocations: 113.5 kB / 480.4 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003017/0.3833, allocations: 132.2 kB / 480.5 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/0.3833, allocations: 12.28 kB / 480.5 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.052e-05/0.3833, allocations: 5.406 kB / 480.5 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.3833, allocations: 7.969 kB / 480.5 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007137/0.3905, allocations: 4.408 MB / 484.9 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-05/0.3905, allocations: 10.47 kB / 484.9 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001065/0.3916, allocations: 268.3 kB / 485.2 MB, free: 7.812 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004973/0.3921, allocations: 362.2 kB / 485.5 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.662e-05/0.3922, allocations: 36.92 kB / 485.6 MB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001213/0.3934, allocations: 2.278 MB / 487.9 MB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.223e-06/0.3934, allocations: 16.12 kB / 487.9 MB, free: 5.449 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004112/0.3975, allocations: 2.498 MB / 490.4 MB, free: 3.043 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005348/0.398, allocations: 324.3 kB / 490.7 MB, free: 2.707 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002229/0.3983, allocations: 47.98 kB / 490.7 MB, free: 2.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001081/0.3993, allocations: 135.9 kB / 490.9 MB, free: 2.527 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002896/0.3996, allocations: 168.2 kB / 491 MB, free: 2.363 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.759e-05/0.3997, allocations: 44.12 kB / 491.1 MB, free: 2.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006209/0.4003, allocations: 0.5303 MB / 491.6 MB, free: 1.793 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4003, allocations: 0 / 491.6 MB, free: 1.793 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001243/0.4016, allocations: 348 kB / 492 MB, free: 1.453 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.005219/0.4068, allocations: 3.121 MB / 495.1 MB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004519/0.4113, allocations: 1.926 MB / 497 MB, free: 12.21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.979e-06/0.4113, allocations: 4 kB / 497 MB, free: 12.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002286/0.4136, allocations: 1.024 MB / 498 MB, free: 11.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001362/0.415, allocations: 198.8 kB / 498.2 MB, free: 10.99 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02474/0.4397, allocations: 12.21 MB / 0.4985 GB, free: 14.24 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001095/0.4408, allocations: 1.19 MB / 0.4996 GB, free: 13.02 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000818/0.4416, allocations: 160.4 kB / 0.4998 GB, free: 12.86 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009401/0.4426, allocations: 0.5125 MB / 0.5003 GB, free: 12.35 MB / 398.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4426, allocations: 0 / 0.5003 GB, free: 12.35 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07053/0.5131, allocations: 29.65 MB / 0.5292 GB, free: 15 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.86/14.38, allocations: 10.55 kB / 0.5292 GB, free: 14.99 MB / 430.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: 16.91713220300153] 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.542666644032579 14.556929665 14.424415225 Calling exit ...