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.001099/0.001099, allocations: 103.3 kB / 18.35 MB, free: 4.516 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.001142/0.001142, allocations: 188 kB / 19.29 MB, free: 3.586 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.298/1.298, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.00129/0.00129, allocations: 51.94 kB / 282.1 MB, free: 2.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07894/0.08024, allocations: 46.62 MB / 328.7 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01028/0.09056, allocations: 10.47 MB / 339.2 MB, free: 9.238 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006781/0.09736, allocations: 3.957 MB / 343.2 MB, free: 5.27 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008376/0.09826, allocations: 67.75 kB / 343.2 MB, free: 5.203 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003545/0.1018, allocations: 2.204 MB / 345.4 MB, free: 2.992 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003348/0.1052, allocations: 1.864 MB / 347.3 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001287/0.1065, allocations: 0.7409 MB / 348 MB, free: 388 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005134/0.1116, allocations: 4.85 MB / 352.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002988/0.1146, allocations: 2.901 MB / 355.8 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001774/0.1164, allocations: 1.487 MB / 357.3 MB, free: 7.074 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00224/0.1187, allocations: 2.048 MB / 359.3 MB, free: 5.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004786/0.1192, allocations: 300 kB / 359.6 MB, free: 4.727 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001921/0.1211, allocations: 1.182 MB / 360.8 MB, free: 3.543 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001525/0.1226, allocations: 1.855 MB / 362.6 MB, free: 1.684 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001825/0.1245, allocations: 2.066 MB / 364.7 MB, free: 15.6 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005922/0.1304, allocations: 6.692 MB / 371.4 MB, free: 8.891 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.1304, allocations: 0 / 371.4 MB, free: 8.891 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1304, allocations: 0 / 371.4 MB, free: 8.891 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001162/0.1306, allocations: 4 kB / 371.4 MB, free: 8.887 MB / 318.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.008562/0.1391, allocations: 4.678 MB / 376.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.1392, allocations: 8.031 kB / 376.1 MB, free: 4.129 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02293/0.1621, allocations: 3.085 MB / 379.2 MB, free: 1.035 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1586/0.3208, allocations: 3.436 MB / 382.6 MB, free: 48.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002283/0.3211, allocations: 195.3 kB / 382.8 MB, free: 48.69 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001193/0.3223, allocations: 270.5 kB / 383.1 MB, free: 48.63 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01746/0.3397, allocations: 8.858 MB / 391.9 MB, free: 44.51 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002235/0.34, allocations: 50.53 kB / 392 MB, free: 44.49 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009191/0.3409, allocations: 131.7 kB / 392.1 MB, free: 44.44 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002989/0.3439, allocations: 1.775 MB / 393.9 MB, free: 44.13 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01363/0.3576, allocations: 7.784 MB / 401.7 MB, free: 39.94 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03722/0.3948, allocations: 35.88 MB / 437.5 MB, free: 3.129 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007427/0.4023, allocations: 3.809 MB / 441.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002803/0.4051, allocations: 2.163 MB / 443.5 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000475/0.4056, allocations: 332.1 kB / 443.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.009e-05/0.4057, allocations: 54.94 kB / 443.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of pre-optimization done (n=160): time 5.12e-06/0.4057, allocations: 0 / 443.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of matching and sorting (n=190): time 0.06017/0.4659, allocations: 21.43 MB / 465.3 MB, free: 7.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/0.4661, allocations: 256.6 kB / 465.6 MB, free: 6.699 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00685/0.473, allocations: 3.951 MB / 469.5 MB, free: 2.766 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004003/0.4734, allocations: 53.7 kB / 469.6 MB, free: 2.707 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001765/0.4752, allocations: 2.771 MB / 472.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000814/0.476, allocations: 0.7288 MB / 473.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001506/0.4775, allocations: 1.178 MB / 474.2 MB, free: 13.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.373e-05/0.4776, allocations: 301.1 kB / 474.5 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00322/0.4808, allocations: 2.381 MB / 476.9 MB, free: 11.28 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005033/0.4859, allocations: 5.64 MB / 482.6 MB, free: 4.027 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009293/0.4952, allocations: 8.574 MB / 491.1 MB, free: 9.867 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.865e-05/0.4953, allocations: 36 kB / 491.2 MB, free: 9.832 MB / 382.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.0174/0.5127, allocations: 9.628 MB / 0.4891 GB, free: 192 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.5e-05/0.5128, allocations: 52 kB / 0.4891 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001011/0.5129, allocations: 116.2 kB / 0.4892 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005355/0.5183, allocations: 2.018 MB / 0.4912 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004267/0.5226, allocations: 1.279 MB / 0.4924 GB, free: 12.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01486/0.5375, allocations: 11.36 MB / 0.5035 GB, free: 1.219 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0043/0.5418, allocations: 343.4 kB / 0.5039 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007698/0.5426, allocations: 340 kB / 0.5042 GB, free: 0.5508 MB / 398.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,35,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002906/0.5455, allocations: 1.943 MB / 0.5061 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007361/0.5462, allocations: 355.4 kB / 0.5064 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00891/0.5551, allocations: 4.884 MB / 0.5112 GB, free: 9.344 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.471e-05/0.5552, allocations: 27.92 kB / 0.5112 GB, free: 9.316 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.425e-05/0.5552, allocations: 8 kB / 0.5112 GB, free: 9.309 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.94e-05/0.5552, allocations: 7.969 kB / 0.5112 GB, free: 9.301 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01797/0.5732, allocations: 10.02 MB / 0.521 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.374e-05/0.5733, allocations: 4 kB / 0.521 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001252/0.5745, allocations: 263.6 kB / 0.5213 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005015/0.5795, allocations: 1.846 MB / 0.5231 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001859/0.5798, allocations: 32 kB / 0.5231 GB, free: 13.04 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01286/0.5926, allocations: 10.39 MB / 0.5333 GB, free: 2.504 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.5926, allocations: 4.031 kB / 0.5333 GB, free: 2.5 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1631/0.7557, allocations: 7.948 MB / 0.541 GB, free: 142.8 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002287/0.7581, allocations: 0.726 MB / 0.5417 GB, free: 142.6 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009303/0.759, allocations: 29.64 kB / 0.5418 GB, free: 142.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001948/0.761, allocations: 133.4 kB / 0.5419 GB, free: 142.6 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004153/0.7614, allocations: 119.5 kB / 0.542 GB, free: 142.6 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001506/0.7615, allocations: 46.12 kB / 0.542 GB, free: 142.5 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003692/0.7652, allocations: 2.503 MB / 0.5445 GB, free: 141.7 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.7653, allocations: 3.969 kB / 0.5445 GB, free: 141.7 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00474/0.77, allocations: 1.068 MB / 0.5455 GB, free: 141.6 MB / 430.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,33,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004049/0.7704, allocations: 169.6 kB / 0.5457 GB, free: 141.5 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007703/0.7781, allocations: 5.824 MB / 0.5514 GB, free: 139.4 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/0.7782, allocations: 3.969 kB / 0.5514 GB, free: 139.4 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002453/0.7806, allocations: 2.09 MB / 0.5534 GB, free: 138.6 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002637/0.7833, allocations: 470.7 kB / 0.5539 GB, free: 138.4 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0147/0.798, allocations: 9.443 MB / 0.5631 GB, free: 134.6 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003012/0.801, allocations: 3.093 MB / 0.5661 GB, free: 133.1 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003388/0.8045, allocations: 1.821 MB / 0.5679 GB, free: 132 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006805/0.8052, allocations: 247.7 kB / 0.5681 GB, free: 131.7 MB / 430.1 MB Notification: Performance of SimCode: time 1.102e-06/0.8052, allocations: 0 / 0.5681 GB, free: 131.7 MB / 430.1 MB Notification: Performance of Templates: time 0.05787/0.863, allocations: 40.45 MB / 0.6076 GB, free: 92.12 MB / 430.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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches