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.001223/0.001223, allocations: 109.4 kB / 18.4 MB, free: 4.703 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.001213/0.001214, allocations: 193.2 kB / 19.33 MB, free: 3.781 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.369/1.369, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001448/0.001448, allocations: 47.94 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08793/0.08939, allocations: 46.61 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.1964/0.2858, allocations: 12.33 MB / 388.2 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008987/0.2949, allocations: 4.433 MB / 392.6 MB, free: 3.656 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002851/0.2978, allocations: 84.66 kB / 392.7 MB, free: 3.637 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005547/0.3034, allocations: 2.9 MB / 395.6 MB, free: 2.277 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00611/0.3095, allocations: 2.031 MB / 397.6 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002933/0.3125, allocations: 1.042 MB / 398.6 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008956/0.3215, allocations: 5.327 MB / 404 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005418/0.3269, allocations: 4.058 MB / 408 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003992/0.331, allocations: 1.773 MB / 409.8 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004172/0.3352, allocations: 2.399 MB / 412.2 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001197/0.3364, allocations: 383.9 kB / 412.6 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003252/0.3397, allocations: 1.258 MB / 413.8 MB, free: 9.363 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002732/0.3424, allocations: 2.212 MB / 416 MB, free: 7.262 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004079/0.3465, allocations: 2.474 MB / 418.5 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009898/0.3564, allocations: 8.005 MB / 426.5 MB, free: 12.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.3565, allocations: 0 / 426.5 MB, free: 12.74 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3565, allocations: 0 / 426.5 MB, free: 12.74 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000241/0.3568, allocations: 0 / 426.5 MB, free: 12.74 MB / 350.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.0126/0.3694, allocations: 5.385 MB / 431.9 MB, free: 7.281 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.3694, allocations: 12.03 kB / 431.9 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02587/0.3953, allocations: 3.185 MB / 435.1 MB, free: 4.074 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008606/0.404, allocations: 3.735 MB / 438.8 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000224/0.4042, allocations: 254.2 kB / 439.1 MB, free: 32 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001387/0.4056, allocations: 339.7 kB / 439.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01782/0.4235, allocations: 10.34 MB / 449.8 MB, free: 4.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001462/0.4237, allocations: 47.59 kB / 449.8 MB, free: 4.633 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005148/0.4242, allocations: 151.9 kB / 450 MB, free: 4.484 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003487/0.4277, allocations: 2.037 MB / 452 MB, free: 2.441 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01717/0.4449, allocations: 8.899 MB / 460.9 MB, free: 9.523 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05075/0.4957, allocations: 39.62 MB / 0.4888 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009107/0.5048, allocations: 4.057 MB / 0.4928 GB, free: 12.55 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002987/0.5079, allocations: 2.228 MB / 0.4949 GB, free: 10.32 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007447/0.5086, allocations: 0.6676 MB / 0.4956 GB, free: 9.535 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.653e-05/0.5087, allocations: 51.5 kB / 0.4956 GB, free: 9.477 MB / 430.1 MB Notification: Performance of pre-optimization done (n=175): time 5.129e-06/0.5087, allocations: 0 / 0.4956 GB, free: 9.477 MB / 430.1 MB Notification: Performance of matching and sorting (n=210): time 0.06184/0.5706, allocations: 22.96 MB / 0.518 GB, free: 2.371 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001625/0.5708, allocations: 252.6 kB / 0.5183 GB, free: 2.07 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006254/0.577, allocations: 4.263 MB / 0.5225 GB, free: 13.79 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005455/0.5776, allocations: 57.7 kB / 0.5225 GB, free: 13.73 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002332/0.58, allocations: 3.202 MB / 0.5256 GB, free: 10.48 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001142/0.5811, allocations: 0.8021 MB / 0.5264 GB, free: 9.668 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001875/0.583, allocations: 1.285 MB / 0.5277 GB, free: 8.371 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.5831, allocations: 301.1 kB / 0.528 GB, free: 8.074 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003696/0.5868, allocations: 2.558 MB / 0.5305 GB, free: 5.512 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006121/0.593, allocations: 6.123 MB / 0.5364 GB, free: 13.63 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01141/0.6044, allocations: 9.288 MB / 0.5455 GB, free: 2.602 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001111/0.6046, allocations: 36 kB / 0.5455 GB, free: 2.566 MB / 478.1 MB Notification: Performance of matching and sorting (n=819) (initialization): time 0.2273/0.8319, allocations: 10.77 MB / 0.5561 GB, free: 142.9 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001119/0.832, allocations: 57.97 kB / 0.5561 GB, free: 142.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002541/0.8323, allocations: 124.5 kB / 0.5562 GB, free: 142.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00846/0.8408, allocations: 2.61 MB / 0.5588 GB, free: 142.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004592/0.8454, allocations: 1.353 MB / 0.5601 GB, free: 142.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0225/0.8679, allocations: 18.59 MB / 0.5783 GB, free: 132.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004802/0.8728, allocations: 371.6 kB / 0.5786 GB, free: 132.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009497/0.8738, allocations: 376.2 kB / 0.579 GB, free: 132.7 MB / 478.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.003453/0.8772, allocations: 2.229 MB / 0.5811 GB, free: 131.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007495/0.878, allocations: 378.3 kB / 0.5815 GB, free: 131.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008721/0.8867, allocations: 5.164 MB / 0.5865 GB, free: 129.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.663e-05/0.8868, allocations: 19.62 kB / 0.5866 GB, free: 129.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.531e-05/0.8868, allocations: 7.781 kB / 0.5866 GB, free: 129.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.85e-05/0.8869, allocations: 13.89 kB / 0.5866 GB, free: 129.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01636/0.9032, allocations: 11.06 MB / 0.5974 GB, free: 120.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.639e-05/0.9033, allocations: 0 / 0.5974 GB, free: 120.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001335/0.9046, allocations: 303.5 kB / 0.5977 GB, free: 120.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004597/0.9093, allocations: 1.858 MB / 0.5995 GB, free: 118.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002518/0.9095, allocations: 36 kB / 0.5995 GB, free: 118.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0109/0.9204, allocations: 10.38 MB / 0.6097 GB, free: 108.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.9205, allocations: 4 kB / 0.6097 GB, free: 108.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01133/0.9318, allocations: 8.341 MB / 0.6178 GB, free: 99.73 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00177/0.9336, allocations: 0.7771 MB / 0.6186 GB, free: 98.93 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006275/0.9343, allocations: 43.8 kB / 0.6186 GB, free: 98.89 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00175/0.936, allocations: 139.8 kB / 0.6187 GB, free: 98.75 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003908/0.9364, allocations: 117.1 kB / 0.6189 GB, free: 98.64 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001519/0.9366, allocations: 55.98 kB / 0.6189 GB, free: 98.59 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00334/0.9399, allocations: 2.686 MB / 0.6215 GB, free: 95.89 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.94, allocations: 0 / 0.6215 GB, free: 95.89 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006097/0.9461, allocations: 1.208 MB / 0.6227 GB, free: 94.69 MB / 478.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.0007117/0.9468, allocations: 177.3 kB / 0.6229 GB, free: 94.52 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00908/0.9559, allocations: 6.684 MB / 0.6294 GB, free: 87.82 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/0.956, allocations: 0 / 0.6294 GB, free: 87.82 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002768/0.9587, allocations: 2.237 MB / 0.6316 GB, free: 85.57 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003158/0.9619, allocations: 0.5625 MB / 0.6321 GB, free: 85.03 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01675/0.9787, allocations: 11.13 MB / 0.643 GB, free: 73.88 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005439/0.9842, allocations: 3.496 MB / 0.6464 GB, free: 70.35 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001607/0.9858, allocations: 311.3 kB / 0.6467 GB, free: 70.05 MB / 478.1 MB Notification: Performance of SimCode: time 1.092e-06/0.9859, allocations: 0 / 0.6467 GB, free: 70.05 MB / 478.1 MB Notification: Performance of Templates: time 0.3734/1.359, allocations: 106.1 MB / 0.7503 GB, free: 148.3 MB / 494.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 -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