Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.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 4.0.0+maint.om/package.mo", uses=false) 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) 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.DoublePendulumInitTip,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",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.001119/0.001119, allocations: 92.53 kB / 16.3 MB, free: 5.523 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.001139/0.001139, allocations: 184.9 kB / 17.2 MB, free: 5.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 223.2 MB / 241.1 MB, free: 14.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002438/0.0002438, allocations: 8 kB / 300.8 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1048, allocations: 50.41 MB / 351.2 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.2611/0.366, allocations: 43.12 MB / 394.3 MB, free: 2.199 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02919/0.3952, allocations: 10.7 MB / 405 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01397/0.4092, allocations: 222 kB / 405.3 MB, free: 10.88 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008675/0.4179, allocations: 2.146 MB / 407.4 MB, free: 9.602 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02499/0.443, allocations: 6.295 MB / 413.7 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004275/0.4473, allocations: 0.7159 MB / 414.4 MB, free: 4.699 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.07059/0.5179, allocations: 48.25 MB / 462.7 MB, free: 4.555 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006805/0.5247, allocations: 4.603 MB / 467.3 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001924/0.5267, allocations: 1.125 MB / 468.4 MB, free: 14.79 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001845/0.5286, allocations: 1.499 MB / 469.9 MB, free: 13.28 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004084/0.529, allocations: 148 kB / 470 MB, free: 13.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001697/0.5307, allocations: 0.9207 MB / 471 MB, free: 12.21 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001482/0.5322, allocations: 1.714 MB / 472.7 MB, free: 10.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008346/0.533, allocations: 0.8895 MB / 473.6 MB, free: 9.598 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005841/0.5389, allocations: 6.231 MB / 479.8 MB, free: 3.352 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.5389, allocations: 0 / 479.8 MB, free: 3.352 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5389, allocations: 0 / 479.8 MB, free: 3.352 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001722/0.5391, allocations: 4 kB / 479.8 MB, free: 3.348 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1508 * Number of variables: 1508 Notification: Performance of Generate backend data structure: time 0.01181/0.5509, allocations: 4.694 MB / 484.5 MB, free: 14.58 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/0.551, allocations: 16.03 kB / 484.5 MB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001871/0.5529, allocations: 0.7272 MB / 485.2 MB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1554/0.7083, allocations: 14.56 MB / 499.8 MB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009634/0.718, allocations: 3.623 MB / 0.4916 GB, free: 11.57 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001795/0.7182, allocations: 242.2 kB / 0.4918 GB, free: 11.33 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007724/0.719, allocations: 327.8 kB / 0.4922 GB, free: 11.01 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01721/0.7362, allocations: 9.971 MB / 0.5019 GB, free: 404 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001579/0.7364, allocations: 47.59 kB / 0.5019 GB, free: 356 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004343/0.7368, allocations: 151.9 kB / 0.5021 GB, free: 204 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003186/0.74, allocations: 1.963 MB / 0.504 GB, free: 14.23 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01645/0.7565, allocations: 8.414 MB / 0.5122 GB, free: 5.801 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2513/1.008, allocations: 38.45 MB / 0.5498 GB, free: 130.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008599/1.016, allocations: 3.89 MB / 0.5536 GB, free: 129.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006011/1.017, allocations: 0.6449 MB / 0.5542 GB, free: 128.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/1.017, allocations: 55.23 kB / 0.5542 GB, free: 128.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=166): time 4.138e-06/1.017, allocations: 3.219 kB / 0.5543 GB, free: 128.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=201): time 0.05488/1.072, allocations: 21.68 MB / 0.5754 GB, free: 120.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.055e-05/1.072, allocations: 251.4 kB / 0.5757 GB, free: 119.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005086/1.077, allocations: 4.416 MB / 0.58 GB, free: 116.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003159/1.078, allocations: 62.33 kB / 0.58 GB, free: 116.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001438/1.079, allocations: 3.158 MB / 0.5831 GB, free: 113.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006361/1.08, allocations: 0.7637 MB / 0.5839 GB, free: 112.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002162/1.08, allocations: 117.2 kB / 0.584 GB, free: 112.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002382/1.08, allocations: 0.5499 MB / 0.5845 GB, free: 111.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002618/1.083, allocations: 2.248 MB / 0.5867 GB, free: 109.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003646/1.086, allocations: 5.696 MB / 0.5923 GB, free: 102.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003769/1.09, allocations: 3.51 MB / 0.5957 GB, free: 98.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.436e-05/1.09, allocations: 40 kB / 0.5957 GB, free: 98.76 MB / 446.1 MB Notification: Performance of matching and sorting (n=759) (initialization): time 0.01546/1.106, allocations: 9.506 MB / 0.605 GB, free: 89.24 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.456e-05/1.106, allocations: 56 kB / 0.6051 GB, free: 89.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001124/1.106, allocations: 120 kB / 0.6052 GB, free: 89.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005217/1.111, allocations: 2.101 MB / 0.6072 GB, free: 86.96 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003794/1.115, allocations: 1.248 MB / 0.6085 GB, free: 85.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0176/1.133, allocations: 16.46 MB / 0.6245 GB, free: 68.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004777/1.137, allocations: 345.7 kB / 0.6249 GB, free: 68.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009022/1.138, allocations: 348 kB / 0.6252 GB, free: 68.21 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 35 (freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],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 (671): * Single equations (assignments): 665 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 36,(2,100.0%) 12} * Non-linear torn systems: 1 {2 13} Notification: Performance of prepare postOptimizeDAE: time 0.003547/1.142, allocations: 2.158 MB / 0.6273 GB, free: 66.04 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007374/1.143, allocations: 387.1 kB / 0.6277 GB, free: 65.65 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006596/1.149, allocations: 4.286 MB / 0.6319 GB, free: 61.35 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-05/1.149, allocations: 22.58 kB / 0.6319 GB, free: 61.33 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.356e-05/1.149, allocations: 10.62 kB / 0.6319 GB, free: 61.32 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.8e-05/1.149, allocations: 11.97 kB / 0.6319 GB, free: 61.31 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01638/1.166, allocations: 10.12 MB / 0.6418 GB, free: 51.15 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.321e-05/1.166, allocations: 0 / 0.6418 GB, free: 51.15 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001228/1.167, allocations: 291.6 kB / 0.6421 GB, free: 50.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003353/1.17, allocations: 1.355 MB / 0.6434 GB, free: 49.51 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000192/1.171, allocations: 39.56 kB / 0.6434 GB, free: 49.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009591/1.18, allocations: 8.652 MB / 0.6519 GB, free: 40.69 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/1.18, allocations: 3.953 kB / 0.6519 GB, free: 40.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009257/1.19, allocations: 7.368 MB / 0.6591 GB, free: 33.25 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00124/1.191, allocations: 436 kB / 0.6595 GB, free: 32.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000419/1.191, allocations: 37.55 kB / 0.6595 GB, free: 32.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001446/1.193, allocations: 119.8 kB / 0.6596 GB, free: 32.65 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003197/1.193, allocations: 121 kB / 0.6598 GB, free: 32.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001366/1.193, allocations: 53.09 kB / 0.6598 GB, free: 32.48 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003318/1.197, allocations: 2.828 MB / 0.6626 GB, free: 29.65 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.197, allocations: 0 / 0.6626 GB, free: 29.65 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004679/1.201, allocations: 1.14 MB / 0.6637 GB, free: 28.52 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 (147): * Single equations (assignments): 143 * 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 {(5,72.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009368/1.211, allocations: 8.294 MB / 0.6718 GB, free: 20.16 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007966/1.219, allocations: 5.98 MB / 0.6776 GB, free: 14.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.822e-06/1.219, allocations: 4 kB / 0.6776 GB, free: 14.16 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003263/1.222, allocations: 2.211 MB / 0.6798 GB, free: 11.94 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003029/1.225, allocations: 0.5302 MB / 0.6803 GB, free: 11.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2951/1.52, allocations: 122.2 MB / 0.7996 GB, free: 72.58 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003416/1.524, allocations: 3.535 MB / 0.8031 GB, free: 71.25 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004248/1.528, allocations: 1.892 MB / 0.8049 GB, free: 71.09 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002272/1.53, allocations: 2.014 MB / 0.8069 GB, free: 69.45 MB / 462.1 MB Notification: Performance of SimCode: time 1.152e-06/1.53, allocations: 0 / 0.8069 GB, free: 69.45 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3371/1.867, allocations: 91.13 MB / 0.8959 GB, free: 143.9 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001517/1.867, allocations: 240.7 kB / 0.8961 GB, free: 143.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.958/5.826, allocations: 0 / 0.8961 GB, free: 143.7 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat does not exist to compare? outputFormat=mat