Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001482/0.001482, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001859/0.001859, allocations: 213.2 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.447/1.447, allocations: 230.6 MB / 258.3 MB, free: 8.059 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 64.77 kB / 378.6 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2706/0.2726, allocations: 53.37 MB / 431.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01338/0.2859, allocations: 11.26 MB / 443.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00847/0.2944, allocations: 4.097 MB / 447.3 MB, free: 7.465 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001736/0.2961, allocations: 79.69 kB / 447.4 MB, free: 7.387 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006016/0.3022, allocations: 3.216 MB / 450.6 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005181/0.3073, allocations: 1.942 MB / 452.5 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002056/0.3094, allocations: 0.8266 MB / 453.4 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007125/0.3165, allocations: 4.413 MB / 457.8 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004176/0.3207, allocations: 3.04 MB / 460.8 MB, free: 9.859 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002745/0.3234, allocations: 1.632 MB / 462.4 MB, free: 8.223 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003625/0.3271, allocations: 2.294 MB / 464.7 MB, free: 5.922 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000978/0.328, allocations: 344 kB / 465.1 MB, free: 5.586 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002643/0.3307, allocations: 1.268 MB / 466.3 MB, free: 4.316 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002336/0.333, allocations: 2.064 MB / 468.4 MB, free: 2.246 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002949/0.336, allocations: 2.299 MB / 470.7 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00957/0.3455, allocations: 7.455 MB / 478.2 MB, free: 8.449 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.3456, allocations: 0 / 478.2 MB, free: 8.449 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3456, allocations: 4 kB / 478.2 MB, free: 8.445 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002655/0.3458, allocations: 0 / 478.2 MB, free: 8.445 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1541 * Number of variables: 1541 Notification: Performance of Generate backend data structure: time 0.0129/0.3587, allocations: 5.219 MB / 483.4 MB, free: 3.164 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/0.3588, allocations: 12.03 kB / 483.4 MB, free: 3.152 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001492/0.3603, allocations: 0.7282 MB / 484.1 MB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02006/0.3803, allocations: 3.894 MB / 488 MB, free: 14.51 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007235/0.3876, allocations: 2.912 MB / 490.9 MB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002343/0.3878, allocations: 250.1 kB / 491.2 MB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001053/0.3888, allocations: 319.8 kB / 491.5 MB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02036/0.4092, allocations: 10.38 MB / 0.4901 GB, free: 15.9 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001542/0.4094, allocations: 43.64 kB / 0.4901 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004777/0.4098, allocations: 155.8 kB / 0.4903 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003658/0.4135, allocations: 2.029 MB / 0.4923 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01823/0.4317, allocations: 8.788 MB / 0.5008 GB, free: 4.871 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2753/0.707, allocations: 40.53 MB / 0.5404 GB, free: 74.77 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009917/0.7169, allocations: 3.809 MB / 0.5442 GB, free: 74.67 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002287/0.7192, allocations: 2.233 MB / 0.5463 GB, free: 74.63 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009062/0.7283, allocations: 6.534 MB / 0.5527 GB, free: 72.75 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/0.7283, allocations: 58.38 kB / 0.5528 GB, free: 72.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 3.767e-06/0.7283, allocations: 0 / 0.5528 GB, free: 72.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.03845/0.7668, allocations: 17.81 MB / 0.5702 GB, free: 60.65 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.52e-05/0.7668, allocations: 174.2 kB / 0.5703 GB, free: 60.44 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004691/0.7715, allocations: 4.579 MB / 0.5748 GB, free: 55.92 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002653/0.7718, allocations: 57.14 kB / 0.5749 GB, free: 55.86 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001266/0.7731, allocations: 3.265 MB / 0.578 GB, free: 52.76 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005231/0.7736, allocations: 0.7887 MB / 0.5788 GB, free: 51.98 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001152/0.7747, allocations: 1.254 MB / 0.58 GB, free: 50.73 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.184e-05/0.7748, allocations: 309.1 kB / 0.5803 GB, free: 50.42 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002377/0.7772, allocations: 2.276 MB / 0.5826 GB, free: 48.14 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00344/0.7806, allocations: 5.961 MB / 0.5884 GB, free: 40.49 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006797/0.7874, allocations: 8.956 MB / 0.5971 GB, free: 29.92 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.81e-05/0.7875, allocations: 40 kB / 0.5972 GB, free: 29.88 MB / 446.1 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.01109/0.7985, allocations: 8.799 MB / 0.6057 GB, free: 21.07 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.091e-05/0.7986, allocations: 60 kB / 0.6058 GB, free: 21.01 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.042e-05/0.7987, allocations: 132 kB / 0.6059 GB, free: 20.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001848/0.8005, allocations: 0.9459 MB / 0.6069 GB, free: 19.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003633/0.8042, allocations: 1.4 MB / 0.6082 GB, free: 18.53 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006047/0.8102, allocations: 6.418 MB / 0.6145 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00405/0.8143, allocations: 339.6 kB / 0.6148 GB, free: 11.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005539/0.8148, allocations: 376 kB / 0.6152 GB, free: 11.3 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 46 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 738 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002663/0.8175, allocations: 2.167 MB / 0.6173 GB, free: 9.121 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006542/0.8182, allocations: 414 kB / 0.6177 GB, free: 8.715 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004983/0.8231, allocations: 3.668 MB / 0.6213 GB, free: 5.031 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-05/0.8232, allocations: 27.69 kB / 0.6213 GB, free: 5.008 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/0.8232, allocations: 4.5 kB / 0.6213 GB, free: 5.004 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.567e-05/0.8232, allocations: 11.97 kB / 0.6213 GB, free: 4.992 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01471/0.8379, allocations: 9.014 MB / 0.6301 GB, free: 11.88 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.483e-05/0.8379, allocations: 8 kB / 0.6301 GB, free: 11.87 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001564/0.8395, allocations: 331.3 kB / 0.6304 GB, free: 11.55 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002071/0.8416, allocations: 0.7637 MB / 0.6312 GB, free: 10.78 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002153/0.8418, allocations: 44.31 kB / 0.6312 GB, free: 10.74 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009046/0.8508, allocations: 6.011 MB / 0.6371 GB, free: 4.625 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.776e-06/0.8508, allocations: 8 kB / 0.6371 GB, free: 4.617 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01088/0.8617, allocations: 6.602 MB / 0.6435 GB, free: 13.92 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001285/0.863, allocations: 405.1 kB / 0.6439 GB, free: 13.52 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007058/0.8637, allocations: 43.94 kB / 0.644 GB, free: 13.48 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001558/0.8653, allocations: 111.8 kB / 0.6441 GB, free: 13.37 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003463/0.8656, allocations: 132.9 kB / 0.6442 GB, free: 13.24 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001499/0.8658, allocations: 61.78 kB / 0.6443 GB, free: 13.18 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004885/0.8706, allocations: 2.928 MB / 0.6471 GB, free: 10.25 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.8706, allocations: 0 / 0.6471 GB, free: 10.25 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005236/0.8759, allocations: 1.031 MB / 0.6481 GB, free: 9.223 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 153 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01127/0.8871, allocations: 7.249 MB / 0.6552 GB, free: 1.879 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009877/0.897, allocations: 5.317 MB / 0.6604 GB, free: 12.58 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.109e-05/0.897, allocations: 0 / 0.6604 GB, free: 12.58 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003527/0.9006, allocations: 1.853 MB / 0.6622 GB, free: 10.71 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003199/0.9038, allocations: 0.5004 MB / 0.6627 GB, free: 10.22 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0843/0.9881, allocations: 50.2 MB / 0.7117 GB, free: 2.137 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004356/0.9924, allocations: 3.363 MB / 0.715 GB, free: 14.73 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004718/0.9971, allocations: 2.029 MB / 0.717 GB, free: 12.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003406/1.001, allocations: 1.995 MB / 0.7189 GB, free: 10.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.172e-06/1.001, allocations: 0 / 0.7189 GB, free: 10.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3648/1.365, allocations: 81.96 MB / 0.799 GB, free: 174.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.5/28.87, allocations: 6.609 kB / 0.799 GB, free: 174.5 MB / 0.5606 GB " [Timeout remaining time 631] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 31.334757176227868] Failed to read output from testmodel.py, exit status != 0: ['time', 'revolute1.phi', 'revolute1.w', 'revolute2.phi', 'revolute2.w'] 29.002522730268538 29.020108803 28.670646948999998 Calling exit ...