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.001947/0.001947, allocations: 107.6 kB / 21.18 MB, free: 0.6094 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.002361/0.002361, allocations: 215 kB / 24.48 MB, free: 3.934 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.496/1.496, allocations: 207.7 MB / 235.3 MB, free: 9.816 MB / 190.1 MB " [Timeout remaining time 178] 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: 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.001853/0.001853, allocations: 48.34 kB / 347.2 MB, free: 9.898 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2659, allocations: 49.17 MB / 396.4 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.008923/0.2748, allocations: 8.005 MB / 404.4 MB, free: 3.562 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005196/0.28, allocations: 2.29 MB / 406.7 MB, free: 1.863 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001858/0.2819, allocations: 32.19 kB / 406.7 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001046/0.2829, allocations: 319.3 kB / 407 MB, free: 1.672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002086/0.285, allocations: 0.4966 MB / 407.5 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001485/0.2865, allocations: 0.6533 MB / 408.1 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003275/0.2898, allocations: 2.348 MB / 410.5 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00134/0.2911, allocations: 0.6939 MB / 411.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001627/0.2927, allocations: 0.8416 MB / 412 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001476/0.2942, allocations: 0.7843 MB / 412.8 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003708/0.2946, allocations: 277.4 kB / 413.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007072/0.2953, allocations: 336.8 kB / 413.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004812/0.2958, allocations: 0.5074 MB / 413.9 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008932/0.2966, allocations: 0.7907 MB / 414.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004335/0.301, allocations: 3.384 MB / 418.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/0.301, allocations: 5.219 kB / 418.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.301, allocations: 0 / 418.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.174e-05/0.3011, allocations: 0 / 418.1 MB, free: 10.54 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.004883/0.306, allocations: 1.91 MB / 420 MB, free: 9.172 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.109e-05/0.306, allocations: 13.17 kB / 420 MB, free: 9.168 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003261/0.3063, allocations: 223.5 kB / 420.2 MB, free: 8.988 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006173/0.307, allocations: 188.1 kB / 420.4 MB, free: 8.898 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00167/0.3086, allocations: 0.789 MB / 421.2 MB, free: 8.234 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004304/0.3091, allocations: 446 kB / 421.7 MB, free: 7.816 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002389/0.3093, allocations: 158.5 kB / 421.8 MB, free: 7.762 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003497/0.3128, allocations: 1.891 MB / 423.7 MB, free: 6.516 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.176e-05/0.3129, allocations: 5.609 kB / 423.7 MB, free: 6.512 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001457/0.313, allocations: 61.94 kB / 423.8 MB, free: 6.465 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.421e-05/0.313, allocations: 40.75 kB / 423.8 MB, free: 6.461 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003567/0.3166, allocations: 1.565 MB / 425.4 MB, free: 5.691 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01032/0.3269, allocations: 5.174 MB / 430.5 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002244/0.3292, allocations: 0.9101 MB / 431.5 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001089/0.3302, allocations: 0.5047 MB / 432 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.849e-05/0.3303, allocations: 9 kB / 432 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001449/0.3318, allocations: 0.8654 MB / 432.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=91): time 2.685e-06/0.3318, allocations: 0 / 432.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=121): time 0.03391/0.3657, allocations: 8.701 MB / 441.5 MB, free: 5.273 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001651/0.3658, allocations: 295.7 kB / 441.8 MB, free: 4.918 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001171/0.367, allocations: 0.8206 MB / 442.6 MB, free: 4.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001374/0.3671, allocations: 53.7 kB / 442.7 MB, free: 4.031 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005661/0.3677, allocations: 0.6762 MB / 443.4 MB, free: 3.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003986/0.3681, allocations: 440.3 kB / 443.8 MB, free: 2.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004738/0.3686, allocations: 243.5 kB / 444 MB, free: 2.664 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002196/0.3688, allocations: 414.7 kB / 444.4 MB, free: 2.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001992/0.3708, allocations: 0.816 MB / 445.3 MB, free: 1.434 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002476/0.3733, allocations: 1.331 MB / 446.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003796/0.3771, allocations: 1.662 MB / 448.3 MB, free: 14.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/0.3771, allocations: 4 kB / 448.3 MB, free: 14.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004899/0.382, allocations: 2.084 MB / 450.3 MB, free: 12.08 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.382, allocations: 8.25 kB / 450.3 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/0.382, allocations: 8 kB / 450.4 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000438/0.3825, allocations: 182.4 kB / 450.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001678/0.3841, allocations: 347.5 kB / 450.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00433/0.3885, allocations: 4.473 MB / 455.3 MB, free: 6.715 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001742/0.3902, allocations: 167.9 kB / 455.5 MB, free: 6.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.3903, allocations: 52 kB / 455.6 MB, free: 6.5 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.0007756/0.3911, allocations: 387.4 kB / 455.9 MB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002081/0.3913, allocations: 119.2 kB / 456.1 MB, free: 5.992 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002526/0.3916, allocations: 130 kB / 456.2 MB, free: 5.863 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/0.3916, allocations: 12 kB / 456.2 MB, free: 5.852 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.3916, allocations: 4 kB / 456.2 MB, free: 5.848 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.3916, allocations: 15.91 kB / 456.2 MB, free: 5.832 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008118/0.3997, allocations: 4.07 MB / 460.3 MB, free: 1.578 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.496e-05/0.3997, allocations: 8 kB / 460.3 MB, free: 1.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001127/0.4009, allocations: 260.1 kB / 460.5 MB, free: 1.316 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005943/0.4015, allocations: 373.5 kB / 460.9 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.912e-05/0.4015, allocations: 36 kB / 460.9 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001883/0.4034, allocations: 2.168 MB / 463.1 MB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.829e-06/0.4034, allocations: 12.08 kB / 463.1 MB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005082/0.4085, allocations: 2.534 MB / 465.7 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007006/0.4092, allocations: 247.2 kB / 465.9 MB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001772/0.4094, allocations: 43.98 kB / 465.9 MB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/0.4104, allocations: 143.8 kB / 466.1 MB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003286/0.4108, allocations: 172.2 kB / 466.3 MB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.055e-05/0.4109, allocations: 43.98 kB / 466.3 MB, free: 11.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00076/0.4116, allocations: 0.5459 MB / 466.8 MB, free: 10.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4116, allocations: 0 / 466.8 MB, free: 10.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001206/0.4128, allocations: 344 kB / 467.2 MB, free: 10.39 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.005598/0.4184, allocations: 3.14 MB / 470.3 MB, free: 7.094 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004439/0.4229, allocations: 1.941 MB / 472.3 MB, free: 5.113 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/0.4229, allocations: 0 / 472.3 MB, free: 5.113 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00242/0.4253, allocations: 1.032 MB / 473.3 MB, free: 4.074 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0014/0.4267, allocations: 203.7 kB / 473.5 MB, free: 3.879 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02398/0.4507, allocations: 12.34 MB / 485.8 MB, free: 6.957 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007222/0.4514, allocations: 0.5942 MB / 486.4 MB, free: 6.332 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008698/0.4523, allocations: 164.4 kB / 486.6 MB, free: 6.168 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000829/0.4531, allocations: 0.511 MB / 487.1 MB, free: 5.656 MB / 398.1 MB Notification: Performance of SimCode: time 8.72e-07/0.4531, allocations: 0 / 487.1 MB, free: 5.656 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07598/0.5291, allocations: 30.84 MB / 0.5058 GB, free: 6.684 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.19/14.71, allocations: 19.66 kB / 0.5058 GB, free: 6.664 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 & 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: 17.482235786039382] 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.852174514904618 14.872115462 14.567686686 Calling exit ...