Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001485/0.001485, allocations: 175.7 kB / 16.71 MB, free: 4.938 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.21/1.21, allocations: 225.7 MB / 243.2 MB, free: 10.19 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006895/0.0006894, allocations: 91.09 kB / 294.4 MB, free: 9.73 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002351/0.0002352, allocations: 7.938 kB / 354.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1856/0.1858, allocations: 50.42 MB / 404.6 MB, free: 31.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.02259/0.2085, allocations: 34.85 MB / 439.4 MB, free: 12.4 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01722/0.2257, allocations: 11.26 MB / 450.7 MB, free: 468 kB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005191/0.2309, allocations: 167.5 kB / 450.9 MB, free: 300 kB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009311/0.2319, allocations: 390.1 kB / 451.2 MB, free: 15.91 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003359/0.2353, allocations: 1.744 MB / 453 MB, free: 14.16 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00122/0.2365, allocations: 0.6826 MB / 453.7 MB, free: 13.48 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.007194/0.2437, allocations: 7.226 MB / 460.9 MB, free: 6.23 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00528/0.249, allocations: 4.619 MB / 465.5 MB, free: 1.359 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002064/0.2511, allocations: 1.276 MB / 466.8 MB, free: 80 kB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002583/0.2537, allocations: 1.966 MB / 468.8 MB, free: 14.11 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004407/0.2542, allocations: 132 kB / 468.9 MB, free: 13.98 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001816/0.256, allocations: 1.069 MB / 470 MB, free: 12.91 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001428/0.2574, allocations: 1.663 MB / 471.6 MB, free: 11.24 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001657/0.2591, allocations: 1.884 MB / 473.5 MB, free: 9.336 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005553/0.2647, allocations: 6.23 MB / 479.7 MB, free: 3.086 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.2647, allocations: 0 / 479.7 MB, free: 3.086 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.2647, allocations: 0 / 479.7 MB, free: 3.086 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000113/0.2648, allocations: 0 / 479.7 MB, free: 3.086 MB / 346.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.006958/0.2718, allocations: 3.875 MB / 483.6 MB, free: 15.14 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.2719, allocations: 8.031 kB / 483.6 MB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02115/0.293, allocations: 3.171 MB / 486.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006387/0.2994, allocations: 3.257 MB / 490 MB, free: 8.637 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001328/0.2996, allocations: 205 kB / 490.2 MB, free: 8.434 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005573/0.3001, allocations: 267.8 kB / 490.5 MB, free: 8.172 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01131/0.3115, allocations: 8.855 MB / 499.4 MB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.884e-05/0.3116, allocations: 55.58 kB / 499.4 MB, free: 14.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002939/0.3119, allocations: 127.9 kB / 499.5 MB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002574/0.3145, allocations: 1.766 MB / 0.4896 GB, free: 12.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01181/0.3263, allocations: 7.768 MB / 0.4971 GB, free: 4.945 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.179/0.5053, allocations: 36.04 MB / 0.5323 GB, free: 69.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006232/0.5116, allocations: 3.806 MB / 0.5361 GB, free: 67.41 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001812/0.5134, allocations: 2.148 MB / 0.5382 GB, free: 65.37 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002644/0.5137, allocations: 327.8 kB / 0.5385 GB, free: 65 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.338e-05/0.5138, allocations: 63.5 kB / 0.5385 GB, free: 64.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=160): time 3.817e-06/0.5138, allocations: 0 / 0.5385 GB, free: 64.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=190): time 0.04403/0.5578, allocations: 21.39 MB / 0.5594 GB, free: 43.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.798e-05/0.5579, allocations: 252.6 kB / 0.5597 GB, free: 43.17 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003982/0.5619, allocations: 3.903 MB / 0.5635 GB, free: 39.28 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003082/0.5622, allocations: 53.64 kB / 0.5635 GB, free: 39.22 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001106/0.5633, allocations: 2.778 MB / 0.5662 GB, free: 36.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005563/0.5639, allocations: 0.7277 MB / 0.5669 GB, free: 35.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002247/0.5641, allocations: 116 kB / 0.5671 GB, free: 35.62 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.5643, allocations: 0.5536 MB / 0.5676 GB, free: 35.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002531/0.5669, allocations: 2.358 MB / 0.5699 GB, free: 32.69 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00361/0.5705, allocations: 5.616 MB / 0.5754 GB, free: 25.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007556/0.5781, allocations: 8.545 MB / 0.5837 GB, free: 15.33 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.533e-05/0.5781, allocations: 32 kB / 0.5838 GB, free: 15.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01353/0.5917, allocations: 9.581 MB / 0.5931 GB, free: 5.707 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.559e-05/0.5918, allocations: 56 kB / 0.5932 GB, free: 5.652 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-05/0.5919, allocations: 112.9 kB / 0.5933 GB, free: 5.543 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004504/0.5964, allocations: 2.026 MB / 0.5953 GB, free: 3.512 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003339/0.5997, allocations: 1.279 MB / 0.5965 GB, free: 2.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01285/0.6126, allocations: 10.52 MB / 0.6068 GB, free: 7.574 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003905/0.6165, allocations: 352.8 kB / 0.6071 GB, free: 7.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006052/0.6171, allocations: 335.9 kB / 0.6074 GB, free: 6.902 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 (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 {(4,34,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002715/0.6199, allocations: 1.942 MB / 0.6093 GB, free: 4.949 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005941/0.6205, allocations: 343.5 kB / 0.6097 GB, free: 4.609 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008725/0.6292, allocations: 4.88 MB / 0.6144 GB, free: 15.71 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.491e-05/0.6293, allocations: 24 kB / 0.6144 GB, free: 15.69 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.335e-05/0.6293, allocations: 8 kB / 0.6145 GB, free: 15.68 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.237e-05/0.6293, allocations: 11.97 kB / 0.6145 GB, free: 15.67 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01642/0.6458, allocations: 10.03 MB / 0.6243 GB, free: 5.594 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.34e-05/0.6458, allocations: 4 kB / 0.6243 GB, free: 5.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001153/0.647, allocations: 267.6 kB / 0.6245 GB, free: 5.328 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004784/0.6518, allocations: 1.843 MB / 0.6263 GB, free: 3.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00018/0.6519, allocations: 35.94 kB / 0.6264 GB, free: 3.445 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01213/0.6641, allocations: 9.699 MB / 0.6358 GB, free: 9.605 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.6641, allocations: 4.031 kB / 0.6358 GB, free: 9.602 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01174/0.6759, allocations: 7.928 MB / 0.6436 GB, free: 1.648 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000873/0.6768, allocations: 416.4 kB / 0.644 GB, free: 1.219 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004087/0.6772, allocations: 32 kB / 0.644 GB, free: 1.188 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001443/0.6787, allocations: 145 kB / 0.6441 GB, free: 1.047 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003709/0.679, allocations: 109.2 kB / 0.6442 GB, free: 0.9414 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001385/0.6792, allocations: 53.19 kB / 0.6443 GB, free: 0.8906 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00318/0.6824, allocations: 2.453 MB / 0.6467 GB, free: 14.46 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6824, allocations: 0 / 0.6467 GB, free: 14.46 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003892/0.6863, allocations: 1.065 MB / 0.6477 GB, free: 13.39 MB / 442.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 (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.000371/0.6867, allocations: 175.6 kB / 0.6479 GB, free: 13.22 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0081/0.6948, allocations: 5.783 MB / 0.6535 GB, free: 7.453 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/0.6948, allocations: 0 / 0.6535 GB, free: 7.453 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002833/0.6977, allocations: 2.097 MB / 0.6556 GB, free: 5.344 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003064/0.7008, allocations: 456.9 kB / 0.656 GB, free: 4.898 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1657/0.8664, allocations: 11.38 MB / 0.6671 GB, free: 144.3 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003201/0.8697, allocations: 3.091 MB / 0.6702 GB, free: 143.5 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003888/0.8736, allocations: 1.824 MB / 0.6719 GB, free: 143.4 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006356/0.8742, allocations: 233.9 kB / 0.6722 GB, free: 143.4 MB / 442.7 MB Notification: Performance of SimCode: time 1.203e-06/0.8743, allocations: 3.688 kB / 0.6722 GB, free: 143.4 MB / 442.7 MB Notification: Performance of Templates: time 0.05682/0.9311, allocations: 42.59 MB / 0.7138 GB, free: 107.2 MB / 442.7 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","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches