Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.000772/0.000772, allocations: 92.2 kB / 17.31 MB, free: 6.023 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.0008245/0.0008245, allocations: 175.8 kB / 18.21 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.106/1.106, allocations: 223.3 MB / 242.3 MB, free: 200 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002019/0.0002019, allocations: 9.719 kB / 302.1 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06941/0.06963, allocations: 50.41 MB / 352.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.1443/0.2139, allocations: 37.31 MB / 389.8 MB, free: 5.801 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01302/0.227, allocations: 8.597 MB / 398.4 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003074/0.2301, allocations: 170.7 kB / 398.6 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006777/0.2308, allocations: 394.6 kB / 398.9 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002758/0.2335, allocations: 1.755 MB / 400.7 MB, free: 15.96 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001123/0.2347, allocations: 0.6905 MB / 401.4 MB, free: 15.54 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005957/0.2406, allocations: 7.196 MB / 408.6 MB, free: 11.72 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003974/0.2446, allocations: 3.874 MB / 412.5 MB, free: 8.383 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001123/0.2458, allocations: 1.136 MB / 413.6 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001844/0.2476, allocations: 1.985 MB / 415.6 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002125/0.2479, allocations: 135.9 kB / 415.7 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001434/0.2493, allocations: 1.084 MB / 416.8 MB, free: 4.031 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001168/0.2505, allocations: 1.683 MB / 418.5 MB, free: 2.344 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001257/0.2517, allocations: 1.872 MB / 420.4 MB, free: 464 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003521/0.2553, allocations: 5.101 MB / 425.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2553, allocations: 4 kB / 425.5 MB, free: 11.33 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.2553, allocations: 0 / 425.5 MB, free: 11.33 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.145e-05/0.2553, allocations: 0 / 425.5 MB, free: 11.33 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.005779/0.2611, allocations: 3.875 MB / 429.3 MB, free: 7.387 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.2611, allocations: 8.031 kB / 429.3 MB, free: 7.379 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02457/0.2857, allocations: 3.163 MB / 432.5 MB, free: 4.207 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005305/0.291, allocations: 3.265 MB / 435.8 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001129/0.2912, allocations: 197 kB / 436 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004563/0.2916, allocations: 275.7 kB / 436.2 MB, free: 428 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01031/0.302, allocations: 8.886 MB / 445.1 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.572e-05/0.302, allocations: 39.66 kB / 445.2 MB, free: 6.844 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002977/0.3024, allocations: 131.9 kB / 445.3 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002647/0.305, allocations: 1.77 MB / 447.1 MB, free: 4.941 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.011/0.316, allocations: 7.804 MB / 454.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0319/0.3479, allocations: 36.06 MB / 490.9 MB, free: 7.996 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006973/0.3549, allocations: 3.811 MB / 494.7 MB, free: 4.047 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002294/0.3572, allocations: 2.161 MB / 496.9 MB, free: 1.875 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003361/0.3576, allocations: 332.1 kB / 497.2 MB, free: 1.496 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/0.3576, allocations: 51.56 kB / 497.3 MB, free: 1.434 MB / 398.1 MB Notification: Performance of pre-optimization done (n=160): time 3.346e-06/0.3576, allocations: 4 kB / 497.3 MB, free: 1.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=190): time 0.04904/0.4067, allocations: 21.4 MB / 0.5065 GB, free: 11.91 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/0.4068, allocations: 260.6 kB / 0.5068 GB, free: 11.6 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004416/0.4112, allocations: 3.927 MB / 0.5106 GB, free: 7.691 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000139/0.4114, allocations: 49.7 kB / 0.5106 GB, free: 7.637 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001729/0.4131, allocations: 2.783 MB / 0.5134 GB, free: 4.816 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006025/0.4137, allocations: 0.7288 MB / 0.5141 GB, free: 4.078 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005608/0.4143, allocations: 0.4909 MB / 0.5145 GB, free: 3.578 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.591e-05/0.4144, allocations: 309.1 kB / 0.5148 GB, free: 3.273 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003085/0.4175, allocations: 2.381 MB / 0.5172 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005013/0.4225, allocations: 5.647 MB / 0.5227 GB, free: 9.617 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1424/0.565, allocations: 8.567 MB / 0.531 GB, free: 144.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.882e-05/0.5651, allocations: 35.41 kB / 0.5311 GB, free: 144.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01597/0.5811, allocations: 9.627 MB / 0.5405 GB, free: 142.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.607e-05/0.5812, allocations: 53.83 kB / 0.5405 GB, free: 142.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001552/0.5813, allocations: 112.1 kB / 0.5406 GB, free: 142.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005099/0.5864, allocations: 2.024 MB / 0.5426 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003442/0.5899, allocations: 1.281 MB / 0.5439 GB, free: 142.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01088/0.6008, allocations: 10.6 MB / 0.5542 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003187/0.604, allocations: 346.3 kB / 0.5546 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003829/0.6044, allocations: 339.8 kB / 0.5549 GB, free: 137.7 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.00206/0.6064, allocations: 1.939 MB / 0.5568 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004399/0.6069, allocations: 349 kB / 0.5571 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007412/0.6143, allocations: 4.889 MB / 0.5619 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-05/0.6143, allocations: 21.44 kB / 0.5619 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.6143, allocations: 11.66 kB / 0.5619 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/0.6144, allocations: 7.969 kB / 0.5619 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01202/0.6264, allocations: 10.04 MB / 0.5717 GB, free: 126.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.161e-06/0.6264, allocations: 4 kB / 0.5717 GB, free: 126.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009982/0.6274, allocations: 264.9 kB / 0.572 GB, free: 126 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00414/0.6315, allocations: 1.849 MB / 0.5738 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001095/0.6317, allocations: 31.94 kB / 0.5738 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009344/0.641, allocations: 9.706 MB / 0.5833 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.641, allocations: 4.031 kB / 0.5833 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009122/0.6502, allocations: 7.948 MB / 0.5911 GB, free: 106.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004116/0.6506, allocations: 424.6 kB / 0.5915 GB, free: 106 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003231/0.6509, allocations: 28 kB / 0.5915 GB, free: 106 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001333/0.6522, allocations: 141.1 kB / 0.5916 GB, free: 105.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002576/0.6525, allocations: 113.1 kB / 0.5917 GB, free: 105.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/0.6526, allocations: 48 kB / 0.5918 GB, free: 105.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002223/0.6549, allocations: 2.488 MB / 0.5942 GB, free: 103.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6549, allocations: 0 / 0.5942 GB, free: 103.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003012/0.6579, allocations: 1.067 MB / 0.5952 GB, free: 102.2 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.0002938/0.6582, allocations: 165.6 kB / 0.5954 GB, free: 102 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005465/0.6637, allocations: 5.81 MB / 0.6011 GB, free: 96.22 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.6637, allocations: 0.5 kB / 0.6011 GB, free: 96.22 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001993/0.6657, allocations: 2.095 MB / 0.6031 GB, free: 94.12 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002342/0.668, allocations: 440.4 kB / 0.6035 GB, free: 93.69 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009682/0.6777, allocations: 11.72 MB / 0.615 GB, free: 81.92 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002079/0.6798, allocations: 3.063 MB / 0.618 GB, free: 78.82 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006359/0.6805, allocations: 275.4 kB / 0.6182 GB, free: 78.55 MB / 446.1 MB Notification: Performance of SimCode: time 5.91e-07/0.6805, allocations: 4 kB / 0.6183 GB, free: 78.55 MB / 446.1 MB Notification: Performance of Templates: time 0.05725/0.7377, allocations: 73.12 MB / 0.6897 GB, free: 5.488 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches