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.001081/0.001081, allocations: 179.6 kB / 16.41 MB, free: 5.703 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.46/1.46, allocations: 205.4 MB / 222.6 MB, free: 9.023 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.0006986/0.0006988, allocations: 97.7 kB / 270.9 MB, free: 8.34 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003912/0.0003912, allocations: 12 kB / 327 MB, free: 176 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3036, allocations: 47.57 MB / 374.6 MB, free: 45.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.02786/0.3315, allocations: 34.77 MB / 409.3 MB, free: 14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02063/0.3522, allocations: 8.194 MB / 417.5 MB, free: 5.777 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009055/0.3614, allocations: 167.5 kB / 417.7 MB, free: 5.613 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005586/0.367, allocations: 1.777 MB / 419.5 MB, free: 3.828 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0154/0.3824, allocations: 5.513 MB / 425 MB, free: 14.3 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002139/0.3846, allocations: 0.6358 MB / 425.6 MB, free: 13.66 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.04266/0.4272, allocations: 33.53 MB / 459.1 MB, free: 12.08 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006122/0.4334, allocations: 3.487 MB / 462.6 MB, free: 8.539 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002593/0.4361, allocations: 1.273 MB / 463.9 MB, free: 7.262 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002588/0.4387, allocations: 1.967 MB / 465.9 MB, free: 5.289 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004056/0.4391, allocations: 132 kB / 466 MB, free: 5.16 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001961/0.4411, allocations: 0.9245 MB / 466.9 MB, free: 4.234 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001565/0.4427, allocations: 1.667 MB / 468.6 MB, free: 2.562 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009081/0.4436, allocations: 0.7727 MB / 469.4 MB, free: 1.781 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00552/0.4491, allocations: 5.11 MB / 474.5 MB, free: 12.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.161e-05/0.4491, allocations: 0 / 474.5 MB, free: 12.66 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.4492, allocations: 3.938 kB / 474.5 MB, free: 12.66 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001065/0.4493, allocations: 0 / 474.5 MB, free: 12.66 MB / 362.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.009037/0.4583, allocations: 3.922 MB / 478.4 MB, free: 8.664 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.467e-05/0.4584, allocations: 8.031 kB / 478.4 MB, free: 8.656 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02401/0.4824, allocations: 3.166 MB / 481.6 MB, free: 5.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008473/0.4909, allocations: 3.327 MB / 484.9 MB, free: 2.094 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001569/0.4911, allocations: 201 kB / 485.1 MB, free: 1.895 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005316/0.4916, allocations: 267.7 kB / 485.4 MB, free: 1.633 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01436/0.506, allocations: 8.859 MB / 494.2 MB, free: 8.125 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001261/0.5062, allocations: 55.5 kB / 494.3 MB, free: 8.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003512/0.5065, allocations: 127.9 kB / 494.4 MB, free: 7.945 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003143/0.5097, allocations: 1.766 MB / 496.2 MB, free: 6.176 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2925/0.8022, allocations: 7.764 MB / 0.4921 GB, free: 108.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05593/0.8582, allocations: 36.05 MB / 0.5273 GB, free: 81.01 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008549/0.8668, allocations: 3.812 MB / 0.531 GB, free: 77.38 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002869/0.8698, allocations: 2.161 MB / 0.5332 GB, free: 75.21 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005172/0.8703, allocations: 333.7 kB / 0.5335 GB, free: 74.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.925e-05/0.8704, allocations: 51.5 kB / 0.5335 GB, free: 74.79 MB / 378.7 MB Notification: Performance of pre-optimization done (n=160): time 9.648e-06/0.8705, allocations: 0 / 0.5335 GB, free: 74.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=190): time 0.06089/0.9314, allocations: 21.42 MB / 0.5544 GB, free: 53.28 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001402/0.9316, allocations: 256.6 kB / 0.5547 GB, free: 52.97 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006614/0.9382, allocations: 3.931 MB / 0.5585 GB, free: 49.06 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006145/0.9389, allocations: 61.64 kB / 0.5586 GB, free: 48.99 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001747/0.9406, allocations: 2.778 MB / 0.5613 GB, free: 46.22 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008491/0.9415, allocations: 0.7231 MB / 0.562 GB, free: 45.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002465/0.9417, allocations: 112 kB / 0.5621 GB, free: 45.39 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002723/0.942, allocations: 0.5527 MB / 0.5626 GB, free: 44.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003067/0.9451, allocations: 2.358 MB / 0.5649 GB, free: 42.47 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00488/0.95, allocations: 5.612 MB / 0.5704 GB, free: 35.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004643/0.9547, allocations: 3.574 MB / 0.5739 GB, free: 31.67 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.715e-05/0.9547, allocations: 32 kB / 0.5739 GB, free: 31.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01713/0.9719, allocations: 9.58 MB / 0.5833 GB, free: 22.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.975e-05/0.972, allocations: 52 kB / 0.5834 GB, free: 21.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000121/0.9722, allocations: 116 kB / 0.5835 GB, free: 21.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005295/0.9775, allocations: 2.042 MB / 0.5855 GB, free: 19.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004395/0.9819, allocations: 1.283 MB / 0.5867 GB, free: 18.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01359/0.9955, allocations: 10.53 MB / 0.597 GB, free: 7.887 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006069/1.002, allocations: 339.5 kB / 0.5973 GB, free: 7.555 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001213/1.003, allocations: 346.4 kB / 0.5976 GB, free: 7.219 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 (688): * Single equations (assignments): 684 * 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%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004948/1.008, allocations: 1.939 MB / 0.5995 GB, free: 5.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001321/1.009, allocations: 347.5 kB / 0.5999 GB, free: 4.926 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009526/1.019, allocations: 4.876 MB / 0.6046 GB, free: 36 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.622e-05/1.019, allocations: 20 kB / 0.6047 GB, free: 16 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.898e-05/1.019, allocations: 8 kB / 0.6047 GB, free: 8 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-05/1.019, allocations: 11.97 kB / 0.6047 GB, free: 15.99 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02435/1.043, allocations: 10.04 MB / 0.6145 GB, free: 5.902 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.271e-05/1.043, allocations: 8.016 kB / 0.6145 GB, free: 5.895 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00141/1.045, allocations: 271.5 kB / 0.6147 GB, free: 5.629 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005618/1.05, allocations: 1.838 MB / 0.6165 GB, free: 3.785 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002431/1.051, allocations: 33 kB / 0.6166 GB, free: 3.754 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01584/1.067, allocations: 9.705 MB / 0.6261 GB, free: 9.914 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-05/1.067, allocations: 3.938 kB / 0.6261 GB, free: 9.91 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01567/1.082, allocations: 7.935 MB / 0.6338 GB, free: 1.945 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002923/1.085, allocations: 0.7268 MB / 0.6345 GB, free: 1.195 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001407/1.087, allocations: 32.7 kB / 0.6345 GB, free: 1.164 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00272/1.089, allocations: 135.8 kB / 0.6347 GB, free: 1.031 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004983/1.09, allocations: 117.8 kB / 0.6348 GB, free: 0.918 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001909/1.09, allocations: 53.58 kB / 0.6348 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00682/1.097, allocations: 2.481 MB / 0.6373 GB, free: 14.41 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.097, allocations: 0 / 0.6373 GB, free: 14.41 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007779/1.105, allocations: 1.066 MB / 0.6383 GB, free: 13.34 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 () * 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 {(2,100.0%) 33} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007483/1.106, allocations: 166.7 kB / 0.6385 GB, free: 13.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01204/1.118, allocations: 5.786 MB / 0.6441 GB, free: 7.406 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.218e-05/1.118, allocations: 4.469 kB / 0.6441 GB, free: 7.402 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003875/1.122, allocations: 2.089 MB / 0.6462 GB, free: 5.297 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006137/1.128, allocations: 436.6 kB / 0.6466 GB, free: 4.867 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2845/1.412, allocations: 11.32 MB / 0.6576 GB, free: 142.3 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004136/1.417, allocations: 3.071 MB / 0.6606 GB, free: 141.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001431/1.418, allocations: 282.7 kB / 0.6609 GB, free: 141.5 MB / 426.7 MB Notification: Performance of SimCode: time 1.864e-06/1.418, allocations: 0 / 0.6609 GB, free: 141.5 MB / 426.7 MB Notification: Performance of Templates: time 0.1344/1.552, allocations: 73.57 MB / 0.7327 GB, free: 78.19 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/jenkins/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