Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.DoublePendulumInitTip,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.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_4.0.0_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.001403/0.001403, allocations: 111.7 kB / 17.71 MB, free: 5.383 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.001488/0.001488, allocations: 187.7 kB / 18.64 MB, free: 4.461 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.326/1.326, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001002/0.001002, allocations: 51.91 kB / 351.9 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2693, allocations: 49.43 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.01239/0.2817, allocations: 11.91 MB / 413.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008405/0.2901, allocations: 4.347 MB / 417.6 MB, free: 8.547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001895/0.2921, allocations: 83.69 kB / 417.7 MB, free: 8.465 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004997/0.2972, allocations: 2.885 MB / 420.6 MB, free: 5.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004394/0.3016, allocations: 1.983 MB / 422.6 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002037/0.3036, allocations: 1.029 MB / 423.6 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006712/0.3103, allocations: 5.563 MB / 429.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004199/0.3146, allocations: 3.989 MB / 433.1 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002661/0.3173, allocations: 1.721 MB / 434.9 MB, free: 7.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002965/0.3203, allocations: 2.301 MB / 437.2 MB, free: 4.891 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007764/0.321, allocations: 368 kB / 437.5 MB, free: 4.531 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002152/0.3232, allocations: 1.256 MB / 438.8 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002001/0.3252, allocations: 2.12 MB / 440.9 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00275/0.328, allocations: 2.4 MB / 443.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007549/0.3356, allocations: 7.714 MB / 451 MB, free: 6.996 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.3356, allocations: 0 / 451 MB, free: 6.996 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3356, allocations: 3.938 kB / 451 MB, free: 6.992 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002061/0.3358, allocations: 0 / 451 MB, free: 6.992 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1508 * Number of variables: 1508 Notification: Performance of Generate backend data structure: time 0.01163/0.3475, allocations: 5.247 MB / 456.3 MB, free: 1.672 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.027e-05/0.3475, allocations: 12.03 kB / 456.3 MB, free: 1.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02586/0.3734, allocations: 3.17 MB / 459.5 MB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008166/0.3816, allocations: 3.602 MB / 463.1 MB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002069/0.3819, allocations: 238.2 kB / 463.3 MB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001237/0.3831, allocations: 327.7 kB / 463.6 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01659/0.3997, allocations: 10.03 MB / 473.6 MB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001301/0.3999, allocations: 51.5 kB / 473.7 MB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004334/0.4003, allocations: 151.8 kB / 473.8 MB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003248/0.4036, allocations: 1.955 MB / 475.8 MB, free: 13.44 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01571/0.4193, allocations: 8.594 MB / 484.4 MB, free: 4.828 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0455/0.4648, allocations: 38.64 MB / 0.5108 GB, free: 13.06 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008418/0.4733, allocations: 3.95 MB / 0.5146 GB, free: 8.965 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002703/0.476, allocations: 2.193 MB / 0.5168 GB, free: 6.762 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006443/0.4767, allocations: 0.6477 MB / 0.5174 GB, free: 6.004 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.939e-05/0.4768, allocations: 63.48 kB / 0.5175 GB, free: 5.934 MB / 446.1 MB Notification: Performance of pre-optimization done (n=166): time 4.188e-06/0.4768, allocations: 0 / 0.5175 GB, free: 5.934 MB / 446.1 MB Notification: Performance of matching and sorting (n=201): time 0.2596/0.7364, allocations: 22.58 MB / 0.5395 GB, free: 129.6 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001149/0.7366, allocations: 261.8 kB / 0.5398 GB, free: 129.3 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005745/0.7423, allocations: 4.176 MB / 0.5438 GB, free: 128.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004856/0.7428, allocations: 56.73 kB / 0.5439 GB, free: 128.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001521/0.7443, allocations: 3.116 MB / 0.5469 GB, free: 126.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007254/0.7451, allocations: 0.7739 MB / 0.5477 GB, free: 125.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001416/0.7465, allocations: 1.25 MB / 0.5489 GB, free: 125.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.784e-05/0.7466, allocations: 302.6 kB / 0.5492 GB, free: 125 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002825/0.7494, allocations: 2.486 MB / 0.5516 GB, free: 124.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003917/0.7533, allocations: 5.979 MB / 0.5575 GB, free: 118.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007584/0.7609, allocations: 9.071 MB / 0.5663 GB, free: 111.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.189e-05/0.761, allocations: 33.78 kB / 0.5664 GB, free: 111.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=797) (initialization): time 0.01677/0.7778, allocations: 10.54 MB / 0.5766 GB, free: 101.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.737e-05/0.7779, allocations: 62.41 kB / 0.5767 GB, free: 101.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-05/0.778, allocations: 124 kB / 0.5768 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006389/0.7844, allocations: 2.603 MB / 0.5794 GB, free: 98.71 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00406/0.7884, allocations: 1.31 MB / 0.5806 GB, free: 97.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01883/0.8073, allocations: 18.61 MB / 0.5988 GB, free: 78.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004525/0.8119, allocations: 371.3 kB / 0.5992 GB, free: 78.04 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007595/0.8126, allocations: 364 kB / 0.5995 GB, free: 77.68 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 35 (freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,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 (709): * Single equations (assignments): 703 * 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 {(3,35,100.0%), (3,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,13)} Notification: Performance of prepare postOptimizeDAE: time 0.00271/0.8154, allocations: 2.161 MB / 0.6016 GB, free: 75.52 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006376/0.816, allocations: 379.1 kB / 0.602 GB, free: 75.14 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008063/0.8241, allocations: 5.022 MB / 0.6069 GB, free: 70.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-05/0.8241, allocations: 24 kB / 0.6069 GB, free: 70.07 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.335e-05/0.8241, allocations: 11.56 kB / 0.6069 GB, free: 70.07 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.169e-05/0.8242, allocations: 9.047 kB / 0.6069 GB, free: 70.06 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01583/0.84, allocations: 10.79 MB / 0.6175 GB, free: 59.23 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.081e-05/0.8401, allocations: 0 / 0.6175 GB, free: 59.23 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001343/0.8414, allocations: 291.7 kB / 0.6178 GB, free: 58.94 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004565/0.846, allocations: 1.854 MB / 0.6196 GB, free: 57.08 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002833/0.8463, allocations: 28 kB / 0.6196 GB, free: 57.05 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01095/0.8572, allocations: 10.38 MB / 0.6297 GB, free: 46.52 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.8573, allocations: 11.95 kB / 0.6297 GB, free: 46.51 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01096/0.8683, allocations: 8.163 MB / 0.6377 GB, free: 38.32 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000976/0.8693, allocations: 436.1 kB / 0.6381 GB, free: 37.87 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004657/0.8697, allocations: 32 kB / 0.6382 GB, free: 37.84 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001598/0.8714, allocations: 139.8 kB / 0.6383 GB, free: 37.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003546/0.8717, allocations: 128.8 kB / 0.6384 GB, free: 37.57 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000131/0.8719, allocations: 48 kB / 0.6385 GB, free: 37.53 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00311/0.875, allocations: 2.623 MB / 0.641 GB, free: 34.89 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.875, allocations: 0 / 0.641 GB, free: 34.89 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004696/0.8797, allocations: 1.181 MB / 0.6422 GB, free: 33.72 MB / 462.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 (147): * Single equations (assignments): 143 * 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.0004548/0.8802, allocations: 172.8 kB / 0.6423 GB, free: 33.55 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008028/0.8882, allocations: 6.517 MB / 0.6487 GB, free: 27.02 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.8882, allocations: 0 / 0.6487 GB, free: 27.02 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002365/0.8906, allocations: 2.151 MB / 0.6508 GB, free: 24.86 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002944/0.8936, allocations: 0.5721 MB / 0.6514 GB, free: 24.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01434/0.9079, allocations: 10.81 MB / 0.6619 GB, free: 13.46 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00286/0.9108, allocations: 3.418 MB / 0.6653 GB, free: 10 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001011/0.9119, allocations: 287.4 kB / 0.6655 GB, free: 9.723 MB / 462.1 MB Notification: Performance of SimCode: time 1.202e-06/0.9119, allocations: 0 / 0.6655 GB, free: 9.723 MB / 462.1 MB Notification: Performance of Templates: time 0.3195/1.231, allocations: 101.7 MB / 0.7649 GB, free: 156.6 MB / 0.5137 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulumInitTip/DoublePendulumInitTip.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches