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.001236/0.001236, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.007442/0.007442, allocations: 162 kB / 24.69 MB, free: 8.891 MB / 18.57 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 0.8909/0.8909, allocations: 158.6 MB / 186.5 MB, free: 3.039 MB / 170.7 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="me",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="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.634e-06/1.634e-06, allocations: 0 / 298.4 MB, free: 3.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.959e-05/2.122e-05, allocations: 2.281 kB / 298.4 MB, free: 3.504 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.1355/0.1355, allocations: 8.01 MB / 306.5 MB, free: 11.61 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004543/0.14, allocations: 2.269 MB / 308.7 MB, free: 10.21 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001364/0.1414, allocations: 30.97 kB / 308.8 MB, free: 10.2 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000757/0.1422, allocations: 329.6 kB / 309.1 MB, free: 10.01 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001309/0.1435, allocations: 0.5198 MB / 309.6 MB, free: 9.625 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001164/0.1446, allocations: 0.665 MB / 310.3 MB, free: 9.172 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003037/0.1477, allocations: 2.406 MB / 312.7 MB, free: 7.836 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001441/0.1491, allocations: 0.6951 MB / 313.4 MB, free: 7.414 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002121/0.1512, allocations: 1.312 MB / 314.7 MB, free: 6.715 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008098/0.152, allocations: 0.6705 MB / 315.3 MB, free: 6.445 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000287/0.1523, allocations: 278.3 kB / 315.6 MB, free: 6.445 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004793/0.1528, allocations: 338.5 kB / 316 MB, free: 6.426 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002754/0.1531, allocations: 0.5113 MB / 316.5 MB, free: 6.047 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005309/0.1536, allocations: 0.6838 MB / 317.1 MB, free: 5.668 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002618/0.1562, allocations: 3.49 MB / 320.6 MB, free: 3.738 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1562, allocations: 1.219 kB / 320.6 MB, free: 3.738 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1562, allocations: 0 / 320.6 MB, free: 3.738 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.605e-05/0.1563, allocations: 0 / 320.6 MB, free: 3.738 MB / 282.7 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.002657/0.1589, allocations: 1.893 MB / 322.5 MB, free: 2.367 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.159, allocations: 13.36 kB / 322.5 MB, free: 2.363 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001775/0.1592, allocations: 228 kB / 322.8 MB, free: 2.18 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002952/0.1595, allocations: 188.9 kB / 323 MB, free: 2.09 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009964/0.1605, allocations: 0.7766 MB / 323.7 MB, free: 1.441 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002253/0.1607, allocations: 443.2 kB / 324.2 MB, free: 1.027 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001638/0.1608, allocations: 161.4 kB / 324.3 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00224/0.1631, allocations: 1.903 MB / 326.2 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.704e-05/0.1631, allocations: 6.703 kB / 326.2 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001005/0.1632, allocations: 61.75 kB / 326.3 MB, free: 15.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.59e-05/0.1633, allocations: 36.62 kB / 326.3 MB, free: 15.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002352/0.1656, allocations: 1.557 MB / 327.9 MB, free: 14.9 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006916/0.1725, allocations: 5.203 MB / 333.1 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001395/0.1739, allocations: 0.8985 MB / 334 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006704/0.1746, allocations: 0.5009 MB / 334.5 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.065e-05/0.1746, allocations: 9.656 kB / 334.5 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009263/0.1756, allocations: 0.8727 MB / 335.4 MB, free: 9.426 MB / 298.7 MB Notification: Performance of pre-optimization done (n=91): time 3.857e-06/0.1756, allocations: 4 kB / 335.4 MB, free: 9.422 MB / 298.7 MB Notification: Performance of matching and sorting (n=121): time 0.01817/0.1937, allocations: 8.696 MB / 344.1 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/0.1938, allocations: 299.8 kB / 344.4 MB, free: 320 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000853/0.1947, allocations: 0.8167 MB / 345.2 MB, free: 15.49 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.722e-05/0.1948, allocations: 57.69 kB / 345.2 MB, free: 15.43 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003825/0.1952, allocations: 0.6683 MB / 345.9 MB, free: 14.75 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002405/0.1954, allocations: 432.3 kB / 346.3 MB, free: 14.32 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000295/0.1957, allocations: 247.5 kB / 346.6 MB, free: 14.07 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.1958, allocations: 406.7 kB / 347 MB, free: 13.67 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001122/0.197, allocations: 0.8276 MB / 347.8 MB, free: 12.84 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00141/0.1984, allocations: 1.332 MB / 349.1 MB, free: 11.35 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002119/0.2005, allocations: 1.658 MB / 350.8 MB, free: 9.594 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.663e-06/0.2005, allocations: 0 / 350.8 MB, free: 9.594 MB / 314.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003035/0.2035, allocations: 2.084 MB / 352.9 MB, free: 7.492 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.734e-05/0.2036, allocations: 15.92 kB / 352.9 MB, free: 7.477 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.695e-05/0.2036, allocations: 11.94 kB / 352.9 MB, free: 7.465 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003357/0.2039, allocations: 179.5 kB / 353.1 MB, free: 7.285 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008519/0.2048, allocations: 359.5 kB / 353.4 MB, free: 6.934 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003062/0.2078, allocations: 4.458 MB / 357.9 MB, free: 2.133 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001106/0.2089, allocations: 163.9 kB / 358 MB, free: 1.973 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.839e-05/0.209, allocations: 49.8 kB / 358.1 MB, free: 1.926 MB / 314.7 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.0006668/0.2097, allocations: 393.6 kB / 358.5 MB, free: 1.535 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001535/0.2098, allocations: 115.3 kB / 358.6 MB, free: 1.422 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001364/0.21, allocations: 134 kB / 358.7 MB, free: 1.285 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.21, allocations: 15.94 kB / 358.7 MB, free: 1.27 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.21, allocations: 0 / 358.7 MB, free: 1.27 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.21, allocations: 7.969 kB / 358.7 MB, free: 1.262 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005313/0.2153, allocations: 4.065 MB / 362.8 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.849e-06/0.2153, allocations: 12 kB / 362.8 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005861/0.2159, allocations: 268.5 kB / 363.1 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004069/0.2163, allocations: 365.5 kB / 363.4 MB, free: 12.37 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.064e-05/0.2164, allocations: 39.98 kB / 363.5 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00122/0.2176, allocations: 2.172 MB / 365.6 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.935e-06/0.2176, allocations: 15.94 kB / 365.7 MB, free: 10 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003043/0.2206, allocations: 2.503 MB / 368.2 MB, free: 7.359 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005872/0.2212, allocations: 251.2 kB / 368.4 MB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001163/0.2214, allocations: 47.98 kB / 368.5 MB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005551/0.2219, allocations: 135.9 kB / 368.6 MB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005227/0.2224, allocations: 176.2 kB / 368.8 MB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.146e-05/0.2225, allocations: 47.98 kB / 368.8 MB, free: 6.715 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005507/0.223, allocations: 0.542 MB / 369.3 MB, free: 6.18 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.223, allocations: 0 / 369.3 MB, free: 6.18 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009965/0.224, allocations: 355.9 kB / 369.7 MB, free: 5.832 MB / 330.7 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.003337/0.2274, allocations: 3.124 MB / 372.8 MB, free: 2.543 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002791/0.2302, allocations: 1.938 MB / 374.8 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.658e-06/0.2302, allocations: 4 kB / 374.8 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001482/0.2316, allocations: 1.031 MB / 375.8 MB, free: 15.52 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001257/0.2329, allocations: 193.2 kB / 376 MB, free: 15.34 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01654/0.2494, allocations: 12.21 MB / 388.2 MB, free: 2.551 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004979/0.2499, allocations: 0.5903 MB / 388.8 MB, free: 1.93 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006058/0.2505, allocations: 168.3 kB / 388.9 MB, free: 1.762 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005867/0.2511, allocations: 0.5081 MB / 389.5 MB, free: 1.25 MB / 346.7 MB Notification: Performance of SimCode: time 1.603e-06/0.2511, allocations: 0 / 389.5 MB, free: 1.25 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05513/0.3063, allocations: 30.93 MB / 420.4 MB, free: 2.195 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.68/8.986, allocations: 0 / 420.4 MB, free: 2.195 MB / 378.7 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.csv --start-time 0 --stop-time 1.6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000340136 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: 10.795884716324508] 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'] 9.094562204554677 9.109802832 8.950401993 Calling exit ...