Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002405/0.002404, allocations: 181.8 kB / 8.365 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.138/2.138, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001084/0.001084, allocations: 86.44 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.18e-05/3.183e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3524/0.3525, allocations: 47.57 MB / 362.4 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1655/0.518, allocations: 96.94 MB / 459.4 MB, free: 5.32 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003529/0.5184, allocations: 95.55 kB / 459.5 MB, free: 5.23 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.664/1.182, allocations: 93.08 MB / 0.5396 GB, free: 95.09 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.575e-06/1.183, allocations: 3.719 kB / 0.5396 GB, free: 95.09 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.000351/1.183, allocations: 86.47 kB / 0.5397 GB, free: 95.08 MB / 395.1 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.01813/1.201, allocations: 4.505 MB / 0.5441 GB, free: 92.56 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/1.201, allocations: 10.78 kB / 0.5441 GB, free: 92.56 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04841/1.25, allocations: 6.728 MB / 0.5507 GB, free: 89.14 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02263/1.272, allocations: 6.175 MB / 0.5567 GB, free: 84.84 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002707/1.273, allocations: 144 kB / 0.5568 GB, free: 84.7 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002368/1.275, allocations: 259.8 kB / 0.5571 GB, free: 84.45 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01545/1.29, allocations: 6.205 MB / 0.5631 GB, free: 78.24 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02441/1.315, allocations: 9.451 MB / 0.5724 GB, free: 67.83 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003108/1.315, allocations: 55.47 kB / 0.5724 GB, free: 67.77 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001856/1.317, allocations: 28 kB / 0.5725 GB, free: 67.75 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002171/1.319, allocations: 1.019 MB / 0.5734 GB, free: 66.73 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06609/1.385, allocations: 44.21 MB / 0.6166 GB, free: 21.54 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005858/1.391, allocations: 3.19 MB / 0.6197 GB, free: 18.2 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003692/1.395, allocations: 1.963 MB / 0.6217 GB, free: 16.23 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009404/1.396, allocations: 0.6479 MB / 0.6223 GB, free: 15.48 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.767e-05/1.396, allocations: 59.8 kB / 0.6223 GB, free: 15.41 MB / 395.1 MB Notification: Performance of pre-optimization done (n=175): time 5.791e-06/1.396, allocations: 0 / 0.6223 GB, free: 15.41 MB / 395.1 MB Notification: Performance of matching and sorting (n=210): time 0.06379/1.46, allocations: 18.36 MB / 0.6403 GB, free: 12.97 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001611/1.46, allocations: 260.6 kB / 0.6405 GB, free: 12.66 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00841/1.469, allocations: 3.265 MB / 0.6437 GB, free: 9.371 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005715/1.469, allocations: 25.7 kB / 0.6437 GB, free: 9.34 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003711/1.473, allocations: 3.238 MB / 0.6469 GB, free: 6.059 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00153/1.475, allocations: 0.7748 MB / 0.6477 GB, free: 5.273 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007208/1.475, allocations: 3.938 kB / 0.6477 GB, free: 5.27 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0005692/1.476, allocations: 0.5751 MB / 0.6482 GB, free: 4.684 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005695/1.482, allocations: 2.136 MB / 0.6503 GB, free: 2.543 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2996/1.781, allocations: 5.811 MB / 0.656 GB, free: 94.98 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007854/1.789, allocations: 3.49 MB / 0.6594 GB, free: 94.97 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001471/1.789, allocations: 38.84 kB / 0.6594 GB, free: 94.97 MB / 411.1 MB Notification: Performance of matching and sorting (n=812) (initialization): time 0.03051/1.82, allocations: 8.65 MB / 0.6679 GB, free: 94.38 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001569/1.82, allocations: 67.27 kB / 0.6679 GB, free: 94.37 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003259/1.82, allocations: 130.7 kB / 0.6681 GB, free: 94.37 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01104/1.832, allocations: 1.958 MB / 0.67 GB, free: 94.34 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008721/1.84, allocations: 1.35 MB / 0.6713 GB, free: 94.21 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02948/1.87, allocations: 14.13 MB / 0.6851 GB, free: 88.39 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007269/1.877, allocations: 226.3 kB / 0.6853 GB, free: 88.39 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001719/1.879, allocations: 378.3 kB / 0.6857 GB, free: 88.34 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 596 * 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 (724): * Single equations (assignments): 718 * 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 {(5,80.0%) 33,(3,100.0%) 11} * Non-linear torn systems: 1 {2 13} Notification: Performance of prepare postOptimizeDAE: time 0.002306/1.881, allocations: 436 kB / 0.6861 GB, free: 88.07 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01337/1.895, allocations: 4.238 MB / 0.6902 GB, free: 86.86 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001296/1.896, allocations: 367.5 kB / 0.6906 GB, free: 86.84 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01297/1.909, allocations: 3.999 MB / 0.6945 GB, free: 85.46 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.417e-05/1.909, allocations: 23.97 kB / 0.6945 GB, free: 85.46 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.96e-05/1.909, allocations: 7.188 kB / 0.6945 GB, free: 85.46 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-05/1.909, allocations: 11.44 kB / 0.6945 GB, free: 85.46 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02793/1.937, allocations: 8.997 MB / 0.7033 GB, free: 82.09 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.833e-05/1.937, allocations: 0 / 0.7033 GB, free: 82.09 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002878/1.94, allocations: 298.1 kB / 0.7036 GB, free: 82.06 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006249/1.946, allocations: 1.199 MB / 0.7048 GB, free: 81.82 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005139/1.947, allocations: 13.33 kB / 0.7048 GB, free: 81.82 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01544/1.962, allocations: 7.033 MB / 0.7116 GB, free: 78.39 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.757e-06/1.963, allocations: 0 / 0.7116 GB, free: 78.39 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01751/1.98, allocations: 6.983 MB / 0.7185 GB, free: 73.18 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003024/1.983, allocations: 0.696 MB / 0.7191 GB, free: 72.52 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00121/1.984, allocations: 0 / 0.7191 GB, free: 72.52 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003384/1.988, allocations: 93.19 kB / 0.7192 GB, free: 72.48 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006835/1.989, allocations: 120.3 kB / 0.7193 GB, free: 72.4 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002392/1.989, allocations: 55.23 kB / 0.7194 GB, free: 72.35 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.005108/1.994, allocations: 2.21 MB / 0.7216 GB, free: 70.41 MB / 411.1 MB Notification: Performance of sort global known variables: time 8.42e-07/1.994, allocations: 4 kB / 0.7216 GB, free: 70.41 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.008109/2.002, allocations: 0.9868 MB / 0.7225 GB, free: 69.43 MB / 411.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 () * 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.01769/2.02, allocations: 7.887 MB / 0.7302 GB, free: 62.46 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.01365/2.034, allocations: 5.761 MB / 0.7358 GB, free: 57.26 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 8.836e-06/2.034, allocations: 0 / 0.7358 GB, free: 57.26 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005233/2.039, allocations: 2.022 MB / 0.7378 GB, free: 55.45 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004271/2.043, allocations: 455.7 kB / 0.7383 GB, free: 55.08 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0331/2.076, allocations: 10.34 MB / 0.7483 GB, free: 46.18 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007677/2.084, allocations: 3.637 MB / 0.7519 GB, free: 42.86 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004979/2.089, allocations: 2.118 MB / 0.754 GB, free: 40.74 MB / 411.1 MB Notification: Performance of SimCode: time 1.533e-06/2.089, allocations: 0 / 0.754 GB, free: 40.74 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.872/6.962, allocations: 125 MB / 0.876 GB, free: 68.39 MB / 427.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat does not exist to compare? outputFormat=mat