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: 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_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_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 94.95 kB / 16.95 MB, free: 6.891 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.001224/0.001224, allocations: 185.9 kB / 17.84 MB, free: 6.137 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.312/1.312, allocations: 205.4 MB / 224 MB, free: 13.09 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.0004211/0.0004211, allocations: 12 kB / 280.8 MB, free: 3.723 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0875/0.08794, allocations: 47.59 MB / 328.4 MB, free: 4.066 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.03208/0.1201, allocations: 34.77 MB / 363.1 MB, free: 1.188 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01919/0.1393, allocations: 8.182 MB / 371.3 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006227/0.1456, allocations: 167.6 kB / 371.5 MB, free: 8.816 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004939/0.1506, allocations: 1.769 MB / 373.3 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01343/0.164, allocations: 5.518 MB / 378.8 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002617/0.1667, allocations: 0.6319 MB / 379.4 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1985/0.3652, allocations: 33.53 MB / 412.9 MB, free: 4.301 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004937/0.3702, allocations: 3.495 MB / 416.4 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002522/0.3727, allocations: 1.259 MB / 417.7 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002897/0.3756, allocations: 1.98 MB / 419.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005852/0.3763, allocations: 132 kB / 419.8 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00225/0.3785, allocations: 0.9253 MB / 420.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001879/0.3804, allocations: 1.664 MB / 422.4 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009168/0.3814, allocations: 0.7708 MB / 423.2 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005515/0.3869, allocations: 5.106 MB / 428.3 MB, free: 8.738 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.626e-06/0.3869, allocations: 5.516 kB / 428.3 MB, free: 8.734 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3869, allocations: 0 / 428.3 MB, free: 8.734 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001245/0.3871, allocations: 0 / 428.3 MB, free: 8.734 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.008537/0.3956, allocations: 3.929 MB / 432.2 MB, free: 5.074 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.3957, allocations: 8.031 kB / 432.2 MB, free: 5.066 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02187/0.4176, allocations: 3.163 MB / 435.4 MB, free: 1.992 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006987/0.4246, allocations: 3.321 MB / 438.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001394/0.4248, allocations: 198.8 kB / 438.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007375/0.4255, allocations: 278.8 kB / 439.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01402/0.4395, allocations: 8.854 MB / 448 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001577/0.4397, allocations: 50.72 kB / 448.1 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000351/0.4401, allocations: 129.9 kB / 448.2 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002915/0.443, allocations: 1.774 MB / 450 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01368/0.4567, allocations: 7.762 MB / 457.7 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04284/0.4996, allocations: 36.05 MB / 493.8 MB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008268/0.5079, allocations: 3.808 MB / 497.6 MB, free: 9.672 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002903/0.5108, allocations: 2.153 MB / 499.7 MB, free: 7.512 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004282/0.5113, allocations: 329.2 kB / 0.4883 GB, free: 7.141 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.513e-05/0.5114, allocations: 59.52 kB / 0.4884 GB, free: 7.074 MB / 398.1 MB Notification: Performance of pre-optimization done (n=160): time 4.659e-06/0.5114, allocations: 0 / 0.4884 GB, free: 7.074 MB / 398.1 MB Notification: Performance of matching and sorting (n=190): time 0.05827/0.5697, allocations: 21.42 MB / 0.5093 GB, free: 1.598 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001589/0.5699, allocations: 252.6 kB / 0.5096 GB, free: 1.297 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006283/0.5762, allocations: 3.941 MB / 0.5134 GB, free: 13.38 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004538/0.5766, allocations: 49.7 kB / 0.5135 GB, free: 13.32 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002104/0.5788, allocations: 2.779 MB / 0.5162 GB, free: 10.56 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009743/0.5797, allocations: 0.7264 MB / 0.5169 GB, free: 9.844 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003067/0.5801, allocations: 116.6 kB / 0.517 GB, free: 9.73 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003358/0.5804, allocations: 0.5528 MB / 0.5175 GB, free: 9.172 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003487/0.5839, allocations: 2.358 MB / 0.5198 GB, free: 6.809 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005666/0.5896, allocations: 5.62 MB / 0.5253 GB, free: 15.62 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005109/0.5947, allocations: 3.563 MB / 0.5288 GB, free: 12.08 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.086e-05/0.5948, allocations: 32 kB / 0.5288 GB, free: 12.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01798/0.6128, allocations: 9.57 MB / 0.5382 GB, free: 2.469 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001466/0.613, allocations: 60.17 kB / 0.5382 GB, free: 2.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002223/0.6132, allocations: 112 kB / 0.5383 GB, free: 2.301 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005455/0.6187, allocations: 2.042 MB / 0.5403 GB, free: 260 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1718/0.7905, allocations: 1.279 MB / 0.5416 GB, free: 159.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01568/0.8062, allocations: 10.52 MB / 0.5518 GB, free: 156.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004496/0.8108, allocations: 348.8 kB / 0.5522 GB, free: 156.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001/0.8118, allocations: 343.1 kB / 0.5525 GB, free: 156.7 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 (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.00345/0.8153, allocations: 1.947 MB / 0.5544 GB, free: 155.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008072/0.8161, allocations: 347.8 kB / 0.5547 GB, free: 155.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008516/0.8246, allocations: 4.877 MB / 0.5595 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.532e-05/0.8247, allocations: 19.72 kB / 0.5595 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.538e-05/0.8247, allocations: 7.906 kB / 0.5595 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.138e-05/0.8248, allocations: 7.594 kB / 0.5595 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0166/0.8414, allocations: 10.04 MB / 0.5693 GB, free: 150.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-05/0.8414, allocations: 0 / 0.5693 GB, free: 150.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001229/0.8427, allocations: 268.9 kB / 0.5696 GB, free: 150.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004416/0.8471, allocations: 1.847 MB / 0.5714 GB, free: 149.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002716/0.8474, allocations: 32.62 kB / 0.5714 GB, free: 149.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01139/0.8588, allocations: 9.699 MB / 0.5809 GB, free: 140.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.8588, allocations: 11.92 kB / 0.5809 GB, free: 140.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01114/0.87, allocations: 7.926 MB / 0.5887 GB, free: 132.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001549/0.8716, allocations: 0.7229 MB / 0.5894 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008884/0.8725, allocations: 29.33 kB / 0.5894 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001926/0.8744, allocations: 143.8 kB / 0.5895 GB, free: 131.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003659/0.8748, allocations: 120.9 kB / 0.5896 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001809/0.875, allocations: 49.02 kB / 0.5897 GB, free: 131.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003945/0.8789, allocations: 2.481 MB / 0.5921 GB, free: 129.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.879, allocations: 0 / 0.5921 GB, free: 129.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004814/0.8838, allocations: 1.07 MB / 0.5932 GB, free: 128.1 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 {(2,100.0%) 33} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003834/0.8842, allocations: 163.2 kB / 0.5933 GB, free: 128 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008161/0.8924, allocations: 5.798 MB / 0.599 GB, free: 122.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.8924, allocations: 0 / 0.599 GB, free: 122.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002496/0.8949, allocations: 2.089 MB / 0.601 GB, free: 120.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003027/0.8979, allocations: 440.1 kB / 0.6014 GB, free: 119.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01442/0.9124, allocations: 11 MB / 0.6122 GB, free: 108.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002726/0.9152, allocations: 3.103 MB / 0.6152 GB, free: 105.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004194/0.9194, allocations: 1.815 MB / 0.617 GB, free: 103.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007456/0.9201, allocations: 235.4 kB / 0.6172 GB, free: 103.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.213e-06/0.9201, allocations: 0 / 0.6172 GB, free: 103.6 MB / 446.1 MB Notification: Performance of Templates: time 0.06093/0.9811, allocations: 41.81 MB / 0.658 GB, free: 61.83 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (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 & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches