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.0007606/0.0007607, allocations: 91.98 kB / 16.65 MB, free: 6.59 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.0008618/0.000862, allocations: 182.9 kB / 17.56 MB, free: 6.203 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.305/1.305, allocations: 223.3 MB / 241.6 MB, free: 184 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002398/0.0002398, allocations: 12.88 kB / 301.4 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08213/0.08239, allocations: 50.41 MB / 351.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.1907/0.2731, allocations: 37.31 MB / 389.1 MB, free: 6.387 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01659/0.2898, allocations: 8.608 MB / 397.7 MB, free: 1.164 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007448/0.2973, allocations: 170.4 kB / 397.9 MB, free: 1.133 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001368/0.2987, allocations: 396.6 kB / 398.3 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004521/0.3032, allocations: 1.747 MB / 400 MB, free: 220 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001442/0.3046, allocations: 0.6806 MB / 400.7 MB, free: 15.78 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008147/0.3128, allocations: 7.205 MB / 407.9 MB, free: 11.95 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005486/0.3183, allocations: 3.879 MB / 411.8 MB, free: 8.555 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002266/0.3206, allocations: 1.148 MB / 413 MB, free: 7.402 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002866/0.3235, allocations: 1.974 MB / 414.9 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005281/0.3241, allocations: 128 kB / 415.1 MB, free: 5.297 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00266/0.3267, allocations: 1.092 MB / 416.1 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001771/0.3285, allocations: 1.683 MB / 417.8 MB, free: 2.516 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001946/0.3305, allocations: 1.876 MB / 419.7 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006561/0.337, allocations: 6.236 MB / 425.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.3371, allocations: 0 / 425.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.3371, allocations: 4 kB / 425.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001548/0.3372, allocations: 0 / 425.9 MB, free: 10.36 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.007914/0.3452, allocations: 3.871 MB / 429.8 MB, free: 6.414 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.3452, allocations: 8.031 kB / 429.8 MB, free: 6.406 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02851/0.3738, allocations: 3.167 MB / 433 MB, free: 3.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007071/0.3809, allocations: 3.257 MB / 436.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001515/0.381, allocations: 200.9 kB / 436.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006487/0.3817, allocations: 271.7 kB / 436.7 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0145/0.3962, allocations: 8.878 MB / 445.6 MB, free: 5.922 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001291/0.3964, allocations: 59.52 kB / 445.6 MB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003475/0.3967, allocations: 127.9 kB / 445.8 MB, free: 5.738 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003115/0.3998, allocations: 1.766 MB / 447.5 MB, free: 3.969 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01418/0.414, allocations: 7.807 MB / 455.3 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03956/0.4536, allocations: 36.06 MB / 491.4 MB, free: 7.02 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008025/0.4617, allocations: 3.809 MB / 495.2 MB, free: 3.07 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002604/0.4643, allocations: 2.161 MB / 497.4 MB, free: 0.8984 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003594/0.4647, allocations: 328.1 kB / 497.7 MB, free: 0.5234 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.341e-05/0.4647, allocations: 59.48 kB / 497.8 MB, free: 464 kB / 398.1 MB Notification: Performance of pre-optimization done (n=160): time 3.637e-06/0.4647, allocations: 0 / 497.8 MB, free: 464 kB / 398.1 MB Notification: Performance of matching and sorting (n=190): time 0.05905/0.5238, allocations: 21.4 MB / 0.507 GB, free: 10.93 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001211/0.5239, allocations: 260.6 kB / 0.5072 GB, free: 10.62 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006628/0.5306, allocations: 3.927 MB / 0.5111 GB, free: 6.707 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005225/0.5311, allocations: 53.7 kB / 0.5111 GB, free: 6.648 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002109/0.5333, allocations: 2.779 MB / 0.5138 GB, free: 3.832 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00108/0.5344, allocations: 0.721 MB / 0.5145 GB, free: 3.102 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001051/0.5354, allocations: 0.4987 MB / 0.515 GB, free: 2.594 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.683e-05/0.5355, allocations: 305.1 kB / 0.5153 GB, free: 2.293 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003918/0.5395, allocations: 2.381 MB / 0.5176 GB, free: 15.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006167/0.5457, allocations: 5.644 MB / 0.5232 GB, free: 8.641 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1787/0.7244, allocations: 8.57 MB / 0.5315 GB, free: 144.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001286/0.7246, allocations: 32.52 kB / 0.5316 GB, free: 144.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01854/0.7431, allocations: 9.624 MB / 0.541 GB, free: 142.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.197e-05/0.7433, allocations: 52.91 kB / 0.541 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001699/0.7434, allocations: 113.5 kB / 0.5411 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006061/0.7495, allocations: 2.025 MB / 0.5431 GB, free: 142.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00417/0.7537, allocations: 1.28 MB / 0.5443 GB, free: 142.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01244/0.7662, allocations: 10.6 MB / 0.5547 GB, free: 137.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004228/0.7704, allocations: 347.8 kB / 0.555 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006697/0.7711, allocations: 335.5 kB / 0.5553 GB, free: 137.3 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.003068/0.7742, allocations: 1.958 MB / 0.5573 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006796/0.7749, allocations: 343.3 kB / 0.5576 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008896/0.7838, allocations: 4.88 MB / 0.5623 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.912e-05/0.7839, allocations: 25.61 kB / 0.5624 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.454e-05/0.7839, allocations: 7.25 kB / 0.5624 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.22e-05/0.7839, allocations: 7.969 kB / 0.5624 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01619/0.8001, allocations: 10.04 MB / 0.5722 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.766e-05/0.8002, allocations: 0 / 0.5722 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001316/0.8015, allocations: 267.6 kB / 0.5724 GB, free: 125.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004868/0.8064, allocations: 1.842 MB / 0.5742 GB, free: 123.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002474/0.8066, allocations: 44.8 kB / 0.5743 GB, free: 123.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01113/0.8178, allocations: 9.706 MB / 0.5838 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.8178, allocations: 0 / 0.5838 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01112/0.8289, allocations: 7.946 MB / 0.5915 GB, free: 105.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009394/0.8299, allocations: 420.3 kB / 0.5919 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004346/0.8303, allocations: 28 kB / 0.592 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001627/0.832, allocations: 143.8 kB / 0.5921 GB, free: 105.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003567/0.8323, allocations: 105.2 kB / 0.5922 GB, free: 105 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001333/0.8325, allocations: 53.16 kB / 0.5922 GB, free: 104.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002939/0.8354, allocations: 2.484 MB / 0.5947 GB, free: 102.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.8354, allocations: 0 / 0.5947 GB, free: 102.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004141/0.8396, allocations: 1.064 MB / 0.5957 GB, free: 101.4 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.0003734/0.84, allocations: 182.3 kB / 0.5959 GB, free: 101.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006703/0.8467, allocations: 5.8 MB / 0.6015 GB, free: 95.43 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.8467, allocations: 0 / 0.6015 GB, free: 95.43 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002299/0.849, allocations: 2.093 MB / 0.6036 GB, free: 93.32 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003087/0.8521, allocations: 450.1 kB / 0.604 GB, free: 92.88 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01246/0.8646, allocations: 11.39 MB / 0.6151 GB, free: 81.45 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002376/0.867, allocations: 3.091 MB / 0.6182 GB, free: 78.32 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003599/0.8706, allocations: 1.816 MB / 0.6199 GB, free: 76.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005828/0.8712, allocations: 235.4 kB / 0.6202 GB, free: 76.27 MB / 446.1 MB Notification: Performance of SimCode: time 7.22e-07/0.8712, allocations: 4 kB / 0.6202 GB, free: 76.27 MB / 446.1 MB Notification: Performance of Templates: time 0.0544/0.9256, allocations: 42.58 MB / 0.6617 GB, free: 33.89 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