Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.006894/0.006901, allocations: 182.8 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.588/3.588, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.001658/0.001657, allocations: 94.41 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000677/0.0006774, allocations: 8 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5831/0.5839, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.06736/0.6513, allocations: 32.82 MB / 407.4 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03221/0.6836, allocations: 8.512 MB / 415.9 MB, free: 7.426 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01106/0.6947, allocations: 167.6 kB / 416 MB, free: 7.262 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008322/0.7031, allocations: 1.602 MB / 417.6 MB, free: 5.652 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02844/0.7317, allocations: 4.904 MB / 422.5 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004912/0.7367, allocations: 0.6162 MB / 423.1 MB, free: 124 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.106/0.8428, allocations: 26.25 MB / 449.4 MB, free: 5.84 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01187/0.8547, allocations: 3.491 MB / 452.9 MB, free: 2.297 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00437/0.8592, allocations: 1.04 MB / 453.9 MB, free: 1.254 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004935/0.8642, allocations: 1.402 MB / 455.3 MB, free: 15.85 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001601/0.8659, allocations: 132 kB / 455.5 MB, free: 15.72 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004848/0.8708, allocations: 0.8973 MB / 456.4 MB, free: 14.82 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004221/0.8751, allocations: 1.539 MB / 457.9 MB, free: 13.28 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002562/0.8777, allocations: 0.7882 MB / 458.7 MB, free: 12.48 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01365/0.8915, allocations: 5.414 MB / 464.1 MB, free: 7.055 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.8916, allocations: 8 kB / 464.1 MB, free: 7.047 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.118e-06/0.8916, allocations: 0 / 464.1 MB, free: 7.047 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002596/0.8919, allocations: 0 / 464.1 MB, free: 7.047 MB / 346.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.02881/0.9207, allocations: 4.265 MB / 468.4 MB, free: 2.711 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.463e-05/0.9208, allocations: 12.03 kB / 468.4 MB, free: 2.699 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5611/1.482, allocations: 14.46 MB / 482.8 MB, free: 4.219 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02057/1.503, allocations: 3.719 MB / 486.6 MB, free: 452 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00048/1.503, allocations: 201 kB / 486.8 MB, free: 248 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002211/1.505, allocations: 267.9 kB / 487 MB, free: 15.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03963/1.545, allocations: 8.808 MB / 495.8 MB, free: 6.523 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004119/1.546, allocations: 39.66 kB / 495.9 MB, free: 6.484 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001943/1.548, allocations: 127.9 kB / 496 MB, free: 6.359 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008688/1.556, allocations: 1.77 MB / 497.8 MB, free: 4.586 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5312/2.088, allocations: 7.609 MB / 0.4935 GB, free: 107.9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1469/2.235, allocations: 35.66 MB / 0.5284 GB, free: 79.85 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.031/2.266, allocations: 3.761 MB / 0.532 GB, free: 75.95 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001323/2.267, allocations: 338 kB / 0.5324 GB, free: 75.58 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.966e-05/2.267, allocations: 51.47 kB / 0.5324 GB, free: 75.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=160): time 1.001e-05/2.267, allocations: 1.969 kB / 0.5324 GB, free: 75.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=190): time 0.2134/2.481, allocations: 20.89 MB / 0.5528 GB, free: 54.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002222/2.481, allocations: 252.6 kB / 0.553 GB, free: 54.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02146/2.503, allocations: 4.205 MB / 0.5571 GB, free: 49.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008756/2.503, allocations: 53.7 kB / 0.5572 GB, free: 49.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006791/2.51, allocations: 2.716 MB / 0.5599 GB, free: 47.19 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001984/2.512, allocations: 0.7204 MB / 0.5606 GB, free: 46.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001244/2.514, allocations: 108 kB / 0.5607 GB, free: 46.37 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0009123/2.515, allocations: 0.5459 MB / 0.5612 GB, free: 45.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01014/2.525, allocations: 2.146 MB / 0.5633 GB, free: 43.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01707/2.542, allocations: 5.36 MB / 0.5685 GB, free: 36.69 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01434/2.556, allocations: 3.34 MB / 0.5718 GB, free: 33.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002181/2.557, allocations: 32 kB / 0.5718 GB, free: 33.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.05547/2.612, allocations: 8.457 MB / 0.5801 GB, free: 24.85 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001872/2.613, allocations: 52 kB / 0.5801 GB, free: 24.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003624/2.613, allocations: 120.8 kB / 0.5802 GB, free: 24.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01146/2.624, allocations: 1.527 MB / 0.5817 GB, free: 23.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01093/2.635, allocations: 1.22 MB / 0.5829 GB, free: 21.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03401/2.67, allocations: 9.485 MB / 0.5922 GB, free: 12.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01049/2.68, allocations: 327.5 kB / 0.5925 GB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001843/2.682, allocations: 332 kB / 0.5928 GB, free: 11.66 MB / 378.7 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.008081/2.69, allocations: 1.935 MB / 0.5947 GB, free: 9.719 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001657/2.692, allocations: 351.4 kB / 0.595 GB, free: 9.371 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02031/2.712, allocations: 4.147 MB / 0.5991 GB, free: 5.203 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.827e-05/2.712, allocations: 31.88 kB / 0.5991 GB, free: 5.172 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-05/2.712, allocations: 4 kB / 0.5991 GB, free: 5.168 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.325e-05/2.713, allocations: 11.97 kB / 0.5991 GB, free: 5.156 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04506/2.758, allocations: 9.33 MB / 0.6082 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.632e-05/2.758, allocations: 3.953 kB / 0.6082 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003757/2.762, allocations: 263.6 kB / 0.6085 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01115/2.773, allocations: 1.348 MB / 0.6098 GB, free: 10.15 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007821/2.774, allocations: 32 kB / 0.6098 GB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03561/2.809, allocations: 8.624 MB / 0.6183 GB, free: 1.363 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.538e-05/2.809, allocations: 7.438 kB / 0.6183 GB, free: 1.359 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0399/2.849, allocations: 7.154 MB / 0.6253 GB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004266/2.854, allocations: 0.7188 MB / 0.626 GB, free: 9.398 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001886/2.856, allocations: 35.95 kB / 0.626 GB, free: 9.363 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005026/2.861, allocations: 115.8 kB / 0.6261 GB, free: 9.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001252/2.862, allocations: 109.2 kB / 0.6262 GB, free: 9.145 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004661/2.862, allocations: 51.98 kB / 0.6263 GB, free: 9.094 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.01101/2.874, allocations: 2.702 MB / 0.6289 GB, free: 6.379 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.552e-06/2.874, allocations: 0 / 0.6289 GB, free: 6.379 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01214/2.886, allocations: 1.029 MB / 0.6299 GB, free: 5.355 MB / 410.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 (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.00152/2.887, allocations: 187.8 kB / 0.6301 GB, free: 5.172 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02146/2.909, allocations: 5.342 MB / 0.6353 GB, free: 15.84 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.385e-05/2.909, allocations: 3.938 kB / 0.6353 GB, free: 15.84 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009461/2.918, allocations: 2.066 MB / 0.6373 GB, free: 13.76 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006357/2.925, allocations: 460.3 kB / 0.6378 GB, free: 13.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04489/2.97, allocations: 11.11 MB / 0.6486 GB, free: 2.141 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.43/3.4, allocations: 3.185 MB / 0.6517 GB, free: 140.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002523/3.403, allocations: 280.4 kB / 0.652 GB, free: 140.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.182e-06/3.403, allocations: 3.25 kB / 0.652 GB, free: 140.9 MB / 426.7 MB Notification: Performance of Templates: time 0.2222/3.625, allocations: 71.58 MB / 0.7219 GB, free: 85.3 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches