Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.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 3.2.3+maint.om/package.mo", uses=false) 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 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.DoublePendulumInitTip,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001093/0.001094, allocations: 108.4 kB / 18.34 MB, free: 4.699 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.001021/0.001021, allocations: 190.9 kB / 19.28 MB, free: 3.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.264/1.264, allocations: 205.1 MB / 225.2 MB, free: 12.26 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 51.94 kB / 282.1 MB, free: 2.445 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08128/0.08246, allocations: 46.62 MB / 328.7 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.01293/0.09543, allocations: 12.33 MB / 341.1 MB, free: 7.355 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008114/0.1036, allocations: 4.437 MB / 345.5 MB, free: 2.902 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001059/0.1047, allocations: 83.69 kB / 345.6 MB, free: 2.82 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004749/0.1095, allocations: 2.897 MB / 348.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004032/0.1135, allocations: 2.035 MB / 350.5 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001874/0.1154, allocations: 1.041 MB / 351.5 MB, free: 12.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006195/0.1216, allocations: 5.346 MB / 356.9 MB, free: 7.465 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004315/0.1259, allocations: 4.04 MB / 360.9 MB, free: 3.363 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002273/0.1282, allocations: 1.76 MB / 362.7 MB, free: 1.598 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002884/0.1311, allocations: 2.403 MB / 365.1 MB, free: 15.19 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006661/0.1318, allocations: 384 kB / 365.5 MB, free: 14.81 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002069/0.1339, allocations: 1.248 MB / 366.7 MB, free: 13.56 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001785/0.1357, allocations: 2.194 MB / 368.9 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002196/0.1379, allocations: 2.478 MB / 371.4 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006693/0.1446, allocations: 7.997 MB / 379.4 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1446, allocations: 0 / 379.4 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1446, allocations: 4 kB / 379.4 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.737e-05/0.1447, allocations: 0 / 379.4 MB, free: 0.8438 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1556 * Number of variables: 1556 Notification: Performance of Generate backend data structure: time 0.1367/0.2814, allocations: 5.372 MB / 384.8 MB, free: 50.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.2814, allocations: 10.12 kB / 384.8 MB, free: 50.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02416/0.3056, allocations: 3.191 MB / 388 MB, free: 50.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008732/0.3144, allocations: 3.742 MB / 391.7 MB, free: 47.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001962/0.3146, allocations: 244.7 kB / 391.9 MB, free: 47.74 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008011/0.3154, allocations: 340.8 kB / 392.3 MB, free: 47.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01215/0.3275, allocations: 10.35 MB / 402.6 MB, free: 39.59 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.443e-05/0.3277, allocations: 47.64 kB / 402.7 MB, free: 39.55 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003428/0.328, allocations: 156.7 kB / 402.8 MB, free: 39.39 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00252/0.3305, allocations: 2.026 MB / 404.9 MB, free: 37.36 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01195/0.3425, allocations: 8.907 MB / 413.8 MB, free: 28.44 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03558/0.3781, allocations: 39.63 MB / 453.4 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008405/0.3865, allocations: 4.048 MB / 457.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0026/0.3892, allocations: 2.24 MB / 459.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006517/0.3898, allocations: 0.6439 MB / 460.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.07e-05/0.3899, allocations: 59.5 kB / 460.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=175): time 4.088e-06/0.3899, allocations: 0 / 460.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=210): time 0.05819/0.4481, allocations: 22.95 MB / 483.3 MB, free: 5.359 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000142/0.4483, allocations: 256.6 kB / 483.6 MB, free: 5.055 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005443/0.4537, allocations: 4.267 MB / 487.8 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003844/0.4541, allocations: 53.7 kB / 487.9 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001928/0.4561, allocations: 3.194 MB / 491.1 MB, free: 13.47 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007552/0.4568, allocations: 0.8021 MB / 491.9 MB, free: 12.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001542/0.4584, allocations: 1.285 MB / 493.2 MB, free: 11.36 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.517e-05/0.4585, allocations: 305.3 kB / 493.5 MB, free: 11.06 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003407/0.4619, allocations: 2.554 MB / 496 MB, free: 8.504 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005564/0.4675, allocations: 6.13 MB / 0.4904 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009992/0.4775, allocations: 9.298 MB / 0.4995 GB, free: 5.574 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.076e-05/0.4775, allocations: 36 kB / 0.4995 GB, free: 5.539 MB / 398.1 MB Notification: Performance of matching and sorting (n=819) (initialization): time 0.01915/0.4967, allocations: 10.75 MB / 0.51 GB, free: 10.76 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.923e-05/0.4968, allocations: 59.98 kB / 0.5101 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001011/0.4969, allocations: 124 kB / 0.5102 GB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007088/0.504, allocations: 2.619 MB / 0.5127 GB, free: 7.953 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003994/0.508, allocations: 1.349 MB / 0.5141 GB, free: 6.602 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02346/0.5315, allocations: 18.59 MB / 0.5322 GB, free: 3.586 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00465/0.5362, allocations: 367.4 kB / 0.5326 GB, free: 3.227 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006601/0.5369, allocations: 379.9 kB / 0.5329 GB, free: 2.855 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 565 * Number of states: 0 () * Number of discrete variables: 33 (freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],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 (731): * Single equations (assignments): 725 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,34,87.5%), (3,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,13)} Notification: Performance of prepare postOptimizeDAE: time 0.003032/0.5399, allocations: 2.232 MB / 0.5351 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006489/0.5406, allocations: 379.1 kB / 0.5355 GB, free: 244 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1569/0.6974, allocations: 5.149 MB / 0.5405 GB, free: 143.4 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.224e-05/0.6975, allocations: 21.97 kB / 0.5405 GB, free: 143.4 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.797e-05/0.6976, allocations: 7.594 kB / 0.5405 GB, free: 143.4 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.94e-05/0.6976, allocations: 14.14 kB / 0.5405 GB, free: 143.4 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02091/0.7185, allocations: 11.06 MB / 0.5513 GB, free: 139.5 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.294e-05/0.7186, allocations: 3.938 kB / 0.5513 GB, free: 139.5 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001337/0.7199, allocations: 307.5 kB / 0.5516 GB, free: 139.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004602/0.7245, allocations: 1.851 MB / 0.5534 GB, free: 139.2 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001614/0.7247, allocations: 43.73 kB / 0.5535 GB, free: 139.1 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01106/0.7358, allocations: 10.38 MB / 0.5636 GB, free: 133.8 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.7358, allocations: 0 / 0.5636 GB, free: 133.8 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01082/0.7466, allocations: 8.348 MB / 0.5718 GB, free: 126.7 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001944/0.7486, allocations: 0.769 MB / 0.5725 GB, free: 126.2 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004686/0.7491, allocations: 32.88 kB / 0.5726 GB, free: 126.1 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001587/0.7507, allocations: 143.8 kB / 0.5727 GB, free: 126 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003307/0.751, allocations: 125.1 kB / 0.5728 GB, free: 125.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001479/0.7512, allocations: 58.25 kB / 0.5729 GB, free: 125.8 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002978/0.7541, allocations: 2.688 MB / 0.5755 GB, free: 123.1 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.7541, allocations: 0 / 0.5755 GB, free: 123.1 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00405/0.7582, allocations: 1.21 MB / 0.5767 GB, free: 121.9 MB / 430.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 (157): * Single equations (assignments): 153 * 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,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003749/0.7586, allocations: 168.8 kB / 0.5768 GB, free: 121.8 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00797/0.7666, allocations: 6.678 MB / 0.5834 GB, free: 115.1 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/0.7666, allocations: 2 kB / 0.5834 GB, free: 115.1 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002618/0.7692, allocations: 2.235 MB / 0.5855 GB, free: 112.9 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002783/0.772, allocations: 0.5628 MB / 0.5861 GB, free: 112.4 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01316/0.7852, allocations: 10.73 MB / 0.5966 GB, free: 101.7 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002811/0.788, allocations: 3.527 MB / 0.6 GB, free: 98.18 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003499/0.7916, allocations: 1.924 MB / 0.6019 GB, free: 96.25 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006675/0.7922, allocations: 255.4 kB / 0.6021 GB, free: 96 MB / 430.1 MB Notification: Performance of SimCode: time 8.02e-07/0.7922, allocations: 0 / 0.6021 GB, free: 96 MB / 430.1 MB Notification: Performance of Templates: time 0.06708/0.8593, allocations: 47.66 MB / 0.6487 GB, free: 48.44 MB / 430.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulumInitTip/DoublePendulumInitTip.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches