Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 221.3 MB / 235.5 MB, free: 2.926 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008739/0.000874, allocations: 87.73 kB / 286.5 MB, free: 220 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.255e-05/4.257e-05, allocations: 3.984 kB / 343.9 MB, free: 4.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1193, allocations: 50.41 MB / 394.3 MB, free: 1.738 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3844/0.5038, allocations: 93.65 MB / 488 MB, free: 9.781 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002853/0.5042, allocations: 87.95 kB / 488.1 MB, free: 9.695 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5298/1.034, allocations: 84.14 MB / 0.5588 GB, free: 96.43 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.835e-06/1.034, allocations: 0 / 0.5588 GB, free: 96.43 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003983/1.035, allocations: 79.38 kB / 0.5589 GB, free: 96.43 MB / 426.7 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.0185/1.053, allocations: 3.952 MB / 0.5627 GB, free: 94.86 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.892e-05/1.053, allocations: 8.812 kB / 0.5628 GB, free: 94.86 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003164/1.056, allocations: 0.6639 MB / 0.5634 GB, free: 94.79 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02917/1.085, allocations: 6.61 MB / 0.5699 GB, free: 94.52 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01856/1.104, allocations: 5.526 MB / 0.5753 GB, free: 93.91 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004045/1.105, allocations: 271.8 kB / 0.5755 GB, free: 93.9 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002398/1.107, allocations: 362.2 kB / 0.5759 GB, free: 93.89 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01584/1.123, allocations: 9.037 MB / 0.5847 GB, free: 91.46 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001644/1.123, allocations: 65.98 kB / 0.5847 GB, free: 91.46 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004806/1.124, allocations: 173.3 kB / 0.5849 GB, free: 91.46 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001036/1.125, allocations: 0.8965 MB / 0.5858 GB, free: 91.44 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01298/1.138, allocations: 7.486 MB / 0.5931 GB, free: 89.8 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04569/1.183, allocations: 42.23 MB / 0.6343 GB, free: 57.69 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007512/1.191, allocations: 3.734 MB / 0.638 GB, free: 56.14 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002088/1.193, allocations: 1.94 MB / 0.6399 GB, free: 55.01 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003686/1.193, allocations: 334.2 kB / 0.6402 GB, free: 54.65 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/1.193, allocations: 55.5 kB / 0.6403 GB, free: 54.59 MB / 426.7 MB Notification: Performance of pre-optimization done (n=160): time 5.07e-06/1.193, allocations: 0 / 0.6403 GB, free: 54.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=189): time 0.0427/1.236, allocations: 17.1 MB / 0.657 GB, free: 40.31 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/1.236, allocations: 252.6 kB / 0.6572 GB, free: 40.01 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00475/1.241, allocations: 3.421 MB / 0.6605 GB, free: 36.55 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003088/1.241, allocations: 53.7 kB / 0.6606 GB, free: 36.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001436/1.243, allocations: 2.832 MB / 0.6634 GB, free: 33.67 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006685/1.244, allocations: 0.7145 MB / 0.6641 GB, free: 32.96 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002221/1.244, allocations: 108 kB / 0.6642 GB, free: 32.86 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002632/1.244, allocations: 0.5384 MB / 0.6647 GB, free: 32.31 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002679/1.247, allocations: 2.045 MB / 0.6667 GB, free: 30.26 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00399/1.251, allocations: 5.286 MB / 0.6718 GB, free: 23.35 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003764/1.255, allocations: 3.275 MB / 0.675 GB, free: 20.07 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.66e-05/1.255, allocations: 32 kB / 0.6751 GB, free: 20.04 MB / 426.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01339/1.268, allocations: 8.333 MB / 0.6832 GB, free: 11.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.226e-05/1.268, allocations: 52 kB / 0.6833 GB, free: 11.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.86e-05/1.268, allocations: 116 kB / 0.6834 GB, free: 11.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003416/1.272, allocations: 1.375 MB / 0.6847 GB, free: 10.15 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003845/1.275, allocations: 1.224 MB / 0.6859 GB, free: 8.926 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009828/1.285, allocations: 8.394 MB / 0.6941 GB, free: 416 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004854/1.29, allocations: 319 kB / 0.6944 GB, free: 100 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001003/1.291, allocations: 337.7 kB / 0.6947 GB, free: 15.77 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 519 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (653): * Single equations (assignments): 649 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001377/1.293, allocations: 0.5207 MB / 0.6952 GB, free: 15.24 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007652/1.293, allocations: 351.4 kB / 0.6956 GB, free: 14.89 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007893/1.301, allocations: 3.891 MB / 0.6994 GB, free: 10.99 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.285e-05/1.301, allocations: 20 kB / 0.6994 GB, free: 10.97 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.667e-05/1.301, allocations: 8 kB / 0.6994 GB, free: 10.96 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.399e-05/1.301, allocations: 7.969 kB / 0.6994 GB, free: 10.95 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.017/1.318, allocations: 8.876 MB / 0.7081 GB, free: 2.027 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.671e-05/1.318, allocations: 4 kB / 0.7081 GB, free: 2.023 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001259/1.32, allocations: 263.5 kB / 0.7083 GB, free: 1.766 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003506/1.323, allocations: 1.212 MB / 0.7095 GB, free: 0.5508 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000193/1.323, allocations: 35.98 kB / 0.7095 GB, free: 0.5156 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3367/1.66, allocations: 7.544 MB / 0.7169 GB, free: 98.87 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/1.66, allocations: 2.984 kB / 0.7169 GB, free: 98.87 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01264/1.673, allocations: 6.765 MB / 0.7235 GB, free: 98.23 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001391/1.674, allocations: 403.6 kB / 0.7239 GB, free: 98.13 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007543/1.675, allocations: 29.44 kB / 0.7239 GB, free: 98.13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001737/1.677, allocations: 112.6 kB / 0.724 GB, free: 98.13 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004492/1.677, allocations: 113.3 kB / 0.7242 GB, free: 98.13 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001459/1.677, allocations: 54.45 kB / 0.7242 GB, free: 98.13 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005243/1.683, allocations: 2.409 MB / 0.7266 GB, free: 97.93 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.21e-07/1.683, allocations: 0.9688 kB / 0.7266 GB, free: 97.93 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006564/1.689, allocations: 0.9971 MB / 0.7275 GB, free: 97.93 MB / 442.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (135): * Single equations (assignments): 131 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 31} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01138/1.701, allocations: 7.701 MB / 0.735 GB, free: 96.52 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007658/1.708, allocations: 5.12 MB / 0.7401 GB, free: 95.18 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/1.708, allocations: 0 / 0.7401 GB, free: 95.18 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003176/1.712, allocations: 1.962 MB / 0.742 GB, free: 94.42 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003807/1.716, allocations: 444.5 kB / 0.7424 GB, free: 94.23 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02728/1.743, allocations: 8.809 MB / 0.751 GB, free: 91.16 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005622/1.748, allocations: 3.17 MB / 0.7541 GB, free: 89.93 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005599/1.754, allocations: 1.825 MB / 0.7559 GB, free: 89.89 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003346/1.758, allocations: 1.766 MB / 0.7576 GB, free: 88.48 MB / 442.7 MB Notification: Performance of SimCode: time 1.332e-06/1.758, allocations: 0 / 0.7576 GB, free: 88.48 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1327/1.89, allocations: 79.14 MB / 0.8349 GB, free: 30.93 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001934/1.891, allocations: 190.5 kB / 0.8351 GB, free: 30.71 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.829/6.719, allocations: 0 / 0.8351 GB, free: 30.71 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat does not exist to compare? outputFormat=mat