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.001543/0.001543, allocations: 122.7 kB / 18.5 MB, free: 4.578 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.001614/0.001614, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.45/1.45, allocations: 230.5 MB / 254.7 MB, free: 15.01 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.001874/0.001874, allocations: 67.89 kB / 373.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1092, allocations: 53.32 MB / 426.9 MB, free: 4.848 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.1947/0.3039, allocations: 11.22 MB / 438.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008568/0.3125, allocations: 4.082 MB / 442.2 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002172/0.3146, allocations: 68.53 kB / 442.3 MB, free: 3.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005877/0.3205, allocations: 3.209 MB / 445.5 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005247/0.3258, allocations: 1.923 MB / 447.4 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001829/0.3276, allocations: 0.8229 MB / 448.2 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007254/0.3348, allocations: 4.399 MB / 452.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004611/0.3394, allocations: 3.348 MB / 456 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00314/0.3426, allocations: 1.616 MB / 457.6 MB, free: 12.44 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003433/0.346, allocations: 2.28 MB / 459.9 MB, free: 11.03 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007646/0.3468, allocations: 349.7 kB / 460.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002512/0.3493, allocations: 1.277 MB / 461.5 MB, free: 10.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002158/0.3515, allocations: 2.054 MB / 463.5 MB, free: 9.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002877/0.3543, allocations: 2.299 MB / 465.8 MB, free: 7.566 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009559/0.3639, allocations: 7.475 MB / 473.3 MB, free: 2.367 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.3639, allocations: 0 / 473.3 MB, free: 2.367 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3639, allocations: 0 / 473.3 MB, free: 2.367 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003076/0.3642, allocations: 0 / 473.3 MB, free: 2.367 MB / 366.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.01394/0.3781, allocations: 5.279 MB / 478.6 MB, free: 13.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.3782, allocations: 12.03 kB / 478.6 MB, free: 13 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001582/0.3798, allocations: 0.7398 MB / 479.3 MB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02085/0.4006, allocations: 3.894 MB / 483.2 MB, free: 8.344 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007726/0.4084, allocations: 2.981 MB / 486.2 MB, free: 5.301 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002072/0.4086, allocations: 238.2 kB / 486.4 MB, free: 5.066 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001063/0.4096, allocations: 327.8 kB / 486.8 MB, free: 4.746 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01956/0.4292, allocations: 10.38 MB / 497.1 MB, free: 9.668 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001622/0.4293, allocations: 45.47 kB / 497.2 MB, free: 9.625 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009449/0.4303, allocations: 159.8 kB / 497.3 MB, free: 9.469 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003627/0.4339, allocations: 2.021 MB / 499.4 MB, free: 7.445 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01859/0.4525, allocations: 8.782 MB / 0.4962 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05864/0.5111, allocations: 40.68 MB / 0.536 GB, free: 4.922 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01172/0.5229, allocations: 4.25 MB / 0.5401 GB, free: 0.5273 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003123/0.526, allocations: 2.231 MB / 0.5423 GB, free: 14.29 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01241/0.5384, allocations: 7.207 MB / 0.5493 GB, free: 6.871 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.838e-05/0.5384, allocations: 51.56 kB / 0.5494 GB, free: 6.812 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 4.038e-06/0.5385, allocations: 0 / 0.5494 GB, free: 6.812 MB / 462.1 MB Notification: Performance of matching and sorting (n=198): time 0.04537/0.5838, allocations: 18.03 MB / 0.567 GB, free: 4.664 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000138/0.584, allocations: 179.5 kB / 0.5672 GB, free: 4.453 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006516/0.5905, allocations: 4.579 MB / 0.5716 GB, free: 15.85 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003538/0.5908, allocations: 49.7 kB / 0.5717 GB, free: 15.8 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002551/0.5934, allocations: 3.271 MB / 0.5749 GB, free: 12.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001048/0.5944, allocations: 0.7869 MB / 0.5756 GB, free: 11.7 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001744/0.5962, allocations: 1.254 MB / 0.5769 GB, free: 10.44 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.5963, allocations: 301.1 kB / 0.5772 GB, free: 10.14 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003352/0.5997, allocations: 2.276 MB / 0.5794 GB, free: 7.859 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006242/0.6059, allocations: 5.957 MB / 0.5852 GB, free: 68 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01098/0.6169, allocations: 8.965 MB / 0.5939 GB, free: 5.289 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001092/0.617, allocations: 37 kB / 0.594 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of matching and sorting (n=802) (initialization): time 0.01591/0.6329, allocations: 8.807 MB / 0.6026 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.745e-05/0.633, allocations: 60 kB / 0.6026 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001526/0.6331, allocations: 128 kB / 0.6028 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002262/0.6354, allocations: 0.9375 MB / 0.6037 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004514/0.6399, allocations: 1.404 MB / 0.6051 GB, free: 9.902 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008577/0.6485, allocations: 6.52 MB / 0.6114 GB, free: 3.246 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004615/0.6531, allocations: 343.6 kB / 0.6117 GB, free: 2.91 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009928/0.6541, allocations: 376 kB / 0.6121 GB, free: 2.543 MB / 0.5137 GB 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.003908/0.658, allocations: 2.173 MB / 0.6142 GB, free: 368 kB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2139/0.8719, allocations: 411.8 kB / 0.6146 GB, free: 160.7 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007066/0.879, allocations: 3.668 MB / 0.6182 GB, free: 160.6 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.26e-05/0.879, allocations: 26.62 kB / 0.6182 GB, free: 160.6 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/0.879, allocations: 5.188 kB / 0.6182 GB, free: 160.6 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.608e-05/0.8791, allocations: 9.25 kB / 0.6182 GB, free: 160.6 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01703/0.8961, allocations: 9.046 MB / 0.6271 GB, free: 157.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.867e-05/0.8961, allocations: 5.656 kB / 0.6271 GB, free: 157.6 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001452/0.8976, allocations: 321.1 kB / 0.6274 GB, free: 157.6 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001935/0.8995, allocations: 0.7705 MB / 0.6281 GB, free: 157.4 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001773/0.8997, allocations: 37.22 kB / 0.6282 GB, free: 157.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007298/0.907, allocations: 6.118 MB / 0.6341 GB, free: 154.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/0.907, allocations: 9.188 kB / 0.6342 GB, free: 154.2 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008679/0.9156, allocations: 6.606 MB / 0.6406 GB, free: 151.6 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001263/0.9169, allocations: 481.5 kB / 0.6411 GB, free: 151.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004869/0.9174, allocations: 42.22 kB / 0.6411 GB, free: 151.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001388/0.9188, allocations: 111.7 kB / 0.6412 GB, free: 151.4 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003173/0.9191, allocations: 125.2 kB / 0.6413 GB, free: 151.4 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001395/0.9192, allocations: 55.53 kB / 0.6414 GB, free: 151.4 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004392/0.9236, allocations: 2.934 MB / 0.6443 GB, free: 150.4 MB / 0.5137 GB Notification: Performance of sort global known variables: time 6e-08/0.9236, allocations: 0 / 0.6443 GB, free: 150.4 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004479/0.9281, allocations: 1.025 MB / 0.6453 GB, free: 150.3 MB / 0.5137 GB 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.007704/0.9358, allocations: 7.26 MB / 0.6523 GB, free: 147 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006715/0.9425, allocations: 5.306 MB / 0.6575 GB, free: 144.6 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.359e-05/0.9425, allocations: 8 kB / 0.6575 GB, free: 144.6 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002455/0.945, allocations: 1.843 MB / 0.6593 GB, free: 143 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002978/0.948, allocations: 0.4977 MB / 0.6598 GB, free: 142.6 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05883/1.007, allocations: 50.13 MB / 0.7088 GB, free: 86.71 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003311/1.01, allocations: 3.369 MB / 0.7121 GB, free: 83.32 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00421/1.014, allocations: 2.024 MB / 0.714 GB, free: 81.3 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002343/1.017, allocations: 1.997 MB / 0.716 GB, free: 79.3 MB / 0.5137 GB Notification: Performance of SimCode: time 1.823e-06/1.017, allocations: 0 / 0.716 GB, free: 79.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1228/1.139, allocations: 77.01 MB / 0.7912 GB, free: 2.812 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.94/26.08, allocations: 6.438 kB / 0.7912 GB, free: 2.809 MB / 0.5137 GB " [Timeout remaining time 634] (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: 28.582478639204055] Failed to read output from testmodel.py, exit status != 0: ['time', 'revolute1.phi', 'revolute1.w', 'revolute2.phi', 'revolute2.w'] 26.216743194963783 26.240484726 25.871876742 Calling exit ...