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.001028/0.001029, allocations: 172.9 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.354/1.354, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0008765/0.0008766, allocations: 86.64 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.754e-05/2.802e-05, allocations: 0 / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08229/0.08234, allocations: 47.57 MB / 370.1 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3117/0.3941, allocations: 92.21 MB / 462.3 MB, free: 1.27 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000202/0.3943, allocations: 85.77 kB / 462.4 MB, free: 1.227 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4084/0.8028, allocations: 83.11 MB / 0.5327 GB, free: 91.14 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.8028, allocations: 0 / 0.5327 GB, free: 91.14 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002555/0.8031, allocations: 75.53 kB / 0.5328 GB, free: 91.14 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.01193/0.815, allocations: 3.968 MB / 0.5367 GB, free: 90.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.8151, allocations: 9.344 kB / 0.5367 GB, free: 90.52 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00156/0.8166, allocations: 0.659 MB / 0.5373 GB, free: 90.45 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02538/0.842, allocations: 6.616 MB / 0.5438 GB, free: 90.18 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01532/0.8574, allocations: 5.842 MB / 0.5495 GB, free: 89.63 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002418/0.8577, allocations: 267.6 kB / 0.5498 GB, free: 89.62 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001606/0.8593, allocations: 372.8 kB / 0.5501 GB, free: 89.61 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01651/0.8758, allocations: 9.039 MB / 0.5589 GB, free: 87.19 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002242/0.8761, allocations: 63.3 kB / 0.559 GB, free: 87.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007986/0.8769, allocations: 174.1 kB / 0.5592 GB, free: 87.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009954/0.8779, allocations: 0.8835 MB / 0.56 GB, free: 87.18 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01273/0.8907, allocations: 7.484 MB / 0.5673 GB, free: 87.15 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03929/0.93, allocations: 42.3 MB / 0.6087 GB, free: 55.37 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006887/0.9369, allocations: 3.74 MB / 0.6123 GB, free: 53.82 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002223/0.9392, allocations: 1.938 MB / 0.6142 GB, free: 53 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003967/0.9396, allocations: 332 kB / 0.6145 GB, free: 52.71 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.9397, allocations: 54.16 kB / 0.6146 GB, free: 52.66 MB / 410.7 MB Notification: Performance of pre-optimization done (n=160): time 4.618e-06/0.9397, allocations: 0 / 0.6146 GB, free: 52.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=189): time 0.04155/0.9812, allocations: 17.21 MB / 0.6314 GB, free: 40.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.535e-05/0.9814, allocations: 252.6 kB / 0.6316 GB, free: 40.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004617/0.986, allocations: 3.443 MB / 0.635 GB, free: 37.41 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003759/0.9864, allocations: 57.7 kB / 0.635 GB, free: 37.35 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001318/0.9877, allocations: 2.844 MB / 0.6378 GB, free: 34.79 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007066/0.9884, allocations: 0.717 MB / 0.6385 GB, free: 34.16 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002285/0.9887, allocations: 108 kB / 0.6386 GB, free: 34.05 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000233/0.9889, allocations: 0.535 MB / 0.6391 GB, free: 33.58 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002445/0.9914, allocations: 2.042 MB / 0.6411 GB, free: 31.74 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003712/0.9951, allocations: 5.291 MB / 0.6463 GB, free: 25.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00375/0.9989, allocations: 3.266 MB / 0.6495 GB, free: 22.31 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.196e-05/0.9989, allocations: 32 kB / 0.6495 GB, free: 22.28 MB / 410.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01329/1.012, allocations: 8.327 MB / 0.6577 GB, free: 15 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.436e-05/1.012, allocations: 55.98 kB / 0.6577 GB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001053/1.012, allocations: 116 kB / 0.6578 GB, free: 14.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00333/1.016, allocations: 1.375 MB / 0.6592 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003674/1.019, allocations: 1.236 MB / 0.6604 GB, free: 12.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009537/1.029, allocations: 8.387 MB / 0.6686 GB, free: 3.699 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004361/1.033, allocations: 315.6 kB / 0.6689 GB, free: 3.391 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008389/1.034, allocations: 330 kB / 0.6692 GB, free: 3.07 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 519 * 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 (653): * Single equations (assignments): 649 * 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 {(2,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001223/1.036, allocations: 0.5128 MB / 0.6697 GB, free: 2.547 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008533/1.036, allocations: 363.4 kB / 0.67 GB, free: 2.188 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00775/1.044, allocations: 3.9 MB / 0.6738 GB, free: 14.28 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-05/1.044, allocations: 24 kB / 0.6738 GB, free: 14.26 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.497e-05/1.044, allocations: 7.984 kB / 0.6739 GB, free: 14.25 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.157e-05/1.044, allocations: 11.97 kB / 0.6739 GB, free: 14.24 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01899/1.063, allocations: 8.895 MB / 0.6826 GB, free: 5.293 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-05/1.063, allocations: 7.938 kB / 0.6826 GB, free: 5.289 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001306/1.065, allocations: 263.6 kB / 0.6828 GB, free: 5.031 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003466/1.068, allocations: 1.212 MB / 0.684 GB, free: 3.816 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002475/1.068, allocations: 39.7 kB / 0.684 GB, free: 3.781 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2305/1.299, allocations: 7.532 MB / 0.6914 GB, free: 94.53 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/1.299, allocations: 5.875 kB / 0.6914 GB, free: 94.53 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01162/1.311, allocations: 6.766 MB / 0.698 GB, free: 93.89 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002208/1.313, allocations: 0.674 MB / 0.6987 GB, free: 93.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000883/1.314, allocations: 35.23 kB / 0.6987 GB, free: 93.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001952/1.316, allocations: 113.2 kB / 0.6988 GB, free: 93.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004604/1.316, allocations: 109.5 kB / 0.6989 GB, free: 93.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001496/1.316, allocations: 47.58 kB / 0.699 GB, free: 93.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004383/1.321, allocations: 2.441 MB / 0.7013 GB, free: 93.59 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.52e-07/1.321, allocations: 0 / 0.7013 GB, free: 93.59 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00534/1.326, allocations: 1.001 MB / 0.7023 GB, free: 93.59 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.009689/1.336, allocations: 7.694 MB / 0.7098 GB, free: 92.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008145/1.344, allocations: 5.12 MB / 0.7148 GB, free: 92.02 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.293e-06/1.344, allocations: 1.094 kB / 0.7148 GB, free: 92.02 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003172/1.347, allocations: 1.956 MB / 0.7167 GB, free: 91.88 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002748/1.35, allocations: 448.3 kB / 0.7172 GB, free: 91.86 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02122/1.371, allocations: 8.832 MB / 0.7258 GB, free: 88.83 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005106/1.377, allocations: 3.185 MB / 0.7289 GB, free: 87.6 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005/1.382, allocations: 1.822 MB / 0.7307 GB, free: 87.56 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002743/1.384, allocations: 1.77 MB / 0.7324 GB, free: 86.14 MB / 426.7 MB Notification: Performance of SimCode: time 1.222e-06/1.384, allocations: 0 / 0.7324 GB, free: 86.14 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1187/1.503, allocations: 79.36 MB / 0.8099 GB, free: 29.76 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001516/1.503, allocations: 194.4 kB / 0.8101 GB, free: 29.53 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.1/5.603, allocations: 0 / 0.8101 GB, free: 29.53 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