Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001573/0.001573, allocations: 109.5 kB / 17.73 MB, free: 5.363 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.001724/0.001724, allocations: 192 kB / 18.66 MB, free: 4.438 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.33/1.33, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001331/0.001331, allocations: 56.34 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07818/0.07952, allocations: 46.62 MB / 374.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.1708/0.2504, allocations: 10.46 MB / 385.1 MB, free: 7.453 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007322/0.2578, allocations: 3.958 MB / 389.1 MB, free: 5.387 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001669/0.2595, allocations: 69 kB / 389.1 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003995/0.2635, allocations: 2.204 MB / 391.3 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004847/0.2684, allocations: 1.857 MB / 393.2 MB, free: 3.504 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001789/0.2702, allocations: 0.7393 MB / 393.9 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00688/0.2771, allocations: 4.847 MB / 398.8 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003618/0.2808, allocations: 2.903 MB / 401.7 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002951/0.2837, allocations: 1.496 MB / 403.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003329/0.2871, allocations: 2.047 MB / 405.2 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008687/0.288, allocations: 305.1 kB / 405.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002757/0.2908, allocations: 1.178 MB / 406.7 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002314/0.2931, allocations: 1.865 MB / 408.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003215/0.2963, allocations: 2.22 MB / 410.8 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008527/0.3049, allocations: 7.024 MB / 417.8 MB, free: 4.617 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.3049, allocations: 4 kB / 417.8 MB, free: 4.613 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.305, allocations: 4 kB / 417.8 MB, free: 4.609 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001975/0.3052, allocations: 0 / 417.8 MB, free: 4.609 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01376/0.3189, allocations: 4.959 MB / 422.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.319, allocations: 8.031 kB / 422.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001193/0.3202, allocations: 0.6245 MB / 423.4 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1875/0.5077, allocations: 12.27 MB / 435.7 MB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009944/0.5177, allocations: 4.241 MB / 439.9 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001796/0.5179, allocations: 201 kB / 440.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008964/0.5188, allocations: 271.6 kB / 440.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01408/0.5329, allocations: 8.738 MB / 449.1 MB, free: 4.492 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001439/0.5331, allocations: 47.5 kB / 449.2 MB, free: 4.445 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005121/0.5337, allocations: 127.9 kB / 449.3 MB, free: 4.32 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003062/0.5367, allocations: 1.762 MB / 451.1 MB, free: 2.559 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01432/0.5511, allocations: 7.538 MB / 458.6 MB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04374/0.5949, allocations: 35.38 MB / 494 MB, free: 6.559 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008215/0.6031, allocations: 3.688 MB / 497.7 MB, free: 2.715 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002569/0.6057, allocations: 2.037 MB / 499.7 MB, free: 0.668 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004713/0.6062, allocations: 328.5 kB / 0.4883 GB, free: 300 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.494e-05/0.6063, allocations: 59.44 kB / 0.4884 GB, free: 232 kB / 414.1 MB Notification: Performance of pre-optimization done (n=160): time 4.678e-06/0.6063, allocations: 4 kB / 0.4884 GB, free: 228 kB / 414.1 MB Notification: Performance of matching and sorting (n=190): time 0.05772/0.664, allocations: 20.15 MB / 0.508 GB, free: 11.95 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.6642, allocations: 260.6 kB / 0.5083 GB, free: 11.64 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006562/0.6708, allocations: 3.975 MB / 0.5122 GB, free: 7.633 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003854/0.6712, allocations: 53.7 kB / 0.5122 GB, free: 7.574 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002156/0.6734, allocations: 2.823 MB / 0.515 GB, free: 4.711 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009474/0.6743, allocations: 0.7172 MB / 0.5157 GB, free: 3.984 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001969/0.6763, allocations: 1.107 MB / 0.5168 GB, free: 2.867 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.868e-05/0.6764, allocations: 305.1 kB / 0.517 GB, free: 2.566 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003222/0.6796, allocations: 2.166 MB / 0.5192 GB, free: 404 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005316/0.685, allocations: 5.402 MB / 0.5244 GB, free: 9.375 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009453/0.6944, allocations: 8.188 MB / 0.5324 GB, free: 15.6 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.301e-05/0.6946, allocations: 36 kB / 0.5325 GB, free: 15.56 MB / 478.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01674/0.7113, allocations: 8.645 MB / 0.5409 GB, free: 6.902 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001255/0.7115, allocations: 56.94 kB / 0.541 GB, free: 6.848 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001609/0.7117, allocations: 112 kB / 0.5411 GB, free: 6.738 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004503/0.7162, allocations: 1.499 MB / 0.5425 GB, free: 5.234 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004214/0.7204, allocations: 1.22 MB / 0.5437 GB, free: 4.012 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.183/0.9034, allocations: 9.932 MB / 0.5534 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004847/0.9083, allocations: 324.4 kB / 0.5537 GB, free: 143.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008181/0.9092, allocations: 329.6 kB / 0.5541 GB, free: 143.2 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * Number of states: 0 () * Number of discrete variables: 30 (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 (650): * Single equations (assignments): 646 * 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,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003195/0.9124, allocations: 1.944 MB / 0.556 GB, free: 142.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007154/0.9131, allocations: 357.6 kB / 0.5563 GB, free: 142.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008131/0.9212, allocations: 4.151 MB / 0.5603 GB, free: 141.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.322e-05/0.9213, allocations: 20.81 kB / 0.5604 GB, free: 141.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.527e-05/0.9213, allocations: 6.812 kB / 0.5604 GB, free: 141.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.328e-05/0.9214, allocations: 9.406 kB / 0.5604 GB, free: 141.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01724/0.9386, allocations: 9.284 MB / 0.5694 GB, free: 137.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.955e-05/0.9387, allocations: 1.312 kB / 0.5694 GB, free: 137.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001329/0.94, allocations: 266.4 kB / 0.5697 GB, free: 137.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003734/0.9438, allocations: 1.353 MB / 0.571 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002813/0.9441, allocations: 33.52 kB / 0.5711 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01025/0.9543, allocations: 8.941 MB / 0.5798 GB, free: 133.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.9544, allocations: 7.75 kB / 0.5798 GB, free: 133.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00956/0.9639, allocations: 7.037 MB / 0.5867 GB, free: 130.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001912/0.9659, allocations: 0.6962 MB / 0.5873 GB, free: 130.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004929/0.9664, allocations: 35.44 kB / 0.5874 GB, free: 130.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001572/0.968, allocations: 123.1 kB / 0.5875 GB, free: 130.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003566/0.9684, allocations: 110.7 kB / 0.5876 GB, free: 130.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001394/0.9685, allocations: 46.53 kB / 0.5876 GB, free: 130.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003439/0.9719, allocations: 2.529 MB / 0.5901 GB, free: 128.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.972, allocations: 4 kB / 0.5901 GB, free: 128.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00457/0.9765, allocations: 1.01 MB / 0.5911 GB, free: 127.9 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 (136): * Single equations (assignments): 132 * 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 {(4,31,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009585/0.9862, allocations: 7.688 MB / 0.5986 GB, free: 120.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006934/0.9931, allocations: 5.383 MB / 0.6039 GB, free: 114.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.9932, allocations: 7.5 kB / 0.6039 GB, free: 114.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002912/0.9961, allocations: 2.076 MB / 0.6059 GB, free: 112.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003425/0.9995, allocations: 499.1 kB / 0.6064 GB, free: 112.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06182/1.061, allocations: 45.8 MB / 0.6511 GB, free: 61.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004112/1.066, allocations: 3.106 MB / 0.6541 GB, free: 58.46 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004016/1.07, allocations: 1.823 MB / 0.6559 GB, free: 56.63 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002371/1.072, allocations: 1.757 MB / 0.6576 GB, free: 54.88 MB / 478.1 MB Notification: Performance of SimCode: time 9.91e-07/1.072, allocations: 0 / 0.6576 GB, free: 54.88 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.413/3.485, allocations: 76.12 MB / 0.732 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 40.69/44.17, allocations: 15.66 kB / 0.732 GB, free: 10.64 MB / 0.4981 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches