Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_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_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009983/0.0009983, allocations: 175.7 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.334/1.334, allocations: 205.4 MB / 222.9 MB, free: 8.941 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007605/0.0007605, allocations: 80.25 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003181/0.0003181, allocations: 8 kB / 327.5 MB, free: 15.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2145/0.2149, allocations: 47.56 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.02274/0.2376, allocations: 34.78 MB / 409.9 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01528/0.253, allocations: 8.182 MB / 418 MB, free: 5.641 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006615/0.2596, allocations: 167.6 kB / 418.2 MB, free: 5.477 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006206/0.2659, allocations: 1.781 MB / 420 MB, free: 3.688 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0138/0.2797, allocations: 5.533 MB / 425.5 MB, free: 14.14 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002863/0.2826, allocations: 0.6826 MB / 426.2 MB, free: 13.45 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.04153/0.3242, allocations: 33.57 MB / 459.8 MB, free: 11.84 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006412/0.3306, allocations: 3.751 MB / 463.5 MB, free: 8.02 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002544/0.3332, allocations: 1.261 MB / 464.8 MB, free: 6.754 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003283/0.3365, allocations: 1.982 MB / 466.8 MB, free: 4.766 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008787/0.3374, allocations: 128 kB / 466.9 MB, free: 4.641 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002474/0.3399, allocations: 1.061 MB / 468 MB, free: 3.578 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002316/0.3423, allocations: 1.671 MB / 469.6 MB, free: 1.902 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003036/0.3453, allocations: 1.773 MB / 471.4 MB, free: 116 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006043/0.3514, allocations: 5.106 MB / 476.5 MB, free: 11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.3514, allocations: 4 kB / 476.5 MB, free: 10.99 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.477e-06/0.3514, allocations: 0 / 476.5 MB, free: 10.99 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002528/0.3517, allocations: 7.938 kB / 476.5 MB, free: 10.98 MB / 362.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.009012/0.3607, allocations: 3.867 MB / 480.4 MB, free: 7.047 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.3608, allocations: 16.03 kB / 480.4 MB, free: 7.031 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02313/0.3839, allocations: 3.163 MB / 483.6 MB, free: 3.859 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008457/0.3924, allocations: 3.382 MB / 486.9 MB, free: 428 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002168/0.3927, allocations: 204.9 kB / 487.1 MB, free: 220 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001159/0.3939, allocations: 267.8 kB / 487.4 MB, free: 15.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01707/0.411, allocations: 8.859 MB / 496.3 MB, free: 6.445 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002137/0.4112, allocations: 51.5 kB / 496.3 MB, free: 6.395 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009488/0.4122, allocations: 123.9 kB / 496.4 MB, free: 6.273 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003158/0.4154, allocations: 1.766 MB / 498.2 MB, free: 4.508 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1909/0.6063, allocations: 7.767 MB / 0.4941 GB, free: 108.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03809/0.6444, allocations: 36.07 MB / 0.5293 GB, free: 79.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006923/0.6514, allocations: 3.817 MB / 0.5331 GB, free: 75.69 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002226/0.6537, allocations: 2.161 MB / 0.5352 GB, free: 73.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000337/0.654, allocations: 327.7 kB / 0.5355 GB, free: 73.15 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.205e-05/0.6541, allocations: 51.5 kB / 0.5355 GB, free: 73.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=160): time 4.489e-06/0.6541, allocations: 3.531 kB / 0.5355 GB, free: 73.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=190): time 0.04988/0.704, allocations: 21.43 MB / 0.5565 GB, free: 51.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.237e-05/0.7041, allocations: 252.6 kB / 0.5567 GB, free: 51.29 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005345/0.7094, allocations: 3.931 MB / 0.5605 GB, free: 47.37 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003989/0.7099, allocations: 53.7 kB / 0.5606 GB, free: 47.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001189/0.7111, allocations: 2.775 MB / 0.5633 GB, free: 44.54 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006122/0.7117, allocations: 0.7318 MB / 0.564 GB, free: 43.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002472/0.712, allocations: 116 kB / 0.5641 GB, free: 43.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002103/0.7122, allocations: 0.5458 MB / 0.5647 GB, free: 43.15 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002792/0.715, allocations: 2.358 MB / 0.567 GB, free: 40.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003867/0.7188, allocations: 5.616 MB / 0.5724 GB, free: 33.55 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007714/0.7266, allocations: 8.536 MB / 0.5808 GB, free: 23.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.886e-05/0.7267, allocations: 42.25 kB / 0.5808 GB, free: 23.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.0157/0.7424, allocations: 9.574 MB / 0.5902 GB, free: 13.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.511e-05/0.7425, allocations: 52.78 kB / 0.5902 GB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001001/0.7426, allocations: 120 kB / 0.5903 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004859/0.7475, allocations: 2.022 MB / 0.5923 GB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003827/0.7513, allocations: 1.279 MB / 0.5936 GB, free: 10.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01213/0.7635, allocations: 10.53 MB / 0.6038 GB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004662/0.7682, allocations: 338 kB / 0.6042 GB, free: 15.33 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008164/0.769, allocations: 344 kB / 0.6045 GB, free: 15 MB / 394.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.003406/0.7725, allocations: 1.943 MB / 0.6064 GB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000705/0.7732, allocations: 347.5 kB / 0.6067 GB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009111/0.7823, allocations: 4.88 MB / 0.6115 GB, free: 7.801 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.603e-05/0.7824, allocations: 28 kB / 0.6115 GB, free: 7.773 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.655e-05/0.7824, allocations: 8 kB / 0.6115 GB, free: 7.766 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.877e-05/0.7824, allocations: 11.91 kB / 0.6115 GB, free: 7.754 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02042/0.8029, allocations: 10.04 MB / 0.6213 GB, free: 13.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.829e-05/0.803, allocations: 4 kB / 0.6213 GB, free: 13.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00147/0.8044, allocations: 267.6 kB / 0.6216 GB, free: 13.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005307/0.8098, allocations: 1.842 MB / 0.6234 GB, free: 11.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003834/0.8102, allocations: 32.7 kB / 0.6234 GB, free: 11.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01399/0.8242, allocations: 9.692 MB / 0.6329 GB, free: 1.688 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.195e-06/0.8242, allocations: 7.969 kB / 0.6329 GB, free: 1.68 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01408/0.8383, allocations: 7.928 MB / 0.6406 GB, free: 9.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002108/0.8405, allocations: 0.7348 MB / 0.6414 GB, free: 8.973 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001023/0.8415, allocations: 36 kB / 0.6414 GB, free: 8.938 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002203/0.8438, allocations: 136.3 kB / 0.6415 GB, free: 8.805 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004781/0.8443, allocations: 113.6 kB / 0.6416 GB, free: 8.691 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002291/0.8445, allocations: 52.62 kB / 0.6417 GB, free: 8.641 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005091/0.8496, allocations: 2.481 MB / 0.6441 GB, free: 6.18 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.8496, allocations: 0 / 0.6441 GB, free: 6.18 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005874/0.8555, allocations: 1.066 MB / 0.6451 GB, free: 5.117 MB / 426.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.0006934/0.8563, allocations: 172 kB / 0.6453 GB, free: 4.945 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.1761/1.032, allocations: 5.784 MB / 0.651 GB, free: 145.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.826e-06/1.032, allocations: 0 / 0.651 GB, free: 145.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002847/1.035, allocations: 2.089 MB / 0.653 GB, free: 145.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003291/1.039, allocations: 430.4 kB / 0.6534 GB, free: 145.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01622/1.055, allocations: 11.32 MB / 0.6645 GB, free: 140.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002667/1.058, allocations: 3.073 MB / 0.6675 GB, free: 139.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001053/1.059, allocations: 283.2 kB / 0.6677 GB, free: 139.6 MB / 426.7 MB Notification: Performance of SimCode: time 8.22e-07/1.059, allocations: 0 / 0.6677 GB, free: 139.6 MB / 426.7 MB Notification: Performance of Templates: time 0.08404/1.143, allocations: 73.46 MB / 0.7395 GB, free: 71.01 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches