Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001818/0.001818, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002116/0.002117, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001984/0.001984, allocations: 68.05 kB / 307 MB, free: 0.6016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1023, allocations: 50.54 MB / 357.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01266/0.115, allocations: 10.39 MB / 367.9 MB, free: 3.613 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1659/0.2809, allocations: 3.969 MB / 371.9 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001651/0.2826, allocations: 66.97 kB / 372 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004375/0.287, allocations: 2.196 MB / 374.2 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004685/0.2917, allocations: 1.826 MB / 376 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001588/0.2933, allocations: 0.7422 MB / 376.7 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007464/0.3008, allocations: 5.259 MB / 382 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003605/0.3045, allocations: 2.884 MB / 384.9 MB, free: 7.191 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002394/0.3069, allocations: 1.468 MB / 386.3 MB, free: 6.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002496/0.3094, allocations: 2.036 MB / 388.4 MB, free: 5.688 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008991/0.3103, allocations: 299.1 kB / 388.7 MB, free: 5.688 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002676/0.313, allocations: 1.169 MB / 389.8 MB, free: 5.277 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001857/0.3149, allocations: 1.837 MB / 391.7 MB, free: 4.215 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001847/0.3167, allocations: 2.048 MB / 393.7 MB, free: 2.672 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00679/0.3235, allocations: 6.432 MB / 400.1 MB, free: 14.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.3236, allocations: 4 kB / 400.1 MB, free: 14.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3236, allocations: 0 / 400.1 MB, free: 14.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002274/0.3238, allocations: 0 / 400.1 MB, free: 14.32 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.01185/0.3357, allocations: 4.664 MB / 404.8 MB, free: 9.672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.3357, allocations: 8.031 kB / 404.8 MB, free: 9.664 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02744/0.3632, allocations: 3.081 MB / 407.9 MB, free: 6.574 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007763/0.371, allocations: 3.209 MB / 411.1 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001691/0.3712, allocations: 198.2 kB / 411.3 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008541/0.372, allocations: 270.9 kB / 411.6 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01816/0.3902, allocations: 8.872 MB / 420.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001565/0.3904, allocations: 39.66 kB / 420.5 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004418/0.3909, allocations: 127.8 kB / 420.6 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003265/0.3941, allocations: 1.769 MB / 422.4 MB, free: 7.617 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01527/0.4094, allocations: 7.782 MB / 430.2 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04587/0.4553, allocations: 36.02 MB / 466.2 MB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008798/0.4642, allocations: 3.81 MB / 470 MB, free: 6.961 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003006/0.4672, allocations: 2.168 MB / 472.2 MB, free: 4.785 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004532/0.4677, allocations: 336.7 kB / 472.5 MB, free: 4.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.833e-05/0.4678, allocations: 51.56 kB / 472.5 MB, free: 4.348 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 4.068e-06/0.4678, allocations: 0 / 472.5 MB, free: 4.348 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.06126/0.529, allocations: 21.38 MB / 493.9 MB, free: 14.86 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001818/0.5293, allocations: 260.6 kB / 494.2 MB, free: 14.55 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005953/0.5352, allocations: 3.914 MB / 498.1 MB, free: 10.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005211/0.5358, allocations: 53.7 kB / 498.1 MB, free: 10.6 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002249/0.538, allocations: 2.778 MB / 0.4892 GB, free: 7.824 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001098/0.5391, allocations: 0.7264 MB / 0.4899 GB, free: 7.105 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001752/0.5409, allocations: 1.178 MB / 0.491 GB, free: 5.914 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.541, allocations: 305.1 kB / 0.4913 GB, free: 5.613 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003659/0.5447, allocations: 2.385 MB / 0.4937 GB, free: 3.223 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007036/0.5518, allocations: 5.64 MB / 0.4992 GB, free: 11.96 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01192/0.5637, allocations: 8.57 MB / 0.5075 GB, free: 1.812 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001085/0.5639, allocations: 36 kB / 0.5076 GB, free: 1.777 MB / 430.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.02115/0.585, allocations: 9.615 MB / 0.517 GB, free: 8.152 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.422e-05/0.5852, allocations: 55.98 kB / 0.517 GB, free: 8.098 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001452/0.5853, allocations: 112.2 kB / 0.5171 GB, free: 7.988 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005943/0.5913, allocations: 2.037 MB / 0.5191 GB, free: 5.945 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004741/0.5961, allocations: 1.279 MB / 0.5204 GB, free: 4.664 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1909/0.787, allocations: 11.35 MB / 0.5314 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004388/0.7914, allocations: 342.2 kB / 0.5318 GB, free: 134.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008974/0.7924, allocations: 345.3 kB / 0.5321 GB, free: 134.3 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 (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.003142/0.7955, allocations: 1.941 MB / 0.534 GB, free: 133.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007456/0.7963, allocations: 349.6 kB / 0.5343 GB, free: 133.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009379/0.8056, allocations: 4.889 MB / 0.5391 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.62e-05/0.8057, allocations: 20.41 kB / 0.5391 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.797e-05/0.8058, allocations: 10.97 kB / 0.5391 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.758e-05/0.8058, allocations: 12.5 kB / 0.5391 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01568/0.8215, allocations: 10.02 MB / 0.5489 GB, free: 128.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-05/0.8215, allocations: 2.625 kB / 0.5489 GB, free: 128.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001198/0.8227, allocations: 270.8 kB / 0.5492 GB, free: 128.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004614/0.8273, allocations: 1.849 MB / 0.551 GB, free: 128.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000214/0.8276, allocations: 38.55 kB / 0.551 GB, free: 128.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01096/0.8385, allocations: 10.4 MB / 0.5612 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.8386, allocations: 3.562 kB / 0.5612 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01057/0.8492, allocations: 7.951 MB / 0.569 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001099/0.8503, allocations: 406.6 kB / 0.5693 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005074/0.8508, allocations: 35.14 kB / 0.5694 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001615/0.8524, allocations: 135.8 kB / 0.5695 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003872/0.8528, allocations: 112.5 kB / 0.5696 GB, free: 117 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001331/0.853, allocations: 48 kB / 0.5697 GB, free: 116.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002808/0.8558, allocations: 2.48 MB / 0.5721 GB, free: 114.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.8558, allocations: 0 / 0.5721 GB, free: 114.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004804/0.8606, allocations: 1.064 MB / 0.5731 GB, free: 113.4 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 (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.0004564/0.8611, allocations: 166.7 kB / 0.5733 GB, free: 113.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0119/0.873, allocations: 6.867 MB / 0.58 GB, free: 106.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.206e-06/0.873, allocations: 0 / 0.58 GB, free: 106.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002743/0.8758, allocations: 2.103 MB / 0.582 GB, free: 104.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003385/0.8792, allocations: 469.3 kB / 0.5825 GB, free: 103.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01527/0.8945, allocations: 9.523 MB / 0.5918 GB, free: 94.38 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003848/0.8984, allocations: 3.083 MB / 0.5948 GB, free: 91.27 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004663/0.9031, allocations: 1.815 MB / 0.5966 GB, free: 89.45 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009041/0.904, allocations: 239.4 kB / 0.5968 GB, free: 89.21 MB / 446.1 MB Notification: Performance of SimCode: time 9.31e-07/0.904, allocations: 0 / 0.5968 GB, free: 89.21 MB / 446.1 MB Notification: Performance of Templates: time 0.06588/0.9699, allocations: 45.07 MB / 0.6408 GB, free: 44.34 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches