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.001416/0.001416, allocations: 116.9 kB / 18.45 MB, free: 4.566 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.001428/0.001428, allocations: 213.6 kB / 21.42 MB, free: 1.605 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.516/1.516, allocations: 207.6 MB / 231.8 MB, free: 4.02 MB / 174.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.001735/0.001735, allocations: 55.92 kB / 342.3 MB, free: 10 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09659/0.09833, allocations: 49.12 MB / 391.4 MB, free: 8.707 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01137/0.1097, allocations: 9.238 MB / 400.7 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00509/0.1148, allocations: 2.314 MB / 403 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001174/0.116, allocations: 39.75 kB / 403 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008897/0.1169, allocations: 325 kB / 403.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001329/0.1182, allocations: 0.4958 MB / 403.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001227/0.1194, allocations: 0.6516 MB / 404.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002667/0.1221, allocations: 2.341 MB / 406.8 MB, free: 9.238 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001209/0.1233, allocations: 0.7445 MB / 407.6 MB, free: 8.445 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001319/0.1246, allocations: 0.8685 MB / 408.4 MB, free: 7.574 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00109/0.1257, allocations: 0.8871 MB / 409.3 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003408/0.126, allocations: 276 kB / 409.6 MB, free: 6.414 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004663/0.1265, allocations: 335.9 kB / 409.9 MB, free: 6.086 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004363/0.1269, allocations: 0.4987 MB / 410.4 MB, free: 5.586 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009616/0.1279, allocations: 0.9725 MB / 411.4 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003422/0.1313, allocations: 3.359 MB / 414.7 MB, free: 1.238 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.942e-06/0.1313, allocations: 4 kB / 414.8 MB, free: 1.234 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.1313, allocations: 0 / 414.8 MB, free: 1.234 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.556e-05/0.1314, allocations: 0 / 414.8 MB, free: 1.234 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.004142/0.1355, allocations: 1.969 MB / 416.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.1356, allocations: 8.031 kB / 416.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002907/0.1359, allocations: 224 kB / 416.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003234/0.1362, allocations: 183.9 kB / 417.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001376/0.1376, allocations: 0.8503 MB / 418 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003038/0.1379, allocations: 240.4 kB / 418.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002399/0.1381, allocations: 156 kB / 418.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003204/0.1413, allocations: 1.686 MB / 420 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.718e-05/0.1414, allocations: 7.891 kB / 420.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001492/0.1415, allocations: 64 kB / 420.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.24e-05/0.1416, allocations: 36 kB / 420.2 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003431/0.145, allocations: 1.566 MB / 421.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009824/0.1548, allocations: 5.839 MB / 427.6 MB, free: 4.043 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002107/0.1569, allocations: 0.8865 MB / 428.4 MB, free: 3.145 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001082/0.158, allocations: 0.4964 MB / 428.9 MB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.365e-05/0.1581, allocations: 9 kB / 429 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001367/0.1594, allocations: 0.6567 MB / 429.6 MB, free: 1.934 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 3.667e-06/0.1594, allocations: 0 / 429.6 MB, free: 1.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.03564/0.1951, allocations: 8.977 MB / 438.6 MB, free: 8.832 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001918/0.1953, allocations: 295.7 kB / 438.9 MB, free: 8.477 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0012/0.1965, allocations: 0.7857 MB / 439.7 MB, free: 7.684 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000131/0.1966, allocations: 57.69 kB / 439.7 MB, free: 7.621 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006011/0.1972, allocations: 0.6722 MB / 440.4 MB, free: 6.938 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004143/0.1976, allocations: 436.3 kB / 440.8 MB, free: 6.508 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005066/0.1981, allocations: 247.5 kB / 441.1 MB, free: 6.258 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002289/0.1984, allocations: 402.7 kB / 441.4 MB, free: 5.855 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002059/0.2004, allocations: 0.816 MB / 442.3 MB, free: 5.039 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002355/0.2028, allocations: 1.134 MB / 443.4 MB, free: 3.793 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0039/0.2067, allocations: 1.642 MB / 445 MB, free: 2.055 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.2067, allocations: 4 kB / 445 MB, free: 2.051 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.005016/0.2117, allocations: 2.069 MB / 447.1 MB, free: 15.96 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.611e-05/0.2117, allocations: 8 kB / 447.1 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.618e-05/0.2117, allocations: 4 kB / 447.1 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004835/0.2122, allocations: 194.4 kB / 447.3 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001695/0.2139, allocations: 343.5 kB / 447.6 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004742/0.2186, allocations: 4.826 MB / 452.5 MB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001716/0.2204, allocations: 168 kB / 452.6 MB, free: 10 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001358/0.2205, allocations: 47.98 kB / 452.7 MB, free: 9.957 MB / 382.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.0008623/0.2214, allocations: 383.3 kB / 453.1 MB, free: 9.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002305/0.2216, allocations: 119.2 kB / 453.2 MB, free: 9.453 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003217/0.2219, allocations: 126 kB / 453.3 MB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.2219, allocations: 12 kB / 453.3 MB, free: 9.312 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.2219, allocations: 7.984 kB / 453.3 MB, free: 9.305 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.2219, allocations: 7.984 kB / 453.3 MB, free: 9.297 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008528/0.2305, allocations: 4.404 MB / 457.7 MB, free: 4.699 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-05/0.2305, allocations: 8 kB / 457.7 MB, free: 4.691 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001192/0.2317, allocations: 272.2 kB / 458 MB, free: 4.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006425/0.2323, allocations: 361.5 kB / 458.4 MB, free: 4.066 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.582e-05/0.2324, allocations: 43.92 kB / 458.4 MB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002138/0.2346, allocations: 2.275 MB / 460.7 MB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.498e-05/0.2346, allocations: 15.94 kB / 460.7 MB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1894/0.424, allocations: 2.488 MB / 463.2 MB, free: 63.22 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007832/0.4248, allocations: 332.2 kB / 463.5 MB, free: 63.13 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002216/0.425, allocations: 43.62 kB / 463.5 MB, free: 63.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.4262, allocations: 140.5 kB / 463.7 MB, free: 63.13 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004334/0.4266, allocations: 170.2 kB / 463.9 MB, free: 63.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001298/0.4267, allocations: 42.12 kB / 463.9 MB, free: 63.13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009537/0.4277, allocations: 0.5353 MB / 464.4 MB, free: 63.03 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4277, allocations: 0 / 464.4 MB, free: 63.03 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001569/0.4292, allocations: 342.6 kB / 464.8 MB, free: 63.03 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: 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.005255/0.4345, allocations: 3.111 MB / 467.9 MB, free: 61.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004401/0.4389, allocations: 1.925 MB / 469.8 MB, free: 60.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.211e-05/0.4389, allocations: 2.25 kB / 469.8 MB, free: 60.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002241/0.4412, allocations: 1.024 MB / 470.8 MB, free: 60.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001452/0.4426, allocations: 199.4 kB / 471 MB, free: 60.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02131/0.4639, allocations: 12.23 MB / 483.2 MB, free: 53.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006753/0.4646, allocations: 1.173 MB / 484.4 MB, free: 52.97 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008262/0.4654, allocations: 170.4 kB / 484.6 MB, free: 52.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007199/0.4661, allocations: 0.5087 MB / 485.1 MB, free: 52.51 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4661, allocations: 0 / 485.1 MB, free: 52.51 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06313/0.5293, allocations: 29.62 MB / 0.5026 GB, free: 24.03 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.16/14.69, allocations: 3.984 kB / 0.5027 GB, free: 24.03 MB / 382.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.45407122100005] 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.802561497010174 14.817749221 14.683455565 Calling exit ...