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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001493/0.001493, allocations: 109.6 kB / 21.18 MB, free: 0.6992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001793/0.001793, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.395/1.395, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001739/0.001739, allocations: 51.92 kB / 347.2 MB, free: 10.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.269, allocations: 49.15 MB / 396.4 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.01232/0.2813, allocations: 12.42 MB / 408.8 MB, free: 236 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01218/0.2935, allocations: 4.483 MB / 413.3 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00374/0.2972, allocations: 98.34 kB / 413.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006947/0.3042, allocations: 2.957 MB / 416.3 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00703/0.3112, allocations: 2.098 MB / 418.4 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003216/0.3144, allocations: 1.059 MB / 419.5 MB, free: 9.312 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009844/0.3243, allocations: 5.33 MB / 424.8 MB, free: 6.418 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004645/0.3289, allocations: 3.176 MB / 428 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003386/0.3323, allocations: 1.803 MB / 429.8 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004127/0.3364, allocations: 2.594 MB / 432.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008518/0.3373, allocations: 384 kB / 432.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002479/0.3397, allocations: 1.287 MB / 434 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002293/0.342, allocations: 2.271 MB / 436.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003349/0.3454, allocations: 2.615 MB / 438.9 MB, free: 8.617 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01111/0.3565, allocations: 8.372 MB / 447.3 MB, free: 220 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.3565, allocations: 0 / 447.3 MB, free: 220 kB / 350.1 MB Notification: Performance of FrontEnd: time 5.841e-06/0.3565, allocations: 7.938 kB / 447.3 MB, free: 212 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002306/0.3567, allocations: 4 kB / 447.3 MB, free: 208 kB / 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.01527/0.372, allocations: 5.711 MB / 453 MB, free: 10.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.434e-05/0.3721, allocations: 15.98 kB / 453 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001238/0.3733, allocations: 0.7441 MB / 453.8 MB, free: 9.656 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1559/0.5292, allocations: 12.42 MB / 466.2 MB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01099/0.5402, allocations: 4.485 MB / 470.7 MB, free: 8.684 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002161/0.5404, allocations: 242.3 kB / 470.9 MB, free: 8.445 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008538/0.5413, allocations: 335.8 kB / 471.2 MB, free: 8.117 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01779/0.5591, allocations: 10.22 MB / 481.5 MB, free: 13.22 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001464/0.5592, allocations: 55.64 kB / 481.5 MB, free: 13.17 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004273/0.5597, allocations: 155.9 kB / 481.7 MB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003543/0.5632, allocations: 2.026 MB / 483.7 MB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01744/0.5806, allocations: 8.645 MB / 492.3 MB, free: 2.324 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05409/0.6347, allocations: 39.08 MB / 0.519 GB, free: 10.11 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008726/0.6435, allocations: 3.354 MB / 0.5222 GB, free: 6.715 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002873/0.6463, allocations: 1.962 MB / 0.5242 GB, free: 4.742 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005541/0.6469, allocations: 221.1 kB / 0.5244 GB, free: 4.527 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.269e-05/0.6469, allocations: 51.56 kB / 0.5244 GB, free: 4.469 MB / 446.1 MB Notification: Performance of pre-optimization done (n=175): time 4.458e-06/0.6469, allocations: 112 / 0.5244 GB, free: 4.469 MB / 446.1 MB Notification: Performance of matching and sorting (n=210): time 0.05757/0.7045, allocations: 21.18 MB / 0.5451 GB, free: 15.24 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001929/0.7047, allocations: 264.6 kB / 0.5454 GB, free: 14.93 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006531/0.7112, allocations: 4.296 MB / 0.5495 GB, free: 10.61 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004309/0.7117, allocations: 53.7 kB / 0.5496 GB, free: 10.55 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002788/0.7145, allocations: 3.369 MB / 0.5529 GB, free: 7.145 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001196/0.7157, allocations: 0.8294 MB / 0.5537 GB, free: 6.309 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001787/0.7174, allocations: 1.223 MB / 0.5549 GB, free: 5.074 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.7176, allocations: 309.1 kB / 0.5552 GB, free: 4.77 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003749/0.7213, allocations: 2.342 MB / 0.5575 GB, free: 2.422 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.217/0.9383, allocations: 5.876 MB / 0.5632 GB, free: 139.9 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01038/0.9487, allocations: 8.908 MB / 0.5719 GB, free: 133.4 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001728/0.9489, allocations: 35.75 kB / 0.5719 GB, free: 133.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=781) (initialization): time 0.01947/0.9683, allocations: 9.751 MB / 0.5815 GB, free: 130.1 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001112/0.9685, allocations: 57.25 kB / 0.5815 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001759/0.9686, allocations: 125.5 kB / 0.5816 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005747/0.9744, allocations: 2.105 MB / 0.5837 GB, free: 129.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003956/0.9783, allocations: 1.291 MB / 0.585 GB, free: 129.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01781/0.9962, allocations: 16.85 MB / 0.6014 GB, free: 120.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004628/1.001, allocations: 346.8 kB / 0.6017 GB, free: 120.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006478/1.001, allocations: 360 kB / 0.6021 GB, free: 119.9 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 (693): * Single equations (assignments): 687 * 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,88.9%), (3,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,13)} Notification: Performance of prepare postOptimizeDAE: time 0.002895/1.004, allocations: 2.23 MB / 0.6043 GB, free: 117.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006163/1.005, allocations: 410.4 kB / 0.6047 GB, free: 117.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006785/1.012, allocations: 4.395 MB / 0.609 GB, free: 113.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.91e-05/1.012, allocations: 27.94 kB / 0.609 GB, free: 113.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/1.012, allocations: 4 kB / 0.609 GB, free: 113.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-05/1.012, allocations: 15.06 kB / 0.609 GB, free: 113.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01473/1.027, allocations: 10.28 MB / 0.619 GB, free: 102.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.366e-05/1.027, allocations: 3.938 kB / 0.619 GB, free: 102.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001259/1.028, allocations: 303.6 kB / 0.6193 GB, free: 102.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003194/1.031, allocations: 1.355 MB / 0.6207 GB, free: 101.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001594/1.031, allocations: 39.98 kB / 0.6207 GB, free: 101.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00942/1.041, allocations: 8.867 MB / 0.6294 GB, free: 92.23 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/1.041, allocations: 4 kB / 0.6294 GB, free: 92.22 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009336/1.05, allocations: 7.438 MB / 0.6366 GB, free: 84.76 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001896/1.052, allocations: 0.6873 MB / 0.6373 GB, free: 84.08 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004929/1.052, allocations: 43.77 kB / 0.6373 GB, free: 84.04 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001488/1.054, allocations: 127.8 kB / 0.6375 GB, free: 83.92 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003395/1.054, allocations: 129 kB / 0.6376 GB, free: 83.79 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001308/1.054, allocations: 52 kB / 0.6376 GB, free: 83.74 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0034/1.058, allocations: 2.714 MB / 0.6403 GB, free: 81.02 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/1.058, allocations: 0 / 0.6403 GB, free: 81.02 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005425/1.063, allocations: 1.149 MB / 0.6414 GB, free: 79.88 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 {(5,30,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009393/1.072, allocations: 8.085 MB / 0.6493 GB, free: 71.76 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00843/1.081, allocations: 6.002 MB / 0.6552 GB, free: 65.75 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/1.081, allocations: 2.625 kB / 0.6552 GB, free: 65.75 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003113/1.084, allocations: 2.113 MB / 0.6572 GB, free: 63.63 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003067/1.087, allocations: 0.5881 MB / 0.6578 GB, free: 63.04 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06761/1.155, allocations: 51.51 MB / 0.7081 GB, free: 5.973 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003436/1.158, allocations: 3.538 MB / 0.7115 GB, free: 2.406 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003901/1.162, allocations: 1.925 MB / 0.7134 GB, free: 488 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002985/1.165, allocations: 2.098 MB / 0.7155 GB, free: 14.4 MB / 494.1 MB Notification: Performance of SimCode: time 1.834e-06/1.165, allocations: 0 / 0.7155 GB, free: 14.4 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3639/1.529, allocations: 91.53 MB / 0.8049 GB, free: 126.8 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.98/23.51, allocations: 4 kB / 0.8049 GB, free: 126.8 MB / 0.4981 GB " [Timeout remaining time 636] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.csv","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 26.100831618001394]