Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.001521/0.001521, allocations: 186.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.954/1.954, allocations: 205.4 MB / 222.5 MB, free: 9.133 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001184/0.001184, allocations: 95.23 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003993/0.0003993, allocations: 8 kB / 327.1 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3386/0.339, allocations: 47.57 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1492/0.4882, allocations: 92.31 MB / 466.9 MB, free: 4.316 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003492/0.4886, allocations: 95.94 kB / 467 MB, free: 4.223 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6224/1.111, allocations: 83.07 MB / 0.5372 GB, free: 78.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.836e-06/1.111, allocations: 0 / 0.5372 GB, free: 78.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002455/1.111, allocations: 79.98 kB / 0.5373 GB, free: 77.98 MB / 378.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.01664/1.128, allocations: 4.352 MB / 0.5415 GB, free: 73.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/1.128, allocations: 12.03 kB / 0.5416 GB, free: 73.54 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002761/1.131, allocations: 0.6595 MB / 0.5422 GB, free: 72.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04661/1.178, allocations: 6.601 MB / 0.5486 GB, free: 66.26 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02009/1.198, allocations: 5.886 MB / 0.5544 GB, free: 60.31 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002851/1.198, allocations: 263 kB / 0.5546 GB, free: 60.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00191/1.2, allocations: 359.8 kB / 0.555 GB, free: 59.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02424/1.224, allocations: 9.106 MB / 0.5639 GB, free: 49.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002978/1.225, allocations: 67.36 kB / 0.5639 GB, free: 49.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00145/1.226, allocations: 175.9 kB / 0.5641 GB, free: 49.45 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001856/1.228, allocations: 0.8923 MB / 0.565 GB, free: 48.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02144/1.249, allocations: 7.584 MB / 0.5724 GB, free: 40.96 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05895/1.308, allocations: 42.3 MB / 0.6137 GB, free: 13.29 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01513/1.324, allocations: 3.772 MB / 0.6174 GB, free: 9.363 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000701/1.324, allocations: 324.2 kB / 0.6177 GB, free: 8.992 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.813e-05/1.324, allocations: 55.52 kB / 0.6177 GB, free: 8.93 MB / 394.7 MB Notification: Performance of pre-optimization done (n=160): time 5.591e-06/1.324, allocations: 0 / 0.6177 GB, free: 8.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=189): time 0.09324/1.418, allocations: 19.5 MB / 0.6368 GB, free: 5.25 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001567/1.418, allocations: 248.6 kB / 0.637 GB, free: 4.949 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009185/1.427, allocations: 3.492 MB / 0.6404 GB, free: 1.434 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005589/1.428, allocations: 53.7 kB / 0.6405 GB, free: 1.375 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.3195/1.747, allocations: 2.733 MB / 0.6431 GB, free: 102.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001144/1.748, allocations: 0.7177 MB / 0.6438 GB, free: 102.6 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007084/1.749, allocations: 108.7 kB / 0.644 GB, free: 102.6 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000353/1.75, allocations: 0.5389 MB / 0.6445 GB, free: 102.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005124/1.755, allocations: 2.081 MB / 0.6465 GB, free: 102.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00803/1.763, allocations: 5.321 MB / 0.6517 GB, free: 98.07 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008544/1.771, allocations: 3.268 MB / 0.6549 GB, free: 98.05 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001898/1.772, allocations: 32.72 kB / 0.6549 GB, free: 98.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.02515/1.797, allocations: 8.285 MB / 0.663 GB, free: 97.35 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001045/1.797, allocations: 56.31 kB / 0.6631 GB, free: 97.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001464/1.797, allocations: 112.4 kB / 0.6632 GB, free: 97.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006597/1.804, allocations: 1.385 MB / 0.6645 GB, free: 97.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007329/1.811, allocations: 1.227 MB / 0.6657 GB, free: 97.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01812/1.829, allocations: 8.717 MB / 0.6742 GB, free: 93.03 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006189/1.835, allocations: 310.4 kB / 0.6745 GB, free: 92.94 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009651/1.836, allocations: 336.9 kB / 0.6749 GB, free: 92.89 MB / 410.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 () * Number of clocked 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.004612/1.841, allocations: 1.948 MB / 0.6768 GB, free: 92.04 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008857/1.842, allocations: 352 kB / 0.6771 GB, free: 91.85 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0121/1.854, allocations: 3.917 MB / 0.6809 GB, free: 90.45 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.514e-05/1.854, allocations: 22.56 kB / 0.6809 GB, free: 90.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.536e-05/1.854, allocations: 5.531 kB / 0.681 GB, free: 90.45 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.119e-05/1.854, allocations: 13.31 kB / 0.681 GB, free: 90.45 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02367/1.878, allocations: 8.928 MB / 0.6897 GB, free: 87.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.911e-05/1.878, allocations: 2.281 kB / 0.6897 GB, free: 87.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002502/1.881, allocations: 263 kB / 0.6899 GB, free: 87.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006407/1.887, allocations: 1.212 MB / 0.6911 GB, free: 86.82 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004618/1.888, allocations: 32 kB / 0.6912 GB, free: 86.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01694/1.904, allocations: 7.864 MB / 0.6988 GB, free: 79.95 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.67e-06/1.905, allocations: 4 kB / 0.6988 GB, free: 79.95 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.017/1.922, allocations: 6.811 MB / 0.7055 GB, free: 74.06 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002468/1.924, allocations: 0.6791 MB / 0.7062 GB, free: 73.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001075/1.925, allocations: 32 kB / 0.7062 GB, free: 73.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003301/1.929, allocations: 109.1 kB / 0.7063 GB, free: 73.31 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007316/1.929, allocations: 117.1 kB / 0.7064 GB, free: 73.24 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001986/1.93, allocations: 54.75 kB / 0.7064 GB, free: 73.19 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006076/1.936, allocations: 2.467 MB / 0.7089 GB, free: 71.14 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.41e-07/1.936, allocations: 0 / 0.7089 GB, free: 71.14 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006676/1.942, allocations: 1.002 MB / 0.7098 GB, free: 70.15 MB / 410.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 () * Number of clocked 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.01781/1.96, allocations: 7.745 MB / 0.7174 GB, free: 63.34 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01182/1.972, allocations: 5.187 MB / 0.7225 GB, free: 58.77 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/1.972, allocations: 4 kB / 0.7225 GB, free: 58.77 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00512/1.977, allocations: 1.978 MB / 0.7244 GB, free: 57.04 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003816/1.981, allocations: 452 kB / 0.7248 GB, free: 56.66 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4102/2.391, allocations: 113.1 MB / 0.8353 GB, free: 113.7 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006949/2.398, allocations: 3.182 MB / 0.8384 GB, free: 113 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004503/2.403, allocations: 1.813 MB / 0.8402 GB, free: 113 MB / 442.7 MB Notification: Performance of SimCode: time 1.593e-06/2.403, allocations: 0 / 0.8402 GB, free: 113 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.131/6.534, allocations: 94.97 MB / 0.9329 GB, free: 39.3 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat does not exist to compare? outputFormat=mat