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.0009642/0.0009642, allocations: 83.62 kB / 21.43 MB, free: 3.129 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.004423/0.004423, allocations: 163.3 kB / 24.69 MB, free: 9.41 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.8602/0.8602, 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.954e-06/1.954e-06, allocations: 0 / 298.5 MB, free: 3.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.731e-05/1.927e-05, allocations: 2.281 kB / 298.5 MB, free: 3.504 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.1261/0.1261, allocations: 8.017 MB / 306.5 MB, free: 11.13 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003623/0.1298, allocations: 2.265 MB / 308.7 MB, free: 10.05 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006904/0.1304, allocations: 31.56 kB / 308.8 MB, free: 10.04 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006254/0.1311, allocations: 327.4 kB / 309.1 MB, free: 9.855 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009215/0.132, allocations: 0.5162 MB / 309.6 MB, free: 9.473 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009187/0.1329, allocations: 0.6665 MB / 310.3 MB, free: 9.02 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001632/0.1345, allocations: 2.41 MB / 312.7 MB, free: 7.68 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008043/0.1353, allocations: 0.6941 MB / 313.4 MB, free: 7.258 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00126/0.1366, allocations: 1.305 MB / 314.7 MB, free: 6.566 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006951/0.1373, allocations: 0.6745 MB / 315.4 MB, free: 6.293 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002694/0.1376, allocations: 281.4 kB / 315.6 MB, free: 6.289 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004391/0.138, allocations: 334.1 kB / 316 MB, free: 6.273 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002547/0.1383, allocations: 0.5112 MB / 316.5 MB, free: 5.895 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004403/0.1387, allocations: 0.6895 MB / 317.2 MB, free: 5.512 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002216/0.1409, allocations: 3.487 MB / 320.6 MB, free: 3.598 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.1409, allocations: 5.141 kB / 320.6 MB, free: 3.594 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1409, allocations: 0 / 320.6 MB, free: 3.594 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.324e-05/0.141, allocations: 0 / 320.6 MB, free: 3.594 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.002358/0.1433, allocations: 1.886 MB / 322.5 MB, free: 2.23 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.1434, allocations: 13.05 kB / 322.5 MB, free: 2.227 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001816/0.1436, allocations: 229.7 kB / 322.8 MB, free: 2.043 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002769/0.1438, allocations: 186.8 kB / 323 MB, free: 1.953 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009044/0.1447, allocations: 0.7817 MB / 323.7 MB, free: 1.301 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002218/0.145, allocations: 442.2 kB / 324.2 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001708/0.1451, allocations: 157.6 kB / 324.3 MB, free: 0.832 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002129/0.1473, allocations: 1.895 MB / 326.2 MB, free: 15.58 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.791e-05/0.1473, allocations: 15.59 kB / 326.2 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001144/0.1474, allocations: 66.14 kB / 326.3 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.987e-05/0.1474, allocations: 37.38 kB / 326.3 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002339/0.1498, allocations: 1.557 MB / 327.9 MB, free: 14.76 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006145/0.1559, allocations: 5.196 MB / 333.1 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001411/0.1573, allocations: 0.9046 MB / 334 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000672/0.158, allocations: 0.4969 MB / 334.5 MB, free: 10.03 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.285e-05/0.1581, allocations: 18.55 kB / 334.5 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000929/0.159, allocations: 0.8719 MB / 335.4 MB, free: 9.277 MB / 298.7 MB Notification: Performance of pre-optimization done (n=91): time 3.266e-06/0.159, allocations: 1.219 kB / 335.4 MB, free: 9.277 MB / 298.7 MB Notification: Performance of matching and sorting (n=121): time 0.01892/0.1779, allocations: 8.684 MB / 344.1 MB, free: 0.543 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/0.178, allocations: 303.7 kB / 344.4 MB, free: 180 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009078/0.1789, allocations: 0.8284 MB / 345.2 MB, free: 15.34 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.839e-05/0.179, allocations: 53.7 kB / 345.2 MB, free: 15.28 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004863/0.1795, allocations: 0.6683 MB / 345.9 MB, free: 14.6 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003893/0.1799, allocations: 432.3 kB / 346.3 MB, free: 14.18 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006573/0.1806, allocations: 239.5 kB / 346.6 MB, free: 13.94 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003654/0.1809, allocations: 414.7 kB / 347 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001848/0.1828, allocations: 0.8199 MB / 347.8 MB, free: 12.7 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002422/0.1852, allocations: 1.339 MB / 349.1 MB, free: 11.2 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003743/0.1889, allocations: 1.658 MB / 350.8 MB, free: 9.449 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.137e-05/0.1889, allocations: 4 kB / 350.8 MB, free: 9.445 MB / 314.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003236/0.1922, allocations: 2.088 MB / 352.9 MB, free: 7.34 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.1922, allocations: 8 kB / 352.9 MB, free: 7.332 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.1922, allocations: 8.562 kB / 352.9 MB, free: 7.324 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003198/0.1925, allocations: 181.2 kB / 353.1 MB, free: 7.141 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008816/0.1934, allocations: 347.5 kB / 353.4 MB, free: 6.801 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002547/0.196, allocations: 4.473 MB / 357.9 MB, free: 1.988 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008631/0.1968, allocations: 159.9 kB / 358 MB, free: 1.832 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.774e-05/0.1969, allocations: 55.98 kB / 358.1 MB, free: 1.777 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.0005984/0.1975, allocations: 385.4 kB / 358.5 MB, free: 1.395 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001249/0.1976, allocations: 111.3 kB / 358.6 MB, free: 1.285 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001264/0.1978, allocations: 134 kB / 358.7 MB, free: 1.148 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.1978, allocations: 19.94 kB / 358.7 MB, free: 1.129 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/0.1978, allocations: 4 kB / 358.7 MB, free: 1.125 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.493e-06/0.1978, allocations: 3.984 kB / 358.7 MB, free: 1.121 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004894/0.2027, allocations: 4.071 MB / 362.8 MB, free: 12.86 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.176e-06/0.2027, allocations: 11.98 kB / 362.8 MB, free: 12.85 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005695/0.2033, allocations: 268.3 kB / 363.1 MB, free: 12.59 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003836/0.2036, allocations: 361.5 kB / 363.4 MB, free: 12.23 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.818e-05/0.2037, allocations: 43.98 kB / 363.5 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001053/0.2048, allocations: 2.168 MB / 365.6 MB, free: 9.879 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-06/0.2048, allocations: 11.94 kB / 365.7 MB, free: 9.867 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002917/0.2077, allocations: 2.51 MB / 368.2 MB, free: 7.215 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003362/0.208, allocations: 251.2 kB / 368.4 MB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.94e-05/0.2081, allocations: 44 kB / 368.5 MB, free: 6.926 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005265/0.2086, allocations: 139.8 kB / 368.6 MB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002203/0.2089, allocations: 176.3 kB / 368.8 MB, free: 6.617 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.852e-05/0.2089, allocations: 44 kB / 368.8 MB, free: 6.574 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004678/0.2094, allocations: 0.542 MB / 369.3 MB, free: 6.039 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.2094, allocations: 0 / 369.3 MB, free: 6.039 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008146/0.2102, allocations: 347.9 kB / 369.7 MB, free: 5.699 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.003393/0.2136, allocations: 3.132 MB / 372.8 MB, free: 2.402 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002455/0.216, allocations: 1.932 MB / 374.8 MB, free: 440 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.216, allocations: 0 / 374.8 MB, free: 440 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00131/0.2174, allocations: 1.025 MB / 375.8 MB, free: 15.39 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007425/0.2181, allocations: 213.4 kB / 376 MB, free: 15.19 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01498/0.2331, allocations: 12.2 MB / 388.2 MB, free: 2.414 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004546/0.2335, allocations: 0.5903 MB / 388.8 MB, free: 1.793 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005023/0.234, allocations: 172.3 kB / 388.9 MB, free: 1.621 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005647/0.2346, allocations: 0.5159 MB / 389.5 MB, free: 1.102 MB / 346.7 MB Notification: Performance of SimCode: time 1.072e-06/0.2346, allocations: 0 / 389.5 MB, free: 1.102 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04224/0.2768, allocations: 30.92 MB / 420.4 MB, free: 2.059 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.41/8.687, allocations: 3.984 kB / 420.4 MB, free: 2.055 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis_fmu --startTime=0 --stopTime=1.6 --stepSize=0.000340136 --timeout=50 --tolerance=1e-06 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.380928244441748] 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'] 8.787857233546674 8.794968642 8.65244901 Calling exit ...