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.002109/0.002109, allocations: 179.4 kB / 8.364 MB, free: 0.7148 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.06/2.06, allocations: 205.3 MB / 214.1 MB, free: 14.15 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.001144/0.001144, allocations: 97.58 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.669e-05/2.677e-05, allocations: 4 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.3448, allocations: 47.55 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1512/0.496, allocations: 91.56 MB / 454 MB, free: 10.64 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003264/0.4964, allocations: 83.95 kB / 454.1 MB, free: 10.56 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6391/1.136, allocations: 81.65 MB / 0.5232 GB, free: 96.07 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.893e-06/1.136, allocations: 0 / 0.5232 GB, free: 96.07 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002851/1.136, allocations: 75.84 kB / 0.5232 GB, free: 96.07 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01566/1.152, allocations: 3.965 MB / 0.5271 GB, free: 94.39 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/1.152, allocations: 15.31 kB / 0.5271 GB, free: 94.39 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04707/1.199, allocations: 6.617 MB / 0.5336 GB, free: 94.11 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02138/1.22, allocations: 5.833 MB / 0.5393 GB, free: 92.9 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002239/1.22, allocations: 117 kB / 0.5394 GB, free: 92.9 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002018/1.222, allocations: 215.7 kB / 0.5396 GB, free: 92.89 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01279/1.235, allocations: 5.245 MB / 0.5447 GB, free: 91.09 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01954/1.255, allocations: 8.189 MB / 0.5527 GB, free: 86.52 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000262/1.255, allocations: 59.09 kB / 0.5528 GB, free: 86.48 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001181/1.256, allocations: 28.44 kB / 0.5528 GB, free: 86.48 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001666/1.258, allocations: 0.8898 MB / 0.5537 GB, free: 85.96 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05527/1.313, allocations: 40.71 MB / 0.5934 GB, free: 44.46 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005152/1.319, allocations: 3.042 MB / 0.5964 GB, free: 41.27 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003137/1.322, allocations: 1.898 MB / 0.5982 GB, free: 39.36 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005122/1.322, allocations: 324.2 kB / 0.5986 GB, free: 38.99 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.972e-05/1.322, allocations: 67.73 kB / 0.5986 GB, free: 38.92 MB / 395.1 MB Notification: Performance of pre-optimization done (n=160): time 5.911e-06/1.322, allocations: 0 / 0.5986 GB, free: 38.92 MB / 395.1 MB Notification: Performance of matching and sorting (n=189): time 0.05854/1.381, allocations: 16.82 MB / 0.615 GB, free: 22.02 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.4e-05/1.381, allocations: 252.6 kB / 0.6153 GB, free: 21.72 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006891/1.388, allocations: 3.026 MB / 0.6182 GB, free: 18.71 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005155/1.389, allocations: 25.7 kB / 0.6183 GB, free: 18.68 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002438/1.391, allocations: 2.827 MB / 0.621 GB, free: 15.81 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001172/1.392, allocations: 0.6938 MB / 0.6217 GB, free: 15.11 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006781/1.393, allocations: 4 kB / 0.6217 GB, free: 15.11 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0003856/1.393, allocations: 0.5581 MB / 0.6223 GB, free: 14.54 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004837/1.398, allocations: 1.971 MB / 0.6242 GB, free: 12.56 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007139/1.405, allocations: 5.325 MB / 0.6294 GB, free: 5.535 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0072/1.413, allocations: 3.212 MB / 0.6325 GB, free: 2.324 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001133/1.413, allocations: 36 kB / 0.6325 GB, free: 2.289 MB / 395.1 MB Notification: Performance of matching and sorting (n=738) (initialization): time 0.03242/1.445, allocations: 7.604 MB / 0.64 GB, free: 10.68 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002043/1.446, allocations: 56 kB / 0.64 GB, free: 10.62 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000329/1.446, allocations: 120 kB / 0.6401 GB, free: 10.5 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01268/1.459, allocations: 1.376 MB / 0.6415 GB, free: 9.125 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0131/1.472, allocations: 1.271 MB / 0.6427 GB, free: 7.852 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3162/1.788, allocations: 7.856 MB / 0.6504 GB, free: 94.11 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006338/1.794, allocations: 210.6 kB / 0.6506 GB, free: 94.11 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001313/1.796, allocations: 339.4 kB / 0.6509 GB, free: 94.11 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 543 * 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 (677): * Single equations (assignments): 673 * 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%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001201/1.797, allocations: 410.3 kB / 0.6513 GB, free: 94 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0122/1.809, allocations: 4.026 MB / 0.6552 GB, free: 93.94 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001318/1.811, allocations: 329.3 kB / 0.6556 GB, free: 93.94 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0144/1.825, allocations: 3.748 MB / 0.6592 GB, free: 93.82 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.273e-05/1.825, allocations: 26.28 kB / 0.6592 GB, free: 93.81 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.352e-05/1.825, allocations: 7.922 kB / 0.6593 GB, free: 93.81 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.482e-05/1.825, allocations: 10.5 kB / 0.6593 GB, free: 93.81 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02873/1.854, allocations: 8.158 MB / 0.6672 GB, free: 93.23 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.669e-05/1.854, allocations: 1.062 kB / 0.6672 GB, free: 93.23 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002625/1.857, allocations: 264.1 kB / 0.6675 GB, free: 93.23 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006589/1.863, allocations: 1.194 MB / 0.6686 GB, free: 93.23 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004876/1.864, allocations: 12.16 kB / 0.6687 GB, free: 93.23 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0153/1.879, allocations: 7.034 MB / 0.6755 GB, free: 90.05 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.026e-06/1.879, allocations: 3.906 kB / 0.6755 GB, free: 90.05 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.016/1.895, allocations: 6.598 MB / 0.682 GB, free: 87.49 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002469/1.898, allocations: 0.6457 MB / 0.6826 GB, free: 87.11 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008681/1.899, allocations: 3.719 kB / 0.6826 GB, free: 87.11 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002748/1.902, allocations: 82.86 kB / 0.6827 GB, free: 87.11 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004769/1.902, allocations: 114.5 kB / 0.6828 GB, free: 87.09 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002/1.902, allocations: 50.94 kB / 0.6828 GB, free: 87.08 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.00446/1.907, allocations: 2.055 MB / 0.6849 GB, free: 86.34 MB / 411.1 MB Notification: Performance of sort global known variables: time 9.11e-07/1.907, allocations: 2.219 kB / 0.6849 GB, free: 86.34 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.00666/1.913, allocations: 0.8628 MB / 0.6857 GB, free: 86.34 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 (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.01646/1.93, allocations: 7.507 MB / 0.693 GB, free: 82.87 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.01175/1.942, allocations: 5.007 MB / 0.6979 GB, free: 81.29 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/1.942, allocations: 5.188 kB / 0.6979 GB, free: 81.29 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004858/1.947, allocations: 1.886 MB / 0.6998 GB, free: 80.53 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003428/1.95, allocations: 388 kB / 0.7001 GB, free: 80.38 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02744/1.978, allocations: 9.039 MB / 0.709 GB, free: 77.18 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005927/1.984, allocations: 3.184 MB / 0.7121 GB, free: 75.05 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004103/1.988, allocations: 1.795 MB / 0.7138 GB, free: 73.39 MB / 411.1 MB Notification: Performance of SimCode: time 1.904e-06/1.988, allocations: 3.5 kB / 0.7138 GB, free: 73.39 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.202/6.19, allocations: 92.83 MB / 0.8045 GB, free: 1.75 MB / 427.1 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