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.001526/0.001526, allocations: 108.4 kB / 18.36 MB, free: 4.77 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.001823/0.001823, allocations: 191 kB / 19.29 MB, free: 3.848 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.29/1.29, allocations: 205.1 MB / 225.2 MB, free: 12.31 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.001237/0.001237, allocations: 47.92 kB / 282.1 MB, free: 2.473 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08559/0.08684, allocations: 46.63 MB / 328.7 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.01308/0.09996, allocations: 12.33 MB / 341.1 MB, free: 7.379 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008812/0.1088, allocations: 4.438 MB / 345.5 MB, free: 2.926 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001875/0.1108, allocations: 83.69 kB / 345.6 MB, free: 2.844 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005059/0.1159, allocations: 2.893 MB / 348.5 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005161/0.121, allocations: 2.031 MB / 350.5 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002332/0.1234, allocations: 1.053 MB / 351.6 MB, free: 12.85 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0069/0.1303, allocations: 5.342 MB / 356.9 MB, free: 7.488 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004899/0.1352, allocations: 4.036 MB / 360.9 MB, free: 3.391 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002736/0.138, allocations: 1.764 MB / 362.7 MB, free: 1.621 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003343/0.1413, allocations: 2.395 MB / 365.1 MB, free: 15.22 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000713/0.1421, allocations: 384 kB / 365.5 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002152/0.1442, allocations: 1.252 MB / 366.7 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001924/0.1462, allocations: 2.198 MB / 368.9 MB, free: 11.39 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002478/0.1487, allocations: 2.47 MB / 371.4 MB, free: 8.902 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007418/0.1561, allocations: 8.001 MB / 379.4 MB, free: 0.875 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1561, allocations: 0 / 379.4 MB, free: 0.875 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1561, allocations: 0 / 379.4 MB, free: 0.875 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001372/0.1563, allocations: 0 / 379.4 MB, free: 0.875 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.1538/0.31, allocations: 5.374 MB / 384.8 MB, free: 50.55 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.3101, allocations: 10.72 kB / 384.8 MB, free: 50.55 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02529/0.3354, allocations: 3.194 MB / 388 MB, free: 50.14 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009527/0.3449, allocations: 3.741 MB / 391.7 MB, free: 47.89 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002095/0.3452, allocations: 248.9 kB / 392 MB, free: 47.81 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009546/0.3461, allocations: 338 kB / 392.3 MB, free: 47.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01392/0.3601, allocations: 10.35 MB / 402.6 MB, free: 39.62 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001116/0.3602, allocations: 47.59 kB / 402.7 MB, free: 39.58 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003795/0.3606, allocations: 151.9 kB / 402.8 MB, free: 39.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002655/0.3633, allocations: 2.037 MB / 404.9 MB, free: 37.39 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01231/0.3756, allocations: 8.903 MB / 413.8 MB, free: 28.47 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04005/0.4157, allocations: 39.63 MB / 453.4 MB, free: 3.773 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00833/0.424, allocations: 4.057 MB / 457.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002575/0.4266, allocations: 2.232 MB / 459.7 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006571/0.4273, allocations: 0.6499 MB / 460.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.351e-05/0.4274, allocations: 63.44 kB / 460.4 MB, free: 12.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=175): time 5.34e-06/0.4274, allocations: 0 / 460.4 MB, free: 12.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=210): time 0.05883/0.4862, allocations: 22.94 MB / 483.3 MB, free: 5.402 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.4864, allocations: 256.6 kB / 483.6 MB, free: 5.098 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005345/0.4917, allocations: 4.267 MB / 487.9 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003293/0.492, allocations: 57.7 kB / 487.9 MB, free: 0.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001915/0.494, allocations: 3.194 MB / 491.1 MB, free: 13.51 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000793/0.4948, allocations: 0.7982 MB / 491.9 MB, free: 12.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001596/0.4964, allocations: 1.285 MB / 493.2 MB, free: 11.4 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.48e-05/0.4965, allocations: 305.1 kB / 493.5 MB, free: 11.1 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0034/0.4999, allocations: 2.558 MB / 496 MB, free: 8.539 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005682/0.5056, allocations: 6.123 MB / 0.4904 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009988/0.5156, allocations: 9.291 MB / 0.4995 GB, free: 5.621 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.398e-05/0.5157, allocations: 36 kB / 0.4995 GB, free: 5.586 MB / 398.1 MB Notification: Performance of matching and sorting (n=819) (initialization): time 0.01896/0.5346, allocations: 10.76 MB / 0.51 GB, free: 10.8 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.84e-05/0.5347, allocations: 56 kB / 0.5101 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001203/0.5349, allocations: 127.9 kB / 0.5102 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007078/0.542, allocations: 2.614 MB / 0.5127 GB, free: 7.996 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004236/0.5462, allocations: 1.349 MB / 0.5141 GB, free: 6.645 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02445/0.5707, allocations: 18.59 MB / 0.5322 GB, free: 3.629 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005158/0.5759, allocations: 371.4 kB / 0.5326 GB, free: 3.266 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001113/0.577, allocations: 372 kB / 0.5329 GB, free: 2.902 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.005191/0.5822, allocations: 2.24 MB / 0.5351 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001119/0.5833, allocations: 379.1 kB / 0.5355 GB, free: 284 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1682/0.7516, allocations: 5.146 MB / 0.5405 GB, free: 143.5 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.531e-05/0.7516, allocations: 22.75 kB / 0.5405 GB, free: 143.5 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.928e-05/0.7517, allocations: 7.719 kB / 0.5405 GB, free: 143.5 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.145e-05/0.7517, allocations: 10.5 kB / 0.5405 GB, free: 143.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01901/0.7707, allocations: 11.07 MB / 0.5513 GB, free: 139.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.349e-05/0.7708, allocations: 0 / 0.5513 GB, free: 139.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001357/0.7721, allocations: 300.9 kB / 0.5516 GB, free: 139.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004708/0.7768, allocations: 1.856 MB / 0.5534 GB, free: 139.2 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003295/0.7772, allocations: 39.19 kB / 0.5535 GB, free: 139.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0116/0.7888, allocations: 10.39 MB / 0.5636 GB, free: 133.9 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.7888, allocations: 3.906 kB / 0.5636 GB, free: 133.9 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0117/0.8005, allocations: 8.341 MB / 0.5718 GB, free: 126.8 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002465/0.8031, allocations: 0.772 MB / 0.5725 GB, free: 126.2 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009357/0.804, allocations: 36 kB / 0.5726 GB, free: 126.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001985/0.806, allocations: 144.7 kB / 0.5727 GB, free: 126.1 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004157/0.8064, allocations: 125 kB / 0.5728 GB, free: 125.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001726/0.8066, allocations: 56 kB / 0.5729 GB, free: 125.9 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004377/0.811, allocations: 2.68 MB / 0.5755 GB, free: 123.2 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.811, allocations: 3.469 kB / 0.5755 GB, free: 123.2 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005009/0.816, allocations: 1.214 MB / 0.5767 GB, free: 122 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.0004719/0.8165, allocations: 166.9 kB / 0.5768 GB, free: 121.8 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008306/0.8249, allocations: 6.678 MB / 0.5834 GB, free: 115.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.8249, allocations: 0 / 0.5834 GB, free: 115.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002647/0.8276, allocations: 2.233 MB / 0.5855 GB, free: 113 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003289/0.8309, allocations: 0.5648 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.01569/0.8466, allocations: 10.73 MB / 0.5966 GB, free: 101.8 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003634/0.8502, allocations: 3.538 MB / 0.6 GB, free: 98.26 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003989/0.8543, allocations: 1.912 MB / 0.6019 GB, free: 96.34 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008854/0.8552, allocations: 255.4 kB / 0.6021 GB, free: 96.09 MB / 430.1 MB Notification: Performance of SimCode: time 1.072e-06/0.8552, allocations: 4 kB / 0.6021 GB, free: 96.09 MB / 430.1 MB Notification: Performance of Templates: time 0.07044/0.9256, allocations: 47.68 MB / 0.6487 GB, free: 48.51 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 gbode -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