Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.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.DoublePendulumInitTip,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 181.9 kB / 16.39 MB, free: 5.762 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.405/1.405, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009368/0.0009369, allocations: 102.5 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002702/0.0002702, allocations: 8 kB / 351.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2816, allocations: 50.41 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1322/0.4138, allocations: 98.57 MB / 0.4884 GB, free: 13.87 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/0.4141, allocations: 87.95 kB / 0.4885 GB, free: 13.79 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4617/0.8758, allocations: 93.67 MB / 0.58 GB, free: 32.67 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.386e-06/0.8758, allocations: 0 / 0.58 GB, free: 32.67 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003337/0.8762, allocations: 95.92 kB / 0.5801 GB, free: 32.57 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: 1508 * Number of variables: 1508 Notification: Performance of Generate backend data structure: time 0.01824/0.8944, allocations: 4.781 MB / 0.5848 GB, free: 27.72 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.902e-05/0.8945, allocations: 12.02 kB / 0.5848 GB, free: 27.71 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004267/0.8988, allocations: 0.7663 MB / 0.5855 GB, free: 26.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0243/0.9231, allocations: 6.698 MB / 0.5921 GB, free: 20.21 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01703/0.9402, allocations: 5.828 MB / 0.5977 GB, free: 14.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003808/0.9406, allocations: 324.4 kB / 0.5981 GB, free: 14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002606/0.9432, allocations: 435.7 kB / 0.5985 GB, free: 13.58 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02592/0.9692, allocations: 10.23 MB / 0.6085 GB, free: 2.414 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004423/0.9697, allocations: 59.47 kB / 0.6085 GB, free: 2.355 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002303/0.972, allocations: 203.9 kB / 0.6087 GB, free: 2.156 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001436/0.9735, allocations: 0.9758 MB / 0.6097 GB, free: 1.176 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01956/0.993, allocations: 8.398 MB / 0.6179 GB, free: 8.754 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3516/1.345, allocations: 45.13 MB / 0.6619 GB, free: 59.06 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007572/1.352, allocations: 3.878 MB / 0.6657 GB, free: 58.4 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005633/1.353, allocations: 0.6485 MB / 0.6664 GB, free: 57.84 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/1.353, allocations: 59.69 kB / 0.6664 GB, free: 57.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=166): time 4.518e-06/1.353, allocations: 2.953 kB / 0.6664 GB, free: 57.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=201): time 0.05348/1.406, allocations: 20.82 MB / 0.6867 GB, free: 54.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.398e-05/1.407, allocations: 253.8 kB / 0.687 GB, free: 54.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005262/1.412, allocations: 3.66 MB / 0.6906 GB, free: 53.95 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000352/1.412, allocations: 53.11 kB / 0.6906 GB, free: 53.92 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001705/1.414, allocations: 3.174 MB / 0.6937 GB, free: 52.42 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007093/1.415, allocations: 0.7617 MB / 0.6945 GB, free: 51.98 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002335/1.415, allocations: 113.1 kB / 0.6946 GB, free: 51.98 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002664/1.415, allocations: 0.5559 MB / 0.6951 GB, free: 51.67 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002605/1.418, allocations: 2.194 MB / 0.6973 GB, free: 51.65 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003914/1.422, allocations: 5.663 MB / 0.7028 GB, free: 47.18 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004144/1.426, allocations: 3.471 MB / 0.7062 GB, free: 47.15 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.632e-05/1.426, allocations: 34.09 kB / 0.7062 GB, free: 47.15 MB / 426.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01523/1.441, allocations: 9.332 MB / 0.7153 GB, free: 44.57 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001048/1.441, allocations: 61.44 kB / 0.7154 GB, free: 44.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001523/1.441, allocations: 120.6 kB / 0.7155 GB, free: 44.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005699/1.447, allocations: 1.977 MB / 0.7174 GB, free: 44.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004105/1.451, allocations: 1.257 MB / 0.7186 GB, free: 44.05 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0178/1.469, allocations: 15.52 MB / 0.7338 GB, free: 32.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005623/1.475, allocations: 338.1 kB / 0.7341 GB, free: 32.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001403/1.476, allocations: 351.5 kB / 0.7345 GB, free: 32.34 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 556 * Number of states: 0 () * Number of discrete variables: 35 (freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (675): * Single equations (assignments): 669 * 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.007496/1.484, allocations: 2.17 MB / 0.7366 GB, free: 30.43 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001173/1.485, allocations: 379.1 kB / 0.7369 GB, free: 30.06 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008139/1.493, allocations: 4.078 MB / 0.7409 GB, free: 26.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.846e-05/1.493, allocations: 20 kB / 0.7409 GB, free: 26.79 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.456e-05/1.493, allocations: 11.69 kB / 0.741 GB, free: 26.78 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.322e-05/1.493, allocations: 12.19 kB / 0.741 GB, free: 26.78 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01971/1.513, allocations: 9.728 MB / 0.7505 GB, free: 18.87 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.841e-05/1.513, allocations: 0 / 0.7505 GB, free: 18.87 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001337/1.514, allocations: 281.5 kB / 0.7507 GB, free: 18.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003308/1.518, allocations: 1.221 MB / 0.7519 GB, free: 17.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002766/1.518, allocations: 35.06 kB / 0.752 GB, free: 17.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009555/1.528, allocations: 7.865 MB / 0.7596 GB, free: 10.94 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/1.528, allocations: 0 / 0.7596 GB, free: 10.94 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01079/1.538, allocations: 7.054 MB / 0.7665 GB, free: 4.855 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001799/1.54, allocations: 422.3 kB / 0.7669 GB, free: 4.434 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00134/1.542, allocations: 37.47 kB / 0.767 GB, free: 4.402 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002349/1.544, allocations: 118.7 kB / 0.7671 GB, free: 4.328 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004007/1.544, allocations: 117.6 kB / 0.7672 GB, free: 4.254 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001822/1.545, allocations: 44 kB / 0.7672 GB, free: 4.211 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005882/1.55, allocations: 2.59 MB / 0.7698 GB, free: 2.074 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.551, allocations: 0 / 0.7698 GB, free: 2.074 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007459/1.558, allocations: 1.118 MB / 0.7709 GB, free: 0.9648 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (147): * Single equations (assignments): 143 * 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.01306/1.571, allocations: 7.991 MB / 0.7787 GB, free: 9.738 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01077/1.582, allocations: 5.874 MB / 0.7844 GB, free: 3.875 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/1.582, allocations: 0 / 0.7844 GB, free: 3.875 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003598/1.586, allocations: 2.056 MB / 0.7864 GB, free: 1.816 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004007/1.59, allocations: 0.5193 MB / 0.7869 GB, free: 1.312 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.347/1.937, allocations: 121.7 MB / 0.9058 GB, free: 82.57 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003785/1.94, allocations: 3.542 MB / 0.9092 GB, free: 81.77 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004345/1.945, allocations: 1.886 MB / 0.9111 GB, free: 81.73 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002701/1.948, allocations: 2.024 MB / 0.9131 GB, free: 81.73 MB / 490.7 MB Notification: Performance of SimCode: time 9.52e-07/1.948, allocations: 0 / 0.9131 GB, free: 81.73 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1294/2.077, allocations: 89.21 MB / 1 GB, free: 21.24 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002437/2.077, allocations: 236.3 kB / 1 GB, free: 21 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.691/6.768, allocations: 7.172 kB / 1 GB, free: 20.99 MB / 490.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat does not exist to compare? outputFormat=mat