Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001422/0.001422, allocations: 207.3 kB / 17.99 MB, free: 3.773 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.274/1.274, allocations: 226.7 MB / 245.5 MB, free: 6.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009285/0.0009286, allocations: 110.2 kB / 296.7 MB, free: 6.477 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008781/0.0008781, allocations: 51.91 kB / 356.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1849/0.1858, allocations: 50.46 MB / 407.1 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.03804/0.2238, allocations: 50.37 MB / 457.4 MB, free: 9.246 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02/0.2439, allocations: 10.86 MB / 468.3 MB, free: 14.37 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007528/0.2514, allocations: 227.4 kB / 468.5 MB, free: 14.14 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005079/0.2566, allocations: 2.867 MB / 471.4 MB, free: 11.27 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003773/0.2604, allocations: 1.84 MB / 473.2 MB, free: 9.426 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001679/0.2621, allocations: 0.9749 MB / 474.2 MB, free: 8.449 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.007485/0.2696, allocations: 7.976 MB / 482.2 MB, free: 464 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003967/0.2735, allocations: 3.925 MB / 486.1 MB, free: 12.46 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001801/0.2754, allocations: 1.53 MB / 487.6 MB, free: 10.93 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002515/0.2779, allocations: 2.473 MB / 490.1 MB, free: 8.449 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004398/0.2783, allocations: 248 kB / 490.3 MB, free: 8.207 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001793/0.2801, allocations: 1.182 MB / 491.5 MB, free: 7.023 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001506/0.2817, allocations: 2.034 MB / 493.5 MB, free: 4.984 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001836/0.2835, allocations: 2.299 MB / 495.8 MB, free: 2.672 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005825/0.2893, allocations: 7.364 MB / 0.4914 GB, free: 11.29 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.227e-06/0.2894, allocations: 0 / 0.4914 GB, free: 11.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2894, allocations: 0 / 0.4914 GB, free: 11.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.319e-05/0.2895, allocations: 0 / 0.4914 GB, free: 11.29 MB / 378.7 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.008664/0.2981, allocations: 5.267 MB / 0.4966 GB, free: 5.945 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.2982, allocations: 12.03 kB / 0.4966 GB, free: 5.934 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02679/0.325, allocations: 3.173 MB / 0.4997 GB, free: 2.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1735/0.4985, allocations: 3.47 MB / 0.5031 GB, free: 94.06 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002313/0.4988, allocations: 240.9 kB / 0.5033 GB, free: 94.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001071/0.4999, allocations: 331.9 kB / 0.5036 GB, free: 93.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01418/0.514, allocations: 10.03 MB / 0.5134 GB, free: 89.4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001239/0.5142, allocations: 46.95 kB / 0.5134 GB, free: 89.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003745/0.5146, allocations: 151.1 kB / 0.5136 GB, free: 89.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002839/0.5174, allocations: 1.955 MB / 0.5155 GB, free: 87.85 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01334/0.5308, allocations: 8.595 MB / 0.5239 GB, free: 79.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03706/0.5679, allocations: 38.84 MB / 0.5618 GB, free: 39.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007109/0.5751, allocations: 3.939 MB / 0.5657 GB, free: 35.62 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002138/0.5772, allocations: 2.197 MB / 0.5678 GB, free: 33.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005277/0.5778, allocations: 0.6477 MB / 0.5684 GB, free: 32.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.391e-05/0.5778, allocations: 51.56 kB / 0.5685 GB, free: 32.6 MB / 378.7 MB Notification: Performance of pre-optimization done (n=166): time 4.529e-06/0.5778, allocations: 2.906 kB / 0.5685 GB, free: 32.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=201): time 0.0529/0.6307, allocations: 22.58 MB / 0.5905 GB, free: 9.875 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.039e-05/0.6308, allocations: 252.6 kB / 0.5908 GB, free: 9.574 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004307/0.6351, allocations: 4.177 MB / 0.5949 GB, free: 5.375 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000364/0.6355, allocations: 49.7 kB / 0.5949 GB, free: 5.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00125/0.6368, allocations: 3.124 MB / 0.598 GB, free: 2.152 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006356/0.6374, allocations: 0.7674 MB / 0.5987 GB, free: 1.375 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001296/0.6387, allocations: 1.249 MB / 0.5999 GB, free: 116 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.914e-05/0.6388, allocations: 313 kB / 0.6002 GB, free: 15.8 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003337/0.6422, allocations: 2.487 MB / 0.6027 GB, free: 13.31 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00563/0.6478, allocations: 5.977 MB / 0.6085 GB, free: 5.613 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009927/0.6578, allocations: 9.068 MB / 0.6174 GB, free: 10.85 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.435e-05/0.6579, allocations: 36 kB / 0.6174 GB, free: 10.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=797) (initialization): time 0.01969/0.6776, allocations: 10.55 MB / 0.6277 GB, free: 244 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.238e-05/0.6777, allocations: 56 kB / 0.6277 GB, free: 188 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001287/0.6778, allocations: 120 kB / 0.6279 GB, free: 68 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007646/0.6855, allocations: 2.591 MB / 0.6304 GB, free: 13.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004023/0.6895, allocations: 1.31 MB / 0.6317 GB, free: 12.15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02275/0.7123, allocations: 17.25 MB / 0.6485 GB, free: 10.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004459/0.7168, allocations: 367.3 kB / 0.6489 GB, free: 10.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009182/0.7177, allocations: 360 kB / 0.6492 GB, free: 9.785 MB / 442.7 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.004339/0.7221, allocations: 2.167 MB / 0.6513 GB, free: 7.605 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008807/0.723, allocations: 383.1 kB / 0.6517 GB, free: 7.227 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01014/0.7331, allocations: 5.03 MB / 0.6566 GB, free: 2.176 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.372e-05/0.7332, allocations: 24 kB / 0.6566 GB, free: 2.152 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.646e-05/0.7332, allocations: 8 kB / 0.6566 GB, free: 2.145 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.279e-05/0.7333, allocations: 7.969 kB / 0.6566 GB, free: 2.137 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02068/0.754, allocations: 10.83 MB / 0.6672 GB, free: 7.203 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.647e-05/0.754, allocations: 3.938 kB / 0.6672 GB, free: 7.199 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001412/0.7554, allocations: 287.5 kB / 0.6675 GB, free: 6.918 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005176/0.7606, allocations: 1.846 MB / 0.6693 GB, free: 5.066 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002985/0.761, allocations: 36 kB / 0.6693 GB, free: 5.031 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1833/0.9443, allocations: 9.704 MB / 0.6788 GB, free: 152.4 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.9443, allocations: 6.297 kB / 0.6788 GB, free: 152.4 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09122/1.036, allocations: 60.26 MB / 0.7377 GB, free: 107.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001003/1.037, allocations: 429.5 kB / 0.7381 GB, free: 107.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006018/1.037, allocations: 32 kB / 0.7381 GB, free: 107.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001742/1.039, allocations: 139.8 kB / 0.7382 GB, free: 107 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004253/1.039, allocations: 121.4 kB / 0.7384 GB, free: 106.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000137/1.04, allocations: 52 kB / 0.7384 GB, free: 106.9 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002954/1.043, allocations: 2.627 MB / 0.741 GB, free: 104.2 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.043, allocations: 0 / 0.741 GB, free: 104.2 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006339/1.049, allocations: 1.596 MB / 0.7425 GB, free: 102.7 MB / 458.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 (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.0005578/1.049, allocations: 167.8 kB / 0.7427 GB, free: 102.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008636/1.058, allocations: 6.5 MB / 0.749 GB, free: 96.03 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/1.058, allocations: 0 / 0.749 GB, free: 96.03 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002726/1.061, allocations: 2.151 MB / 0.7511 GB, free: 93.88 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004166/1.065, allocations: 0.5381 MB / 0.7517 GB, free: 93.36 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01935/1.084, allocations: 14.21 MB / 0.7655 GB, free: 79.21 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004364/1.089, allocations: 3.513 MB / 0.769 GB, free: 75.66 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004289/1.093, allocations: 1.915 MB / 0.7708 GB, free: 73.74 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007992/1.094, allocations: 251.4 kB / 0.7711 GB, free: 73.5 MB / 458.7 MB Notification: Performance of SimCode: time 1.082e-06/1.094, allocations: 4 kB / 0.7711 GB, free: 73.49 MB / 458.7 MB Notification: Performance of Templates: time 0.09195/1.186, allocations: 66.2 MB / 0.8357 GB, free: 7.512 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulumInitTip/DoublePendulumInitTip.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches