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.00148/0.00148, allocations: 105.5 kB / 17.73 MB, free: 5.367 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.001669/0.001669, allocations: 192 kB / 18.66 MB, free: 4.445 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.354/1.354, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001237/0.001237, allocations: 51.92 kB / 328.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08006/0.0813, allocations: 46.62 MB / 375.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.1775/0.2589, allocations: 10.47 MB / 385.6 MB, free: 8.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007462/0.2664, allocations: 3.944 MB / 389.6 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001895/0.2684, allocations: 68.47 kB / 389.6 MB, free: 5.582 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004524/0.2729, allocations: 2.211 MB / 391.8 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005534/0.2785, allocations: 1.863 MB / 393.7 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001915/0.2804, allocations: 0.7428 MB / 394.4 MB, free: 3.406 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007803/0.2882, allocations: 4.846 MB / 399.3 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004462/0.2927, allocations: 2.894 MB / 402.2 MB, free: 76 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004332/0.2971, allocations: 1.497 MB / 403.7 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004217/0.3013, allocations: 2.053 MB / 405.7 MB, free: 14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001281/0.3026, allocations: 299.9 kB / 406 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003421/0.3061, allocations: 1.177 MB / 407.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002727/0.3088, allocations: 1.877 MB / 409.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003841/0.3127, allocations: 2.074 MB / 411.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007906/0.3206, allocations: 6.69 MB / 417.8 MB, free: 4.914 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3207, allocations: 4 kB / 417.8 MB, free: 4.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.3207, allocations: 0 / 417.8 MB, free: 4.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.214e-05/0.3208, allocations: 4 kB / 417.8 MB, free: 4.906 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.008482/0.3293, allocations: 4.686 MB / 422.5 MB, free: 152 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.3293, allocations: 12.03 kB / 422.5 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02737/0.3567, allocations: 3.077 MB / 425.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007791/0.3645, allocations: 3.441 MB / 429.1 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000144/0.3647, allocations: 200.9 kB / 429.3 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005979/0.3653, allocations: 271.7 kB / 429.5 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01379/0.3791, allocations: 8.855 MB / 438.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001088/0.3792, allocations: 47.56 kB / 438.4 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003404/0.3796, allocations: 127.9 kB / 438.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003038/0.3826, allocations: 1.774 MB / 440.3 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01308/0.3957, allocations: 7.784 MB / 448.1 MB, free: 5.836 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04072/0.4365, allocations: 35.87 MB / 484 MB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008331/0.4449, allocations: 3.818 MB / 487.8 MB, free: 12.92 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002928/0.4478, allocations: 2.163 MB / 490 MB, free: 10.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004367/0.4483, allocations: 328.2 kB / 490.3 MB, free: 10.37 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.166e-05/0.4483, allocations: 51.55 kB / 490.3 MB, free: 10.31 MB / 414.1 MB Notification: Performance of pre-optimization done (n=160): time 4.539e-06/0.4484, allocations: 0 / 490.3 MB, free: 10.31 MB / 414.1 MB Notification: Performance of matching and sorting (n=190): time 0.05683/0.5052, allocations: 21.45 MB / 0.4998 GB, free: 4.738 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/0.5054, allocations: 252.6 kB / 0.5 GB, free: 4.438 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005596/0.511, allocations: 3.955 MB / 0.5039 GB, free: 0.5 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004279/0.5114, allocations: 53.7 kB / 0.5039 GB, free: 452 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001989/0.5134, allocations: 2.779 MB / 0.5067 GB, free: 13.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008922/0.5143, allocations: 0.7288 MB / 0.5074 GB, free: 12.89 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001548/0.5159, allocations: 1.178 MB / 0.5085 GB, free: 11.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.516, allocations: 309.1 kB / 0.5088 GB, free: 11.39 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003412/0.5194, allocations: 2.381 MB / 0.5111 GB, free: 9.004 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005371/0.5248, allocations: 5.64 MB / 0.5166 GB, free: 1.75 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01014/0.5349, allocations: 8.571 MB / 0.525 GB, free: 7.586 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.323e-05/0.5351, allocations: 32 kB / 0.525 GB, free: 7.555 MB / 462.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01908/0.5542, allocations: 9.625 MB / 0.5344 GB, free: 13.91 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.47e-05/0.5543, allocations: 56 kB / 0.5345 GB, free: 13.86 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000129/0.5544, allocations: 112 kB / 0.5346 GB, free: 13.75 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00541/0.5598, allocations: 2.01 MB / 0.5366 GB, free: 11.73 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004073/0.5639, allocations: 1.291 MB / 0.5378 GB, free: 10.44 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1892/0.7532, allocations: 11.35 MB / 0.5489 GB, free: 144 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004536/0.7578, allocations: 349.4 kB / 0.5492 GB, free: 144 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007055/0.7585, allocations: 343.2 kB / 0.5496 GB, free: 144 MB / 478.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.003335/0.7618, allocations: 1.937 MB / 0.5515 GB, free: 143.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007986/0.7626, allocations: 346.1 kB / 0.5518 GB, free: 143.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01051/0.7732, allocations: 4.889 MB / 0.5566 GB, free: 142.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.244e-05/0.7732, allocations: 21.06 kB / 0.5566 GB, free: 142.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.783e-05/0.7733, allocations: 9.328 kB / 0.5566 GB, free: 142.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.731e-05/0.7733, allocations: 11.33 kB / 0.5566 GB, free: 142.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01858/0.7919, allocations: 10.01 MB / 0.5664 GB, free: 139.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.596e-05/0.7919, allocations: 1.406 kB / 0.5664 GB, free: 139.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001374/0.7933, allocations: 268.3 kB / 0.5666 GB, free: 139.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005274/0.7986, allocations: 1.843 MB / 0.5684 GB, free: 138.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001983/0.7988, allocations: 33.67 kB / 0.5685 GB, free: 138.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01193/0.8108, allocations: 10.41 MB / 0.5786 GB, free: 134.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.8108, allocations: 3.719 kB / 0.5786 GB, free: 134.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01116/0.822, allocations: 7.959 MB / 0.5864 GB, free: 131.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001876/0.8239, allocations: 0.7218 MB / 0.5871 GB, free: 131 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004173/0.8243, allocations: 27.56 kB / 0.5871 GB, free: 131 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001552/0.8259, allocations: 136.4 kB / 0.5873 GB, free: 130.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004083/0.8263, allocations: 110.3 kB / 0.5874 GB, free: 130.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001434/0.8264, allocations: 54.14 kB / 0.5874 GB, free: 130.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003178/0.8296, allocations: 2.504 MB / 0.5899 GB, free: 129.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8296, allocations: 1.094 kB / 0.5899 GB, free: 129.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004884/0.8345, allocations: 1.072 MB / 0.5909 GB, free: 128.7 MB / 478.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.0004192/0.8349, allocations: 167.6 kB / 0.5911 GB, free: 128.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007181/0.8421, allocations: 5.817 MB / 0.5968 GB, free: 122.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.8422, allocations: 0 / 0.5968 GB, free: 122.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002425/0.8446, allocations: 2.092 MB / 0.5988 GB, free: 120.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002767/0.8474, allocations: 475.1 kB / 0.5993 GB, free: 120.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01176/0.8592, allocations: 9.452 MB / 0.6085 GB, free: 110.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002289/0.8615, allocations: 3.107 MB / 0.6115 GB, free: 107.7 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003321/0.8648, allocations: 1.815 MB / 0.6133 GB, free: 105.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006049/0.8654, allocations: 239.4 kB / 0.6135 GB, free: 105.7 MB / 478.1 MB Notification: Performance of SimCode: time 1.032e-06/0.8654, allocations: 0 / 0.6135 GB, free: 105.7 MB / 478.1 MB Notification: Performance of Templates: time 0.06159/0.927, allocations: 42.5 MB / 0.655 GB, free: 63.26 MB / 478.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","/var/lib/jenkins/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