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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009927/0.0009925, allocations: 92.97 kB / 16.95 MB, free: 6.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 183 kB / 17.84 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.605/1.605, allocations: 205.4 MB / 224 MB, free: 13.15 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004345/0.0004348, allocations: 12 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.096/0.09645, allocations: 47.58 MB / 328.5 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.03439/0.1309, allocations: 34.78 MB / 363.2 MB, free: 1.105 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02014/0.1511, allocations: 8.186 MB / 371.4 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007825/0.159, allocations: 171.5 kB / 371.6 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005906/0.1649, allocations: 1.769 MB / 373.4 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01631/0.1813, allocations: 5.514 MB / 378.9 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002818/0.1841, allocations: 0.6396 MB / 379.5 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2498/0.4339, allocations: 33.53 MB / 413 MB, free: 4.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005318/0.4393, allocations: 3.499 MB / 416.5 MB, free: 1.738 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002376/0.4417, allocations: 1.257 MB / 417.8 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00264/0.4444, allocations: 1.978 MB / 419.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004485/0.4448, allocations: 132 kB / 419.9 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001899/0.4467, allocations: 0.9187 MB / 420.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002088/0.4489, allocations: 1.661 MB / 422.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001322/0.4502, allocations: 0.7782 MB / 423.3 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006185/0.4564, allocations: 5.431 MB / 428.7 MB, free: 8.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.4564, allocations: 3.094 kB / 428.7 MB, free: 8.387 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.557e-06/0.4564, allocations: 0 / 428.7 MB, free: 8.387 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001155/0.4566, allocations: 0 / 428.7 MB, free: 8.387 MB / 334.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.01396/0.4705, allocations: 4.168 MB / 432.9 MB, free: 4.523 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.744e-05/0.4706, allocations: 20.02 kB / 432.9 MB, free: 4.504 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002426/0.4731, allocations: 0.6149 MB / 433.5 MB, free: 4.125 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1268/0.5999, allocations: 12.62 MB / 446.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008495/0.6084, allocations: 4.099 MB / 450.2 MB, free: 4.984 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002261/0.6087, allocations: 200.2 kB / 450.4 MB, free: 4.875 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001259/0.61, allocations: 274.5 kB / 450.7 MB, free: 4.695 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01457/0.6245, allocations: 8.726 MB / 459.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000122/0.6247, allocations: 54.83 kB / 459.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003388/0.6251, allocations: 129 kB / 459.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002727/0.6278, allocations: 1.769 MB / 461.3 MB, free: 12.22 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01296/0.6408, allocations: 7.514 MB / 468.9 MB, free: 6.984 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04289/0.6837, allocations: 35.55 MB / 0.4926 GB, free: 3.035 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007929/0.6917, allocations: 3.686 MB / 0.4962 GB, free: 15.22 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002649/0.6944, allocations: 2.026 MB / 0.4982 GB, free: 13.19 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004453/0.6948, allocations: 336.6 kB / 0.4985 GB, free: 12.81 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.705e-05/0.6949, allocations: 47.56 kB / 0.4985 GB, free: 12.76 MB / 414.1 MB Notification: Performance of pre-optimization done (n=160): time 4.759e-06/0.6949, allocations: 0 / 0.4985 GB, free: 12.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=190): time 0.05134/0.7463, allocations: 20.13 MB / 0.5182 GB, free: 8.57 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001343/0.7464, allocations: 259.3 kB / 0.5184 GB, free: 8.266 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005614/0.7521, allocations: 3.955 MB / 0.5223 GB, free: 4.285 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004422/0.7525, allocations: 53.53 kB / 0.5224 GB, free: 4.23 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001988/0.7545, allocations: 2.826 MB / 0.5251 GB, free: 1.418 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001005/0.7556, allocations: 0.7236 MB / 0.5258 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002957/0.7559, allocations: 108 kB / 0.5259 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003314/0.7562, allocations: 0.5373 MB / 0.5265 GB, free: 52 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00323/0.7594, allocations: 2.138 MB / 0.5285 GB, free: 13.91 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005245/0.7647, allocations: 5.382 MB / 0.5338 GB, free: 6.957 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004774/0.7695, allocations: 3.339 MB / 0.5371 GB, free: 3.629 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.012e-05/0.7696, allocations: 32 kB / 0.5371 GB, free: 3.598 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.217/0.9866, allocations: 8.596 MB / 0.5455 GB, free: 159 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001154/0.9868, allocations: 56.41 kB / 0.5455 GB, free: 159 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002113/0.987, allocations: 113.3 kB / 0.5456 GB, free: 159 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004446/0.9914, allocations: 1.527 MB / 0.5471 GB, free: 159 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004528/0.996, allocations: 1.229 MB / 0.5483 GB, free: 159 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01345/1.009, allocations: 9.172 MB / 0.5573 GB, free: 155.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004868/1.014, allocations: 319.2 kB / 0.5576 GB, free: 155.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009599/1.015, allocations: 331.9 kB / 0.5579 GB, free: 155.5 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * 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 (650): * Single equations (assignments): 646 * 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 {(3,88.9%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003631/1.019, allocations: 1.945 MB / 0.5598 GB, free: 154.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007583/1.02, allocations: 353.8 kB / 0.5601 GB, free: 154.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00672/1.026, allocations: 4.136 MB / 0.5642 GB, free: 153.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-05/1.027, allocations: 27.33 kB / 0.5642 GB, free: 153.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/1.027, allocations: 11.67 kB / 0.5642 GB, free: 153.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.862e-05/1.027, allocations: 11.67 kB / 0.5642 GB, free: 153.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0137/1.04, allocations: 9.314 MB / 0.5733 GB, free: 148 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.618e-05/1.04, allocations: 0 / 0.5733 GB, free: 148 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001197/1.042, allocations: 267.6 kB / 0.5736 GB, free: 147.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003211/1.045, allocations: 1.349 MB / 0.5749 GB, free: 146.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002263/1.045, allocations: 28.94 kB / 0.5749 GB, free: 146.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009377/1.054, allocations: 8.321 MB / 0.5831 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/1.054, allocations: 4.031 kB / 0.5831 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00914/1.064, allocations: 7.02 MB / 0.5899 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001649/1.065, allocations: 0.7071 MB / 0.5906 GB, free: 130.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004944/1.066, allocations: 32.55 kB / 0.5906 GB, free: 130.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001385/1.067, allocations: 116.6 kB / 0.5907 GB, free: 130 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003075/1.067, allocations: 105.2 kB / 0.5908 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001302/1.068, allocations: 53.47 kB / 0.5909 GB, free: 129.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003442/1.071, allocations: 2.506 MB / 0.5933 GB, free: 127.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.071, allocations: 3.969 kB / 0.5934 GB, free: 127.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004684/1.076, allocations: 1.017 MB / 0.5943 GB, free: 126.4 MB / 446.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (136): * Single equations (assignments): 132 * 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.008824/1.085, allocations: 7.661 MB / 0.6018 GB, free: 118.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007247/1.092, allocations: 5.342 MB / 0.607 GB, free: 113.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.111e-06/1.092, allocations: 0 / 0.607 GB, free: 113.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002741/1.095, allocations: 2.078 MB / 0.6091 GB, free: 111.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002799/1.097, allocations: 477.6 kB / 0.6095 GB, free: 110.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05337/1.151, allocations: 35.34 MB / 0.644 GB, free: 72.02 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002564/1.153, allocations: 3.099 MB / 0.6471 GB, free: 68.89 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003881/1.157, allocations: 1.827 MB / 0.6489 GB, free: 67.05 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001827/1.159, allocations: 1.757 MB / 0.6506 GB, free: 65.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.513e-06/1.159, allocations: 0 / 0.6506 GB, free: 65.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2937/1.453, allocations: 80.59 MB / 0.7293 GB, free: 149.7 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001481/1.453, allocations: 224.4 kB / 0.7295 GB, free: 149.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.918/5.371, allocations: 0 / 0.7295 GB, free: 149.4 MB / 446.1 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) Environment - environmentSimulation: 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