Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.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.DoublePendulumInitTip,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",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.0009442/0.0009439, allocations: 172.7 kB / 14.1 MB, free: 1.223 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.325/1.325, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0007663/0.0007663, allocations: 82.73 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.687e-05/2.692e-05, allocations: 4 kB / 322.6 MB, free: 17.24 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08406/0.08411, allocations: 47.57 MB / 370.1 MB, free: 1.598 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3087/0.3929, allocations: 97.59 MB / 467.7 MB, free: 12.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002306/0.3931, allocations: 93 kB / 467.8 MB, free: 12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4337/0.8268, allocations: 94.87 MB / 0.5495 GB, free: 91.54 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.8269, allocations: 0 / 0.5495 GB, free: 91.54 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002029/0.8271, allocations: 92.75 kB / 0.5496 GB, free: 91.53 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1556 * Number of variables: 1556 Notification: Performance of Generate backend data structure: time 0.01375/0.8408, allocations: 4.514 MB / 0.554 GB, free: 89.66 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.973e-05/0.8409, allocations: 11.62 kB / 0.554 GB, free: 89.66 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00225/0.8432, allocations: 0.7792 MB / 0.5547 GB, free: 89.58 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02365/0.8668, allocations: 6.744 MB / 0.5613 GB, free: 89.27 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01422/0.8811, allocations: 6.166 MB / 0.5674 GB, free: 88.61 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002433/0.8814, allocations: 329.9 kB / 0.5677 GB, free: 88.6 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001692/0.8831, allocations: 448.5 kB / 0.5681 GB, free: 88.59 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02088/0.904, allocations: 10.43 MB / 0.5783 GB, free: 85.02 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002181/0.9043, allocations: 63.06 kB / 0.5783 GB, free: 85.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008538/0.9051, allocations: 207.3 kB / 0.5785 GB, free: 84.9 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001155/0.9063, allocations: 1.015 MB / 0.5795 GB, free: 84.73 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01424/0.9205, allocations: 8.556 MB / 0.5879 GB, free: 82.03 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0414/0.962, allocations: 46.17 MB / 0.633 GB, free: 43.29 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00722/0.9693, allocations: 3.975 MB / 0.6369 GB, free: 39.79 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001828/0.9711, allocations: 2.022 MB / 0.6388 GB, free: 37.93 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005233/0.9717, allocations: 0.6617 MB / 0.6395 GB, free: 37.21 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/0.9717, allocations: 47.56 kB / 0.6395 GB, free: 37.15 MB / 410.7 MB Notification: Performance of pre-optimization done (n=175): time 5.239e-06/0.9717, allocations: 4 kB / 0.6395 GB, free: 37.15 MB / 410.7 MB Notification: Performance of matching and sorting (n=210): time 0.04372/1.015, allocations: 18.86 MB / 0.6579 GB, free: 18.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.018e-05/1.016, allocations: 256.6 kB / 0.6582 GB, free: 18.65 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004136/1.02, allocations: 3.711 MB / 0.6618 GB, free: 14.91 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002556/1.02, allocations: 61.64 kB / 0.6619 GB, free: 14.85 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001374/1.021, allocations: 3.259 MB / 0.6651 GB, free: 11.59 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006257/1.022, allocations: 0.7977 MB / 0.6658 GB, free: 10.79 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002253/1.022, allocations: 127.8 kB / 0.666 GB, free: 10.67 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002162/1.022, allocations: 0.5543 MB / 0.6665 GB, free: 10.11 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002454/1.025, allocations: 2.206 MB / 0.6686 GB, free: 7.898 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003656/1.029, allocations: 5.76 MB / 0.6743 GB, free: 372 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004816/1.033, allocations: 3.548 MB / 0.6777 GB, free: 12.81 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.512e-05/1.034, allocations: 36 kB / 0.6778 GB, free: 12.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=785) (initialization): time 0.019/1.053, allocations: 9.446 MB / 0.687 GB, free: 3.309 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.331e-05/1.053, allocations: 60.28 kB / 0.6871 GB, free: 3.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001474/1.053, allocations: 124.8 kB / 0.6872 GB, free: 3.129 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005686/1.059, allocations: 1.973 MB / 0.6891 GB, free: 1.145 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2267/1.285, allocations: 1.299 MB / 0.6904 GB, free: 92.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02086/1.306, allocations: 14.96 MB / 0.705 GB, free: 88.28 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005418/1.312, allocations: 346.9 kB / 0.7053 GB, free: 88.28 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001358/1.313, allocations: 362.1 kB / 0.7057 GB, free: 88.28 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 569 * Number of states: 0 () * Number of discrete variables: 33 (freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],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 (697): * Single equations (assignments): 691 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,88.9%) 35,(3,100.0%) 11} * Non-linear torn systems: 1 {2 13} Notification: Performance of prepare postOptimizeDAE: time 0.0009389/1.314, allocations: 0.5595 MB / 0.7062 GB, free: 88.17 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008323/1.315, allocations: 387.4 kB / 0.7066 GB, free: 88.17 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00837/1.323, allocations: 4.157 MB / 0.7106 GB, free: 88.03 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.993e-05/1.323, allocations: 24.42 kB / 0.7107 GB, free: 88.03 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.386e-05/1.323, allocations: 8.906 kB / 0.7107 GB, free: 88.03 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.195e-05/1.323, allocations: 11.02 kB / 0.7107 GB, free: 88.03 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01669/1.34, allocations: 9.972 MB / 0.7204 GB, free: 85.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.711e-05/1.34, allocations: 4.875 kB / 0.7204 GB, free: 85.86 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001307/1.341, allocations: 299 kB / 0.7207 GB, free: 85.85 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003102/1.345, allocations: 1.219 MB / 0.7219 GB, free: 85.62 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002533/1.345, allocations: 35.94 kB / 0.7219 GB, free: 85.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008741/1.354, allocations: 7.547 MB / 0.7293 GB, free: 82.09 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/1.354, allocations: 7.078 kB / 0.7293 GB, free: 82.08 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009696/1.363, allocations: 7.166 MB / 0.7363 GB, free: 79.34 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002015/1.365, allocations: 0.7263 MB / 0.737 GB, free: 78.96 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000588/1.366, allocations: 34.91 kB / 0.737 GB, free: 78.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001508/1.368, allocations: 120.6 kB / 0.7372 GB, free: 78.91 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003535/1.368, allocations: 127.4 kB / 0.7373 GB, free: 78.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001422/1.368, allocations: 55.09 kB / 0.7373 GB, free: 78.88 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003834/1.372, allocations: 2.612 MB / 0.7399 GB, free: 77.95 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.01e-07/1.372, allocations: 0 / 0.7399 GB, free: 77.95 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006671/1.379, allocations: 1.146 MB / 0.741 GB, free: 77.82 MB / 426.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 (157): * Single equations (assignments): 153 * 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.01076/1.389, allocations: 8.088 MB / 0.7489 GB, free: 74.12 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009303/1.399, allocations: 5.938 MB / 0.7547 GB, free: 72.12 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.17e-05/1.399, allocations: 3.469 kB / 0.7547 GB, free: 72.12 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003308/1.402, allocations: 2.074 MB / 0.7567 GB, free: 71.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002895/1.405, allocations: 0.5284 MB / 0.7572 GB, free: 71.11 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01981/1.425, allocations: 10.1 MB / 0.7671 GB, free: 66.06 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003078/1.428, allocations: 3.626 MB / 0.7706 GB, free: 63.34 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004241/1.432, allocations: 1.937 MB / 0.7725 GB, free: 62.22 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002319/1.435, allocations: 2.088 MB / 0.7746 GB, free: 60.3 MB / 426.7 MB Notification: Performance of SimCode: time 1.493e-06/1.435, allocations: 0 / 0.7746 GB, free: 60.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3641/1.799, allocations: 91.4 MB / 0.8638 GB, free: 93.11 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001685/1.799, allocations: 221.9 kB / 0.864 GB, free: 92.88 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.421/6.22, allocations: 0 / 0.864 GB, free: 92.88 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat does not exist to compare? outputFormat=mat