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.001348/0.001348, allocations: 100.2 kB / 17.58 MB, free: 5.418 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.001368/0.001368, allocations: 191.9 kB / 18.51 MB, free: 4.5 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.246/1.246, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.002084/0.002084, allocations: 56.14 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08676/0.08886, allocations: 46.63 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01133/0.1002, allocations: 10.46 MB / 337.8 MB, free: 9.859 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007584/0.1079, allocations: 3.961 MB / 341.8 MB, free: 5.887 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001473/0.1094, allocations: 63.81 kB / 341.9 MB, free: 5.824 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004039/0.1134, allocations: 2.2 MB / 344.1 MB, free: 3.617 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003944/0.1174, allocations: 1.86 MB / 345.9 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001545/0.119, allocations: 0.7487 MB / 346.7 MB, free: 1 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005925/0.1249, allocations: 4.85 MB / 351.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003311/0.1282, allocations: 2.897 MB / 354.4 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002109/0.1304, allocations: 1.487 MB / 355.9 MB, free: 7.699 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002621/0.133, allocations: 2.037 MB / 357.9 MB, free: 5.656 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007983/0.1338, allocations: 300 kB / 358.2 MB, free: 5.363 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002267/0.1361, allocations: 1.194 MB / 359.4 MB, free: 4.168 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002048/0.1381, allocations: 1.839 MB / 361.3 MB, free: 2.324 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003152/0.1413, allocations: 2.214 MB / 363.5 MB, free: 100 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007682/0.149, allocations: 6.823 MB / 370.3 MB, free: 9.254 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.149, allocations: 0 / 370.3 MB, free: 9.254 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.697e-06/0.149, allocations: 4 kB / 370.3 MB, free: 9.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001182/0.1492, allocations: 0 / 370.3 MB, free: 9.25 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01335/0.1625, allocations: 4.947 MB / 375.3 MB, free: 4.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.1626, allocations: 12.03 kB / 375.3 MB, free: 4.219 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008816/0.1635, allocations: 0.6206 MB / 375.9 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3176/0.4811, allocations: 12.27 MB / 388.2 MB, free: 49.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008414/0.4895, allocations: 4.19 MB / 392.4 MB, free: 46.88 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/0.4896, allocations: 193.8 kB / 392.5 MB, free: 46.81 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006301/0.4903, allocations: 272.5 kB / 392.8 MB, free: 46.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01002/0.5003, allocations: 8.735 MB / 401.5 MB, free: 39.1 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.842e-05/0.5004, allocations: 51.5 kB / 401.6 MB, free: 39.05 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002975/0.5007, allocations: 128.4 kB / 401.7 MB, free: 38.95 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002477/0.5032, allocations: 1.763 MB / 403.5 MB, free: 37.2 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01076/0.514, allocations: 7.535 MB / 411 MB, free: 29.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0327/0.5467, allocations: 35.53 MB / 446.6 MB, free: 9.117 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007649/0.5544, allocations: 3.698 MB / 450.2 MB, free: 5.273 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002271/0.5567, allocations: 2.033 MB / 452.3 MB, free: 3.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003919/0.5571, allocations: 328.1 kB / 452.6 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.239e-05/0.5572, allocations: 59.5 kB / 452.7 MB, free: 2.789 MB / 334.1 MB Notification: Performance of pre-optimization done (n=160): time 3.767e-06/0.5572, allocations: 0 / 452.7 MB, free: 2.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=190): time 0.05247/0.6096, allocations: 20.14 MB / 472.8 MB, free: 14.53 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/0.6098, allocations: 252.6 kB / 473 MB, free: 14.22 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005255/0.6151, allocations: 3.987 MB / 477 MB, free: 10.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002864/0.6154, allocations: 53.7 kB / 477.1 MB, free: 10.15 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001709/0.6171, allocations: 2.823 MB / 479.9 MB, free: 7.285 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007717/0.6179, allocations: 0.7172 MB / 480.6 MB, free: 6.559 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001395/0.6193, allocations: 1.107 MB / 481.7 MB, free: 5.441 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.133e-05/0.6194, allocations: 301.1 kB / 482 MB, free: 5.145 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002804/0.6222, allocations: 2.166 MB / 484.2 MB, free: 2.973 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00498/0.6272, allocations: 5.406 MB / 489.6 MB, free: 11.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009029/0.6362, allocations: 8.202 MB / 497.8 MB, free: 2.164 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.654e-05/0.6363, allocations: 32 kB / 497.8 MB, free: 2.133 MB / 382.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01745/0.6538, allocations: 8.649 MB / 0.4946 GB, free: 9.469 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000115/0.6539, allocations: 52 kB / 0.4947 GB, free: 9.418 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001884/0.6541, allocations: 119.9 kB / 0.4948 GB, free: 9.301 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006505/0.6607, allocations: 1.503 MB / 0.4962 GB, free: 7.793 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006553/0.6672, allocations: 1.224 MB / 0.4974 GB, free: 6.566 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02034/0.6876, allocations: 9.931 MB / 0.5071 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00724/0.6949, allocations: 315.5 kB / 0.5074 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001201/0.6961, allocations: 340 kB / 0.5078 GB, free: 11.85 MB / 414.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.004544/0.7007, allocations: 1.932 MB / 0.5096 GB, free: 9.902 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001033/0.7017, allocations: 355.3 kB / 0.51 GB, free: 9.551 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01118/0.7129, allocations: 4.155 MB / 0.514 GB, free: 5.375 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-05/0.713, allocations: 23.98 kB / 0.5141 GB, free: 5.352 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.678e-05/0.7131, allocations: 11.94 kB / 0.5141 GB, free: 5.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.001e-05/0.7131, allocations: 15.91 kB / 0.5141 GB, free: 5.324 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01899/0.7321, allocations: 9.312 MB / 0.5232 GB, free: 11.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.221e-05/0.7322, allocations: 8.062 kB / 0.5232 GB, free: 11.91 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001398/0.7336, allocations: 267.6 kB / 0.5234 GB, free: 11.64 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003978/0.7376, allocations: 1.351 MB / 0.5248 GB, free: 10.29 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002255/0.7378, allocations: 32 kB / 0.5248 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01226/0.7501, allocations: 8.955 MB / 0.5335 GB, free: 1.156 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.339e-06/0.7501, allocations: 7.938 kB / 0.5335 GB, free: 1.148 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1873/0.9374, allocations: 7.028 MB / 0.5404 GB, free: 142.6 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001719/0.9392, allocations: 0.698 MB / 0.5411 GB, free: 142.4 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005864/0.9398, allocations: 29.23 kB / 0.5411 GB, free: 142.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001606/0.9414, allocations: 118.2 kB / 0.5412 GB, free: 142.3 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00042/0.9418, allocations: 114.5 kB / 0.5413 GB, free: 142.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001451/0.942, allocations: 49.91 kB / 0.5414 GB, free: 142.3 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004145/0.9461, allocations: 2.527 MB / 0.5439 GB, free: 141.4 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9461, allocations: 1.031 kB / 0.5439 GB, free: 141.4 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004293/0.9504, allocations: 1.011 MB / 0.5448 GB, free: 141.3 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 (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.009938/0.9604, allocations: 7.69 MB / 0.5524 GB, free: 138.2 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008364/0.9688, allocations: 6.43 MB / 0.5586 GB, free: 136.3 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.9688, allocations: 0 / 0.5586 GB, free: 136.3 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002768/0.9716, allocations: 2.085 MB / 0.5607 GB, free: 135.5 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002832/0.9744, allocations: 0.4909 MB / 0.5612 GB, free: 135.3 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05318/1.028, allocations: 51.84 MB / 0.6118 GB, free: 79.89 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002414/1.03, allocations: 3.091 MB / 0.6148 GB, free: 76.77 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003582/1.034, allocations: 1.835 MB / 0.6166 GB, free: 74.93 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001726/1.035, allocations: 1.757 MB / 0.6183 GB, free: 73.17 MB / 430.1 MB Notification: Performance of SimCode: time 6.31e-07/1.035, allocations: 0 / 0.6183 GB, free: 73.17 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2871/1.323, allocations: 78.26 MB / 0.6947 GB, free: 133.7 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/12.48, allocations: 10.77 kB / 0.6947 GB, free: 133.7 MB / 430.1 MB (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