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.DoublePendulum.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.001301/0.001301, allocations: 109 kB / 21.23 MB, free: 0.6641 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.001415/0.001415, allocations: 213.6 kB / 24.54 MB, free: 4.02 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.422/1.422, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.DoublePendulum,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",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.001953/0.001953, allocations: 64.77 kB / 378.6 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.2975, allocations: 53.37 MB / 431.9 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01298/0.3105, allocations: 10.46 MB / 442.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008924/0.3194, allocations: 4.022 MB / 446.4 MB, free: 8.359 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001736/0.3211, allocations: 79.56 kB / 446.5 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004482/0.3256, allocations: 2.235 MB / 448.7 MB, free: 6.039 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005309/0.3309, allocations: 1.88 MB / 450.6 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001897/0.3328, allocations: 0.7447 MB / 451.3 MB, free: 3.406 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008017/0.3408, allocations: 5.263 MB / 456.6 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004305/0.3452, allocations: 2.4 MB / 459 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003321/0.3485, allocations: 1.499 MB / 460.5 MB, free: 10.17 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004054/0.3525, allocations: 2.219 MB / 462.7 MB, free: 7.945 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001205/0.3537, allocations: 300 kB / 463 MB, free: 7.652 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003124/0.3569, allocations: 1.209 MB / 464.2 MB, free: 6.441 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002813/0.3597, allocations: 1.897 MB / 466.1 MB, free: 4.539 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004203/0.3639, allocations: 2.191 MB / 468.3 MB, free: 2.336 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.011/0.3749, allocations: 6.989 MB / 475.3 MB, free: 11.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.3749, allocations: 0 / 475.3 MB, free: 11.32 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3749, allocations: 0 / 475.3 MB, free: 11.32 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002612/0.3751, allocations: 4 kB / 475.3 MB, free: 11.32 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01556/0.3907, allocations: 4.963 MB / 480.3 MB, free: 6.293 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.3908, allocations: 8.031 kB / 480.3 MB, free: 6.285 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001717/0.3925, allocations: 0.6206 MB / 480.9 MB, free: 5.656 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1428/0.5353, allocations: 12.3 MB / 493.2 MB, free: 9.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009781/0.5451, allocations: 3.643 MB / 496.8 MB, free: 5.645 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002247/0.5453, allocations: 193 kB / 497 MB, free: 5.453 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00124/0.5465, allocations: 271.8 kB / 497.3 MB, free: 5.188 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01711/0.5637, allocations: 8.734 MB / 0.4942 GB, free: 11.8 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000221/0.5639, allocations: 51.59 kB / 0.4942 GB, free: 11.75 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000888/0.5648, allocations: 127.9 kB / 0.4943 GB, free: 11.62 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003265/0.568, allocations: 1.77 MB / 0.4961 GB, free: 9.855 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01577/0.5838, allocations: 7.526 MB / 0.5034 GB, free: 2.324 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2688/0.8526, allocations: 35.31 MB / 0.5379 GB, free: 92.76 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008595/0.8611, allocations: 3.115 MB / 0.5409 GB, free: 92.66 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002698/0.8638, allocations: 1.901 MB / 0.5428 GB, free: 92.63 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003339/0.8642, allocations: 104.6 kB / 0.5429 GB, free: 92.63 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.658e-05/0.8642, allocations: 50.91 kB / 0.543 GB, free: 92.59 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.699e-06/0.8642, allocations: 2.812 kB / 0.543 GB, free: 92.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.04802/0.9122, allocations: 20.01 MB / 0.5625 GB, free: 83.62 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.955e-05/0.9123, allocations: 252.2 kB / 0.5627 GB, free: 83.32 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004478/0.9168, allocations: 3.948 MB / 0.5666 GB, free: 79.46 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003998/0.9172, allocations: 53.7 kB / 0.5666 GB, free: 79.41 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001271/0.9185, allocations: 2.914 MB / 0.5695 GB, free: 76.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006894/0.9192, allocations: 0.7571 MB / 0.5702 GB, free: 76.06 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001099/0.9203, allocations: 1.1 MB / 0.5713 GB, free: 74.95 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.077e-05/0.9203, allocations: 305.8 kB / 0.5716 GB, free: 74.65 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002363/0.9227, allocations: 2.167 MB / 0.5737 GB, free: 72.48 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003354/0.926, allocations: 5.402 MB / 0.579 GB, free: 65.57 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006686/0.9327, allocations: 8.211 MB / 0.587 GB, free: 55.86 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.282e-05/0.9328, allocations: 32 kB / 0.587 GB, free: 55.83 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01316/0.9459, allocations: 8.642 MB / 0.5955 GB, free: 47.18 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.969e-05/0.946, allocations: 60.25 kB / 0.5955 GB, free: 47.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001017/0.9461, allocations: 112 kB / 0.5956 GB, free: 47.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003648/0.9498, allocations: 1.497 MB / 0.5971 GB, free: 45.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003703/0.9535, allocations: 1.228 MB / 0.5983 GB, free: 44.29 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01077/0.9642, allocations: 9.833 MB / 0.6079 GB, free: 34.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004235/0.9685, allocations: 315.6 kB / 0.6082 GB, free: 34.03 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00077/0.9692, allocations: 332 kB / 0.6085 GB, free: 33.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * Number of states: 0 () * Number of discrete variables: 30 (boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (650): * Single equations (assignments): 646 * 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 {(2,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002766/0.972, allocations: 1.939 MB / 0.6104 GB, free: 31.75 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007195/0.9727, allocations: 369.6 kB / 0.6108 GB, free: 31.39 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006589/0.9793, allocations: 4.131 MB / 0.6148 GB, free: 27.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.816e-05/0.9793, allocations: 20 kB / 0.6148 GB, free: 27.23 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-05/0.9794, allocations: 8 kB / 0.6148 GB, free: 27.22 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-05/0.9794, allocations: 11.95 kB / 0.6148 GB, free: 27.21 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01655/0.9959, allocations: 9.218 MB / 0.6238 GB, free: 17.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.9e-05/0.9959, allocations: 0 / 0.6238 GB, free: 17.96 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001275/0.9972, allocations: 271.6 kB / 0.6241 GB, free: 17.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003477/1.001, allocations: 1.351 MB / 0.6254 GB, free: 16.34 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00027/1.001, allocations: 37.08 kB / 0.6255 GB, free: 16.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01043/1.011, allocations: 8.855 MB / 0.6341 GB, free: 7.336 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.716e-06/1.011, allocations: 0 / 0.6341 GB, free: 7.336 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01049/1.022, allocations: 7.059 MB / 0.641 GB, free: 264 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001264/1.023, allocations: 345.5 kB / 0.6413 GB, free: 15.91 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001069/1.024, allocations: 28 kB / 0.6414 GB, free: 15.89 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002095/1.026, allocations: 119.8 kB / 0.6415 GB, free: 15.77 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004598/1.027, allocations: 116.8 kB / 0.6416 GB, free: 15.66 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001841/1.027, allocations: 48 kB / 0.6416 GB, free: 15.61 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005422/1.032, allocations: 2.501 MB / 0.6441 GB, free: 13.12 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.71e-07/1.032, allocations: 0 / 0.6441 GB, free: 13.12 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005942/1.038, allocations: 0.996 MB / 0.645 GB, free: 12.13 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (136): * Single equations (assignments): 132 * 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,31,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01429/1.053, allocations: 7.686 MB / 0.6525 GB, free: 4.402 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009705/1.062, allocations: 5.148 MB / 0.6576 GB, free: 15.28 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/1.062, allocations: 4.188 kB / 0.6576 GB, free: 15.27 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003924/1.066, allocations: 1.937 MB / 0.6595 GB, free: 13.32 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004261/1.071, allocations: 499.5 kB / 0.6599 GB, free: 12.84 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09042/1.161, allocations: 45.78 MB / 0.7047 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004691/1.166, allocations: 3.091 MB / 0.7077 GB, free: 6.977 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00475/1.17, allocations: 1.819 MB / 0.7095 GB, free: 5.148 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003131/1.174, allocations: 1.749 MB / 0.7112 GB, free: 3.398 MB / 0.5137 GB Notification: Performance of SimCode: time 1.553e-06/1.174, allocations: 0 / 0.7112 GB, free: 3.398 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3885/1.562, allocations: 79.63 MB / 0.7889 GB, free: 166.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.93/24.49, allocations: 18.41 kB / 0.7889 GB, free: 166.8 MB / 0.545 GB " [Timeout remaining time 635] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 26.913163587916642] Failed to read output from testmodel.py, exit status != 0: ['time', 'revolute1.phi', 'revolute1.w', 'revolute2.phi', 'revolute2.w'] 24.658515504095703 24.669004452 24.291685689 Calling exit ...