Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001688/0.001688, allocations: 194 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 226.5 MB / 244.7 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000754/0.0007539, allocations: 91.94 kB / 296.8 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002158/0.0002158, allocations: 8 kB / 356.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.224, allocations: 51.29 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.02387/0.2479, allocations: 34.76 MB / 442.8 MB, free: 8.84 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01682/0.2648, allocations: 8.213 MB / 451 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005747/0.2706, allocations: 167.6 kB / 451.2 MB, free: 464 kB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005022/0.2757, allocations: 1.769 MB / 453 MB, free: 14.67 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01448/0.2902, allocations: 5.514 MB / 458.5 MB, free: 9.133 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002938/0.2931, allocations: 0.6786 MB / 459.1 MB, free: 8.453 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.2681/0.5612, allocations: 60.87 MB / 0.5078 GB, free: 54.9 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004602/0.5659, allocations: 3.732 MB / 0.5115 GB, free: 54.46 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001801/0.5677, allocations: 1.251 MB / 0.5127 GB, free: 54.46 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002338/0.57, allocations: 1.969 MB / 0.5146 GB, free: 54.46 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004365/0.5705, allocations: 129.5 kB / 0.5147 GB, free: 54.46 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002028/0.5725, allocations: 1.059 MB / 0.5158 GB, free: 54.46 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001452/0.574, allocations: 1.665 MB / 0.5174 GB, free: 54.46 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001684/0.5757, allocations: 1.763 MB / 0.5191 GB, free: 54.43 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004327/0.58, allocations: 5.107 MB / 0.5241 GB, free: 52.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.58, allocations: 0 / 0.5241 GB, free: 52.89 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.5801, allocations: 0 / 0.5241 GB, free: 52.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001685/0.5802, allocations: 4 kB / 0.5241 GB, free: 52.88 MB / 378.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.007183/0.5874, allocations: 3.881 MB / 0.5279 GB, free: 50.49 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.5875, allocations: 10.91 kB / 0.5279 GB, free: 50.49 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02062/0.6081, allocations: 3.174 MB / 0.531 GB, free: 48.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00653/0.6147, allocations: 3.216 MB / 0.5342 GB, free: 46.17 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001216/0.6148, allocations: 192.7 kB / 0.5343 GB, free: 46.06 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007308/0.6156, allocations: 281.8 kB / 0.5346 GB, free: 45.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01192/0.6275, allocations: 8.85 MB / 0.5432 GB, free: 38.86 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001129/0.6276, allocations: 54.91 kB / 0.5433 GB, free: 38.83 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000354/0.628, allocations: 132.1 kB / 0.5434 GB, free: 38.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002372/0.6304, allocations: 1.765 MB / 0.5451 GB, free: 37.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.012/0.6424, allocations: 7.767 MB / 0.5527 GB, free: 31.91 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0327/0.6751, allocations: 36.05 MB / 0.5879 GB, free: 14.97 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007749/0.6829, allocations: 3.817 MB / 0.5917 GB, free: 11.02 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002661/0.6856, allocations: 2.152 MB / 0.5938 GB, free: 8.867 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004036/0.686, allocations: 331.1 kB / 0.5941 GB, free: 8.5 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.266e-05/0.6861, allocations: 57.72 kB / 0.5941 GB, free: 8.434 MB / 394.7 MB Notification: Performance of pre-optimization done (n=160): time 4.929e-06/0.6861, allocations: 0 / 0.5941 GB, free: 8.434 MB / 394.7 MB Notification: Performance of matching and sorting (n=190): time 0.05574/0.7418, allocations: 21.38 MB / 0.615 GB, free: 3.004 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/0.742, allocations: 256.6 kB / 0.6153 GB, free: 2.699 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005781/0.7478, allocations: 3.909 MB / 0.6191 GB, free: 14.81 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004209/0.7482, allocations: 50.41 kB / 0.6191 GB, free: 14.76 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001877/0.7501, allocations: 2.781 MB / 0.6218 GB, free: 12 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008563/0.751, allocations: 0.722 MB / 0.6225 GB, free: 11.28 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003907/0.7514, allocations: 121.8 kB / 0.6227 GB, free: 11.16 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000438/0.7519, allocations: 0.5497 MB / 0.6232 GB, free: 10.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003894/0.7558, allocations: 2.358 MB / 0.6255 GB, free: 8.238 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005568/0.7613, allocations: 5.615 MB / 0.631 GB, free: 1.059 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01005/0.7714, allocations: 8.541 MB / 0.6393 GB, free: 7.082 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001055/0.7716, allocations: 32 kB / 0.6394 GB, free: 7.051 MB / 442.7 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01871/0.7903, allocations: 9.585 MB / 0.6487 GB, free: 13.46 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001236/0.7904, allocations: 56 kB / 0.6488 GB, free: 13.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001737/0.7906, allocations: 112 kB / 0.6489 GB, free: 13.29 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005544/0.7962, allocations: 2.026 MB / 0.6509 GB, free: 11.26 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004199/0.8004, allocations: 1.287 MB / 0.6521 GB, free: 9.969 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01467/0.8151, allocations: 10.52 MB / 0.6624 GB, free: 15.31 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004126/0.8193, allocations: 355.4 kB / 0.6627 GB, free: 14.96 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008779/0.8202, allocations: 332 kB / 0.663 GB, free: 14.64 MB / 474.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.003536/0.8237, allocations: 1.943 MB / 0.6649 GB, free: 12.68 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007856/0.8245, allocations: 347.3 kB / 0.6653 GB, free: 12.34 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009385/0.8339, allocations: 4.882 MB / 0.67 GB, free: 7.441 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.589e-05/0.834, allocations: 20 kB / 0.6701 GB, free: 7.422 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.85e-05/0.834, allocations: 12 kB / 0.6701 GB, free: 7.41 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.082e-05/0.834, allocations: 11.97 kB / 0.6701 GB, free: 7.398 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2234/1.057, allocations: 10.01 MB / 0.6799 GB, free: 171.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.261e-05/1.057, allocations: 2.188 kB / 0.6799 GB, free: 171.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001371/1.059, allocations: 271.5 kB / 0.6801 GB, free: 171.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005123/1.064, allocations: 1.841 MB / 0.6819 GB, free: 171.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003571/1.064, allocations: 32.59 kB / 0.682 GB, free: 171.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01198/1.076, allocations: 9.703 MB / 0.6914 GB, free: 168 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/1.076, allocations: 3.688 kB / 0.6914 GB, free: 168 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01156/1.088, allocations: 7.921 MB / 0.6992 GB, free: 165.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001125/1.089, allocations: 421.3 kB / 0.6996 GB, free: 165.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000645/1.09, allocations: 33.47 kB / 0.6996 GB, free: 165.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001552/1.091, allocations: 136.1 kB / 0.6997 GB, free: 165.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003642/1.092, allocations: 114.6 kB / 0.6998 GB, free: 165 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001363/1.092, allocations: 48.3 kB / 0.6999 GB, free: 165 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003617/1.096, allocations: 2.462 MB / 0.7023 GB, free: 164.2 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.252e-06/1.096, allocations: 0 / 0.7023 GB, free: 164.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00484/1.1, allocations: 1.074 MB / 0.7033 GB, free: 164.1 MB / 474.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.0004636/1.101, allocations: 161.8 kB / 0.7035 GB, free: 164 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007731/1.109, allocations: 5.798 MB / 0.7092 GB, free: 159.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/1.109, allocations: 0 / 0.7092 GB, free: 159.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002482/1.111, allocations: 2.086 MB / 0.7112 GB, free: 157.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003431/1.115, allocations: 453.4 kB / 0.7116 GB, free: 156.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01526/1.13, allocations: 11.29 MB / 0.7227 GB, free: 146.1 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002615/1.133, allocations: 3.071 MB / 0.7257 GB, free: 143 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001174/1.134, allocations: 271.4 kB / 0.7259 GB, free: 142.7 MB / 474.7 MB Notification: Performance of SimCode: time 1.042e-06/1.134, allocations: 0 / 0.7259 GB, free: 142.7 MB / 474.7 MB Notification: Performance of Templates: time 0.08293/1.217, allocations: 73.32 MB / 0.7975 GB, free: 69.48 MB / 474.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches