Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 180.5 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.454/1.454, allocations: 223.2 MB / 240.3 MB, free: 10.16 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.000899/0.000899, allocations: 99.92 kB / 291.5 MB, free: 10.72 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003034/0.0003037, allocations: 8 kB / 351.2 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2775/0.2778, allocations: 50.4 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.119/0.3968, allocations: 93.73 MB / 495.3 MB, free: 2.723 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/0.3972, allocations: 91.94 kB / 495.4 MB, free: 2.633 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4461/0.8433, allocations: 84.12 MB / 0.5659 GB, free: 46.83 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.148e-06/0.8434, allocations: 4 kB / 0.5659 GB, free: 46.83 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003586/0.8437, allocations: 72 kB / 0.566 GB, free: 46.76 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01594/0.8597, allocations: 4.32 MB / 0.5702 GB, free: 42.37 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.71e-05/0.8598, allocations: 12.03 kB / 0.5702 GB, free: 42.36 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003456/0.8632, allocations: 0.6634 MB / 0.5709 GB, free: 41.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02427/0.8875, allocations: 6.602 MB / 0.5773 GB, free: 35.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01563/0.9032, allocations: 5.549 MB / 0.5827 GB, free: 29.46 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003244/0.9036, allocations: 271 kB / 0.583 GB, free: 29.19 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002258/0.9059, allocations: 363.7 kB / 0.5834 GB, free: 28.84 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02109/0.927, allocations: 9.103 MB / 0.5922 GB, free: 18.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003886/0.9274, allocations: 59.47 kB / 0.5923 GB, free: 18.76 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001837/0.9293, allocations: 171.9 kB / 0.5925 GB, free: 18.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001116/0.9304, allocations: 0.8962 MB / 0.5933 GB, free: 17.7 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01454/0.945, allocations: 7.592 MB / 0.6008 GB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05117/0.9962, allocations: 42.24 MB / 0.642 GB, free: 14.45 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008264/1.005, allocations: 3.758 MB / 0.6457 GB, free: 10.55 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004677/1.005, allocations: 336 kB / 0.646 GB, free: 10.17 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.186e-05/1.005, allocations: 47.56 kB / 0.646 GB, free: 10.11 MB / 426.7 MB Notification: Performance of pre-optimization done (n=160): time 5.24e-06/1.005, allocations: 3.938 kB / 0.646 GB, free: 10.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=189): time 0.04943/1.055, allocations: 19.4 MB / 0.665 GB, free: 6.516 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001636/1.055, allocations: 256.6 kB / 0.6652 GB, free: 6.211 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005774/1.061, allocations: 3.447 MB / 0.6686 GB, free: 2.738 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004041/1.061, allocations: 57.7 kB / 0.6687 GB, free: 2.676 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2729/1.334, allocations: 2.83 MB / 0.6714 GB, free: 113.9 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001342/1.335, allocations: 0.7162 MB / 0.6721 GB, free: 113.9 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007846/1.336, allocations: 108.1 kB / 0.6722 GB, free: 113.9 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004261/1.336, allocations: 0.536 MB / 0.6727 GB, free: 113.6 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003068/1.34, allocations: 2.087 MB / 0.6748 GB, free: 113.6 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003858/1.343, allocations: 5.319 MB / 0.68 GB, free: 109.4 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0038/1.347, allocations: 3.272 MB / 0.6832 GB, free: 109.4 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.702e-05/1.347, allocations: 36.38 kB / 0.6832 GB, free: 109.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01361/1.361, allocations: 8.417 MB / 0.6914 GB, free: 108.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.888e-05/1.361, allocations: 56.25 kB / 0.6915 GB, free: 108.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001038/1.361, allocations: 111.8 kB / 0.6916 GB, free: 108.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003618/1.365, allocations: 1.384 MB / 0.6929 GB, free: 108.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004043/1.369, allocations: 1.228 MB / 0.6941 GB, free: 108.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01014/1.379, allocations: 8.713 MB / 0.7026 GB, free: 106 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005583/1.385, allocations: 319.3 kB / 0.703 GB, free: 105.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008823/1.386, allocations: 327.6 kB / 0.7033 GB, free: 105.9 MB / 442.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 () * Number of clocked 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.003415/1.389, allocations: 1.948 MB / 0.7052 GB, free: 105.1 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006754/1.39, allocations: 356.8 kB / 0.7055 GB, free: 104.9 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006851/1.396, allocations: 3.913 MB / 0.7093 GB, free: 103.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.738e-05/1.397, allocations: 20.66 kB / 0.7093 GB, free: 103.5 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.498e-05/1.397, allocations: 8.938 kB / 0.7094 GB, free: 103.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.517e-05/1.397, allocations: 8.422 kB / 0.7094 GB, free: 103.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01362/1.41, allocations: 8.893 MB / 0.7181 GB, free: 100.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.197e-05/1.41, allocations: 7.062 kB / 0.7181 GB, free: 100.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/1.411, allocations: 256.9 kB / 0.7183 GB, free: 100.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003134/1.415, allocations: 1.22 MB / 0.7195 GB, free: 99.88 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001385/1.415, allocations: 33.66 kB / 0.7195 GB, free: 99.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00925/1.424, allocations: 7.864 MB / 0.7272 GB, free: 95.16 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.257e-06/1.424, allocations: 0 / 0.7272 GB, free: 95.16 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00882/1.433, allocations: 6.823 MB / 0.7339 GB, free: 89.27 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001528/1.434, allocations: 400.4 kB / 0.7343 GB, free: 88.88 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004402/1.435, allocations: 30.81 kB / 0.7343 GB, free: 88.85 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001487/1.436, allocations: 115.6 kB / 0.7344 GB, free: 88.78 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003666/1.437, allocations: 108.7 kB / 0.7345 GB, free: 88.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001303/1.437, allocations: 47.47 kB / 0.7345 GB, free: 88.67 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003844/1.441, allocations: 2.453 MB / 0.7369 GB, free: 86.64 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.71e-07/1.441, allocations: 0 / 0.7369 GB, free: 86.64 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005152/1.446, allocations: 0.9966 MB / 0.7379 GB, free: 85.65 MB / 442.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 (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.009023/1.455, allocations: 7.748 MB / 0.7455 GB, free: 78.87 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008212/1.463, allocations: 5.186 MB / 0.7505 GB, free: 74.34 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.228e-06/1.463, allocations: 0 / 0.7505 GB, free: 74.34 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002967/1.466, allocations: 1.979 MB / 0.7525 GB, free: 72.61 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002563/1.469, allocations: 443.3 kB / 0.7529 GB, free: 72.23 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.325/1.794, allocations: 112.5 MB / 0.8628 GB, free: 108.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003646/1.797, allocations: 3.177 MB / 0.8659 GB, free: 107.5 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004363/1.802, allocations: 1.822 MB / 0.8676 GB, free: 107.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002275/1.804, allocations: 1.768 MB / 0.8694 GB, free: 107.4 MB / 458.7 MB Notification: Performance of SimCode: time 1.593e-06/1.804, allocations: 0 / 0.8694 GB, free: 107.4 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1182/1.922, allocations: 79.18 MB / 0.9467 GB, free: 51.41 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001388/1.923, allocations: 216.8 kB / 0.9469 GB, free: 51.17 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.513/6.436, allocations: 3.062 kB / 0.9469 GB, free: 51.17 MB / 458.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat does not exist to compare? outputFormat=mat