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.001111/0.001111, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001125/0.001125, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.282/1.282, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 54.23 kB / 300.6 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1099, allocations: 49.44 MB / 350.1 MB, free: 4.453 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.0118/0.1217, allocations: 10.42 MB / 360.5 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00853/0.1303, allocations: 3.964 MB / 364.4 MB, free: 6 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00261/0.133, allocations: 63.81 kB / 364.5 MB, free: 5.938 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004739/0.1378, allocations: 2.2 MB / 366.7 MB, free: 3.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006488/0.1443, allocations: 1.856 MB / 368.6 MB, free: 1.867 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00185/0.1462, allocations: 0.7409 MB / 369.3 MB, free: 1.125 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1553/0.3016, allocations: 5.165 MB / 374.5 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004139/0.3057, allocations: 2.895 MB / 377.4 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002015/0.3078, allocations: 1.474 MB / 378.8 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002551/0.3103, allocations: 2.043 MB / 380.9 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005589/0.3109, allocations: 299.4 kB / 381.2 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001855/0.3128, allocations: 1.186 MB / 382.4 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001557/0.3143, allocations: 1.844 MB / 384.2 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001778/0.3161, allocations: 2.073 MB / 386.3 MB, free: 7.168 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005961/0.3221, allocations: 6.475 MB / 392.7 MB, free: 4.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.3221, allocations: 2.562 kB / 392.7 MB, free: 4.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3221, allocations: 0 / 392.7 MB, free: 4.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001502/0.3223, allocations: 0 / 392.7 MB, free: 4.07 MB / 302.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.00796/0.3303, allocations: 4.673 MB / 397.4 MB, free: 0.918 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.3303, allocations: 10.22 kB / 397.4 MB, free: 0.918 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02533/0.3556, allocations: 3.083 MB / 400.5 MB, free: 15.22 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009465/0.3651, allocations: 3.268 MB / 403.8 MB, free: 12.05 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001769/0.3654, allocations: 201.9 kB / 404 MB, free: 11.89 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001164/0.3665, allocations: 272.3 kB / 404.2 MB, free: 11.65 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01545/0.382, allocations: 8.857 MB / 413.1 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001304/0.3822, allocations: 47.97 kB / 413.2 MB, free: 2.293 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003622/0.3825, allocations: 128.2 kB / 413.3 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002932/0.3855, allocations: 1.768 MB / 415 MB, free: 464 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01564/0.4011, allocations: 7.793 MB / 422.8 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05387/0.4551, allocations: 36.02 MB / 458.9 MB, free: 4.164 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00873/0.4638, allocations: 3.811 MB / 462.7 MB, free: 224 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00275/0.4666, allocations: 2.154 MB / 464.8 MB, free: 14.06 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000406/0.467, allocations: 333.3 kB / 465.1 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.325e-05/0.4671, allocations: 55.5 kB / 465.2 MB, free: 13.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 4.428e-06/0.4671, allocations: 0 / 465.2 MB, free: 13.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.05673/0.5239, allocations: 21.4 MB / 486.6 MB, free: 8.113 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/0.524, allocations: 252.6 kB / 486.8 MB, free: 7.812 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005916/0.5299, allocations: 3.93 MB / 490.8 MB, free: 3.898 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006071/0.5306, allocations: 57.64 kB / 490.8 MB, free: 3.836 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002036/0.5326, allocations: 2.772 MB / 493.6 MB, free: 1.066 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009546/0.5336, allocations: 0.7325 MB / 494.3 MB, free: 348 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001603/0.5352, allocations: 1.169 MB / 495.5 MB, free: 15.16 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.5353, allocations: 309.1 kB / 495.8 MB, free: 14.85 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003308/0.5387, allocations: 2.385 MB / 498.2 MB, free: 12.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005246/0.5439, allocations: 5.64 MB / 0.492 GB, free: 5.219 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009601/0.5535, allocations: 8.572 MB / 0.5004 GB, free: 11.08 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.761e-05/0.5536, allocations: 36 kB / 0.5004 GB, free: 11.05 MB / 430.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01697/0.5706, allocations: 9.626 MB / 0.5098 GB, free: 1.41 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.771e-05/0.5707, allocations: 52 kB / 0.5099 GB, free: 1.359 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001335/0.5709, allocations: 116 kB / 0.51 GB, free: 1.246 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005468/0.5763, allocations: 2.024 MB / 0.512 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004006/0.5804, allocations: 1.279 MB / 0.5132 GB, free: 13.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01568/0.596, allocations: 11.37 MB / 0.5243 GB, free: 2.422 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00444/0.6005, allocations: 350.3 kB / 0.5247 GB, free: 2.082 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005214/0.6011, allocations: 336 kB / 0.525 GB, free: 1.754 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.2073/0.8084, allocations: 1.939 MB / 0.5269 GB, free: 145.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008501/0.8092, allocations: 344.4 kB / 0.5272 GB, free: 145.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0104/0.8197, allocations: 4.89 MB / 0.532 GB, free: 145.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.301e-05/0.8198, allocations: 24.28 kB / 0.532 GB, free: 145.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.057e-05/0.8198, allocations: 8.25 kB / 0.532 GB, free: 145.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.029e-05/0.8198, allocations: 9.156 kB / 0.532 GB, free: 145.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01811/0.838, allocations: 10.02 MB / 0.5418 GB, free: 141.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.767e-05/0.838, allocations: 3.938 kB / 0.5418 GB, free: 141.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001284/0.8393, allocations: 263.8 kB / 0.5421 GB, free: 141.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004922/0.8442, allocations: 1.85 MB / 0.5439 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002434/0.8445, allocations: 33.78 kB / 0.5439 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01158/0.8561, allocations: 10.4 MB / 0.5541 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.8561, allocations: 3.906 kB / 0.5541 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01135/0.8675, allocations: 7.954 MB / 0.5618 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001358/0.8689, allocations: 411.1 kB / 0.5622 GB, free: 132.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005467/0.8694, allocations: 32 kB / 0.5622 GB, free: 132.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001645/0.8711, allocations: 132.7 kB / 0.5624 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003906/0.8715, allocations: 113.1 kB / 0.5625 GB, free: 132.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001428/0.8717, allocations: 55.39 kB / 0.5625 GB, free: 132.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003805/0.8755, allocations: 2.48 MB / 0.565 GB, free: 130.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.8755, allocations: 3.875 kB / 0.565 GB, free: 130.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006123/0.8816, allocations: 1.069 MB / 0.566 GB, free: 129.1 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.0006945/0.8823, allocations: 165.5 kB / 0.5662 GB, free: 128.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009726/0.8921, allocations: 6.879 MB / 0.5729 GB, free: 122.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.8921, allocations: 0 / 0.5729 GB, free: 122.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002645/0.8948, allocations: 2.097 MB / 0.5749 GB, free: 120 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003454/0.8983, allocations: 464 kB / 0.5754 GB, free: 119.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01279/0.9111, allocations: 9.526 MB / 0.5847 GB, free: 110.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002435/0.9136, allocations: 3.091 MB / 0.5877 GB, free: 107 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003918/0.9175, allocations: 1.807 MB / 0.5895 GB, free: 105.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007248/0.9182, allocations: 239.4 kB / 0.5897 GB, free: 105 MB / 446.1 MB Notification: Performance of SimCode: time 1.293e-06/0.9182, allocations: 0 / 0.5897 GB, free: 105 MB / 446.1 MB Notification: Performance of Templates: time 0.06336/0.9816, allocations: 45.16 MB / 0.6338 GB, free: 60.03 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins/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