Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001285/0.001285, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001387/0.001387, allocations: 206.1 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.336/1.336, allocations: 230.6 MB / 258.3 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_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_1_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.001446/0.001446, allocations: 47.92 kB / 378.6 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2351/0.2366, allocations: 53.37 MB / 431.9 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01128/0.2479, allocations: 9.469 MB / 441.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004765/0.2526, allocations: 2.458 MB / 443.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001151/0.2538, allocations: 39.75 kB / 443.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008959/0.2547, allocations: 348.9 kB / 444.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001447/0.2561, allocations: 0.5036 MB / 444.7 MB, free: 9.988 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001169/0.2573, allocations: 0.6554 MB / 445.4 MB, free: 9.332 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002993/0.2603, allocations: 2.372 MB / 447.8 MB, free: 6.953 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001184/0.2615, allocations: 0.741 MB / 448.5 MB, free: 6.164 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001301/0.2628, allocations: 0.8919 MB / 449.4 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001192/0.264, allocations: 0.9027 MB / 450.3 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003323/0.2643, allocations: 276 kB / 450.6 MB, free: 4.094 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004975/0.2648, allocations: 336 kB / 450.9 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004679/0.2653, allocations: 0.5142 MB / 451.4 MB, free: 3.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009246/0.2662, allocations: 0.9803 MB / 452.4 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003452/0.2696, allocations: 3.403 MB / 455.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.2696, allocations: 0 / 455.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2697, allocations: 0 / 455.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.908e-05/0.2697, allocations: 0 / 455.8 MB, free: 14.85 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: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.003811/0.2735, allocations: 1.928 MB / 457.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.2736, allocations: 8.031 kB / 457.7 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.696e-05/0.2736, allocations: 39.14 kB / 457.8 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002785/0.2739, allocations: 228 kB / 458 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003043/0.2742, allocations: 199.8 kB / 458.2 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001353/0.2755, allocations: 0.7846 MB / 459 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004076/0.276, allocations: 449.9 kB / 459.4 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002401/0.2762, allocations: 160 kB / 459.6 MB, free: 10.94 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003055/0.2792, allocations: 1.671 MB / 461.2 MB, free: 9.238 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.354e-05/0.2793, allocations: 7.953 kB / 461.3 MB, free: 9.23 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001399/0.2794, allocations: 64 kB / 461.3 MB, free: 9.168 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.224e-05/0.2795, allocations: 40 kB / 461.4 MB, free: 9.129 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003264/0.2827, allocations: 1.527 MB / 462.9 MB, free: 7.598 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009485/0.2922, allocations: 5.715 MB / 468.6 MB, free: 1.664 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002163/0.2944, allocations: 0.8779 MB / 469.5 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001027/0.2954, allocations: 481.8 kB / 469.9 MB, free: 304 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.983e-05/0.2955, allocations: 13 kB / 470 MB, free: 288 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001294/0.2968, allocations: 0.6411 MB / 470.6 MB, free: 15.6 MB / 382.1 MB Notification: Performance of pre-optimization done (n=91): time 2.455e-06/0.2968, allocations: 0 / 470.6 MB, free: 15.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=121): time 0.03444/0.3312, allocations: 8.528 MB / 479.1 MB, free: 7.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001938/0.3314, allocations: 299.7 kB / 479.4 MB, free: 6.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001252/0.3327, allocations: 0.8053 MB / 480.2 MB, free: 5.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001226/0.3328, allocations: 53.7 kB / 480.3 MB, free: 5.781 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006922/0.3335, allocations: 0.6839 MB / 481 MB, free: 5.086 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004053/0.3339, allocations: 432.4 kB / 481.4 MB, free: 4.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004898/0.3344, allocations: 243.5 kB / 481.6 MB, free: 4.418 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002218/0.3346, allocations: 410.7 kB / 482 MB, free: 4.008 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001973/0.3366, allocations: 0.7925 MB / 482.8 MB, free: 3.215 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002181/0.3387, allocations: 1.111 MB / 483.9 MB, free: 1.992 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003709/0.3424, allocations: 1.607 MB / 485.5 MB, free: 296 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.636e-06/0.3425, allocations: 4 kB / 485.5 MB, free: 292 kB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004966/0.3474, allocations: 2.034 MB / 487.6 MB, free: 14.23 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.3475, allocations: 8 kB / 487.6 MB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.38e-05/0.3475, allocations: 4.078 kB / 487.6 MB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000508/0.348, allocations: 222.4 kB / 487.8 MB, free: 14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001656/0.3496, allocations: 355.5 kB / 488.1 MB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004979/0.3546, allocations: 4.532 MB / 492.7 MB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001642/0.3563, allocations: 167.9 kB / 492.8 MB, free: 8.605 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001661/0.3564, allocations: 47.94 kB / 492.9 MB, free: 8.559 MB / 398.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 (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.0008531/0.3573, allocations: 395.3 kB / 493.3 MB, free: 8.164 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003001/0.3576, allocations: 119.3 kB / 493.4 MB, free: 8.047 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003254/0.3579, allocations: 134.1 kB / 493.5 MB, free: 7.91 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/0.3579, allocations: 12 kB / 493.5 MB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.858e-06/0.3579, allocations: 3.938 kB / 493.5 MB, free: 7.895 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.301e-05/0.3579, allocations: 7.969 kB / 493.5 MB, free: 7.887 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008368/0.3663, allocations: 4.308 MB / 497.9 MB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.072e-05/0.3663, allocations: 12 kB / 497.9 MB, free: 3.387 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/0.3674, allocations: 263.7 kB / 498.1 MB, free: 3.129 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005211/0.368, allocations: 277.5 kB / 498.4 MB, free: 2.852 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.563e-05/0.3681, allocations: 39.98 kB / 498.4 MB, free: 2.812 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001865/0.3699, allocations: 2.09 MB / 0.4888 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.324e-05/0.3699, allocations: 19.92 kB / 0.4888 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004893/0.3748, allocations: 2.39 MB / 0.4911 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005632/0.3754, allocations: 255.2 kB / 0.4914 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002288/0.3756, allocations: 47.94 kB / 0.4914 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001079/0.3767, allocations: 139.8 kB / 0.4916 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003414/0.3771, allocations: 172.2 kB / 0.4917 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.085e-05/0.3771, allocations: 47.98 kB / 0.4918 GB, free: 13.38 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008019/0.3779, allocations: 0.542 MB / 0.4923 GB, free: 12.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3779, allocations: 4 kB / 0.4923 GB, free: 12.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001201/0.3791, allocations: 347.9 kB / 0.4926 GB, free: 12.5 MB / 414.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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006402/0.3855, allocations: 3.248 MB / 0.4958 GB, free: 9.227 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004382/0.3899, allocations: 1.894 MB / 0.4977 GB, free: 7.293 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.3899, allocations: 0 / 0.4977 GB, free: 7.293 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002269/0.3922, allocations: 1.005 MB / 0.4986 GB, free: 6.281 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001399/0.3936, allocations: 205.2 kB / 0.4988 GB, free: 6.082 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02469/0.4183, allocations: 12.07 MB / 0.5106 GB, free: 9.453 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001304/0.4196, allocations: 1.186 MB / 0.5118 GB, free: 8.23 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009445/0.4205, allocations: 172.4 kB / 0.5119 GB, free: 8.059 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009905/0.4215, allocations: 0.5188 MB / 0.5125 GB, free: 7.539 MB / 430.1 MB Notification: Performance of SimCode: time 1.283e-06/0.4215, allocations: 0 / 0.5125 GB, free: 7.539 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2521/0.6737, allocations: 31.23 MB / 0.5429 GB, free: 102.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.56/15.24, allocations: 7.297 kB / 0.543 GB, free: 102.7 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis_fmu --startTime=0 --stopTime=1.6 --stepSize=0.000340136 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.006693458009977] 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.470299248991068 15.479360798 15.207616768 Calling exit ...