Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001569/0.00157, allocations: 180.5 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.707/1.707, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009273/0.0009271, allocations: 74.73 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.645e-05/1.649e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09424/0.09427, allocations: 47.58 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3575/0.4518, allocations: 91.81 MB / 455 MB, free: 3.773 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003026/0.4522, allocations: 84.33 kB / 455.1 MB, free: 3.73 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2205/0.6727, allocations: 81.65 MB / 0.5241 GB, free: 7.5 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.097e-06/0.6728, allocations: 3.984 kB / 0.5241 GB, free: 7.496 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002305/0.673, allocations: 79.98 kB / 0.5242 GB, free: 7.418 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01532/0.6883, allocations: 3.964 MB / 0.5281 GB, free: 3.391 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.536e-05/0.6884, allocations: 8.031 kB / 0.5281 GB, free: 3.383 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3164/1.005, allocations: 6.611 MB / 0.5345 GB, free: 93.59 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02479/1.03, allocations: 5.831 MB / 0.5402 GB, free: 93.24 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004332/1.03, allocations: 116.5 kB / 0.5403 GB, free: 93.24 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00266/1.033, allocations: 215.8 kB / 0.5406 GB, free: 93.24 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01428/1.047, allocations: 5.243 MB / 0.5457 GB, free: 93.21 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01999/1.067, allocations: 8.194 MB / 0.5537 GB, free: 90.8 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003946/1.068, allocations: 63.19 kB / 0.5537 GB, free: 90.8 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001737/1.069, allocations: 26.03 kB / 0.5538 GB, free: 90.8 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001545/1.071, allocations: 0.8946 MB / 0.5546 GB, free: 90.79 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04872/1.12, allocations: 40.69 MB / 0.5944 GB, free: 63.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003726/1.124, allocations: 3.042 MB / 0.5973 GB, free: 61.69 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00198/1.126, allocations: 1.898 MB / 0.5992 GB, free: 60.89 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004145/1.126, allocations: 338.9 kB / 0.5995 GB, free: 60.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.65e-05/1.126, allocations: 47.38 kB / 0.5996 GB, free: 60.54 MB / 410.7 MB Notification: Performance of pre-optimization done (n=160): time 6.091e-06/1.126, allocations: 3.75 kB / 0.5996 GB, free: 60.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=189): time 0.0383/1.164, allocations: 16.83 MB / 0.616 GB, free: 54.13 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001182/1.165, allocations: 258.6 kB / 0.6163 GB, free: 53.84 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007266/1.172, allocations: 3.023 MB / 0.6192 GB, free: 52.59 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004962/1.172, allocations: 25.7 kB / 0.6192 GB, free: 52.56 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002167/1.175, allocations: 2.89 MB / 0.6221 GB, free: 49.93 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001082/1.176, allocations: 0.7 MB / 0.6227 GB, free: 49.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007179/1.176, allocations: 0 / 0.6227 GB, free: 49.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004493/1.177, allocations: 0.5512 MB / 0.6233 GB, free: 48.81 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00274/1.18, allocations: 1.975 MB / 0.6252 GB, free: 47.04 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004167/1.184, allocations: 5.321 MB / 0.6304 GB, free: 40.41 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003841/1.188, allocations: 3.216 MB / 0.6335 GB, free: 37.66 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.422e-05/1.188, allocations: 32 kB / 0.6336 GB, free: 37.63 MB / 410.7 MB Notification: Performance of matching and sorting (n=738) (initialization): time 0.01339/1.201, allocations: 7.728 MB / 0.6411 GB, free: 31.06 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.154e-05/1.201, allocations: 56 kB / 0.6412 GB, free: 31.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001076/1.201, allocations: 120 kB / 0.6413 GB, free: 30.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003424/1.205, allocations: 1.377 MB / 0.6426 GB, free: 29.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004119/1.209, allocations: 1.266 MB / 0.6439 GB, free: 28.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01035/1.219, allocations: 7.858 MB / 0.6515 GB, free: 21.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005224/1.225, allocations: 207.5 kB / 0.6517 GB, free: 21.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001535/1.226, allocations: 347.1 kB / 0.6521 GB, free: 21.41 MB / 410.7 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.002024/1.228, allocations: 408.9 kB / 0.6525 GB, free: 21 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007829/1.236, allocations: 4.02 MB / 0.6564 GB, free: 17.69 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009319/1.237, allocations: 331.7 kB / 0.6567 GB, free: 17.36 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007591/1.245, allocations: 3.747 MB / 0.6604 GB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.198e-05/1.245, allocations: 20 kB / 0.6604 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-05/1.245, allocations: 8 kB / 0.6604 GB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.192e-05/1.245, allocations: 13.33 kB / 0.6604 GB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01845/1.263, allocations: 8.169 MB / 0.6684 GB, free: 7.234 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.566e-05/1.263, allocations: 0 / 0.6684 GB, free: 7.234 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001402/1.265, allocations: 263.7 kB / 0.6686 GB, free: 6.977 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003307/1.268, allocations: 1.195 MB / 0.6698 GB, free: 5.777 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002407/1.268, allocations: 4 kB / 0.6698 GB, free: 5.773 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009651/1.278, allocations: 7.028 MB / 0.6767 GB, free: 14.63 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-05/1.278, allocations: 4 kB / 0.6767 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01144/1.29, allocations: 6.594 MB / 0.6831 GB, free: 7.98 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002313/1.292, allocations: 0.6489 MB / 0.6837 GB, free: 7.309 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001357/1.293, allocations: 7.953 kB / 0.6837 GB, free: 7.301 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002631/1.296, allocations: 83.84 kB / 0.6838 GB, free: 7.219 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004781/1.297, allocations: 113.1 kB / 0.6839 GB, free: 7.105 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000221/1.297, allocations: 44 kB / 0.684 GB, free: 7.062 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005589/1.302, allocations: 2.054 MB / 0.686 GB, free: 5.023 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.31e-07/1.302, allocations: 4 kB / 0.686 GB, free: 5.02 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00745/1.31, allocations: 0.8674 MB / 0.6868 GB, free: 4.156 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 (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.3271/1.637, allocations: 7.5 MB / 0.6942 GB, free: 97.41 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01473/1.652, allocations: 5.002 MB / 0.699 GB, free: 97.26 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.57e-05/1.652, allocations: 1.156 kB / 0.699 GB, free: 97.26 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006771/1.659, allocations: 1.902 MB / 0.7009 GB, free: 97.12 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006014/1.665, allocations: 387 kB / 0.7013 GB, free: 97.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03344/1.698, allocations: 8.6 MB / 0.7097 GB, free: 95.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005174/1.704, allocations: 3.169 MB / 0.7128 GB, free: 94.82 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00502/1.709, allocations: 1.88 MB / 0.7146 GB, free: 94.78 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00281/1.711, allocations: 1.76 MB / 0.7163 GB, free: 94.77 MB / 426.7 MB Notification: Performance of SimCode: time 1.874e-06/1.712, allocations: 0 / 0.7163 GB, free: 94.77 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1248/1.836, allocations: 73.99 MB / 0.7886 GB, free: 55.68 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001641/1.837, allocations: 161.5 kB / 0.7887 GB, free: 55.48 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.87/6.707, allocations: 0 / 0.7887 GB, free: 55.48 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat does not exist to compare? outputFormat=mat