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.00108/0.00108, allocations: 113.4 kB / 17.73 MB, free: 5.324 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.001121/0.001121, allocations: 188.2 kB / 18.66 MB, free: 4.398 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.297/1.297, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001296/0.001296, allocations: 59.91 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07793/0.07923, allocations: 46.61 MB / 374.6 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.1857/0.2649, allocations: 10.46 MB / 385.1 MB, free: 7.449 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008601/0.2736, allocations: 3.957 MB / 389.1 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001958/0.2756, allocations: 67.91 kB / 389.1 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004708/0.2803, allocations: 2.212 MB / 391.3 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0053/0.2857, allocations: 1.859 MB / 393.2 MB, free: 3.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002085/0.2878, allocations: 0.7395 MB / 393.9 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006842/0.2946, allocations: 4.843 MB / 398.8 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003724/0.2984, allocations: 2.902 MB / 401.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002921/0.3013, allocations: 1.493 MB / 403.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003439/0.3048, allocations: 2.051 MB / 405.2 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001032/0.3059, allocations: 301.1 kB / 405.5 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00292/0.3088, allocations: 1.178 MB / 406.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002438/0.3113, allocations: 1.864 MB / 408.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003628/0.3149, allocations: 2.224 MB / 410.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008055/0.323, allocations: 7.035 MB / 417.8 MB, free: 4.574 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.323, allocations: 0 / 417.8 MB, free: 4.574 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.323, allocations: 0 / 417.8 MB, free: 4.574 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001878/0.3232, allocations: 4 kB / 417.8 MB, free: 4.57 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.01354/0.3368, allocations: 4.951 MB / 422.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.3369, allocations: 8.031 kB / 422.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001449/0.3383, allocations: 0.6284 MB / 423.4 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1711/0.5094, allocations: 12.27 MB / 435.7 MB, free: 2.609 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01086/0.5203, allocations: 4.241 MB / 439.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002157/0.5205, allocations: 200.9 kB / 440.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001231/0.5218, allocations: 275.7 kB / 440.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01734/0.5392, allocations: 8.726 MB / 449.1 MB, free: 4.465 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002159/0.5394, allocations: 51.5 kB / 449.2 MB, free: 4.414 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006933/0.5401, allocations: 131.9 kB / 449.3 MB, free: 4.285 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003621/0.5438, allocations: 1.77 MB / 451.1 MB, free: 2.516 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01584/0.5596, allocations: 7.53 MB / 458.6 MB, free: 10.97 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0501/0.6098, allocations: 35.37 MB / 494 MB, free: 6.527 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008456/0.6183, allocations: 3.692 MB / 497.7 MB, free: 2.68 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002581/0.6209, allocations: 2.033 MB / 499.7 MB, free: 0.6367 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004367/0.6213, allocations: 328.2 kB / 0.4883 GB, free: 268 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.524e-05/0.6214, allocations: 59.44 kB / 0.4884 GB, free: 200 kB / 414.1 MB Notification: Performance of pre-optimization done (n=160): time 4.448e-06/0.6214, allocations: 0 / 0.4884 GB, free: 200 kB / 414.1 MB Notification: Performance of matching and sorting (n=190): time 0.06275/0.6842, allocations: 20.16 MB / 0.508 GB, free: 11.91 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000128/0.6843, allocations: 248.6 kB / 0.5083 GB, free: 11.61 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006835/0.6912, allocations: 3.983 MB / 0.5122 GB, free: 7.598 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003689/0.6916, allocations: 49.7 kB / 0.5122 GB, free: 7.543 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002592/0.6942, allocations: 2.823 MB / 0.515 GB, free: 4.68 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008992/0.6951, allocations: 0.7172 MB / 0.5157 GB, free: 3.953 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002309/0.6974, allocations: 1.111 MB / 0.5168 GB, free: 2.832 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.6976, allocations: 305.1 kB / 0.5171 GB, free: 2.531 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003447/0.701, allocations: 2.166 MB / 0.5192 GB, free: 368 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006401/0.7074, allocations: 5.406 MB / 0.5244 GB, free: 9.336 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01069/0.7182, allocations: 8.188 MB / 0.5324 GB, free: 15.56 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001195/0.7183, allocations: 32 kB / 0.5325 GB, free: 15.53 MB / 478.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01849/0.7368, allocations: 8.653 MB / 0.5409 GB, free: 6.859 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001177/0.737, allocations: 52 kB / 0.541 GB, free: 6.809 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001684/0.7372, allocations: 116 kB / 0.5411 GB, free: 6.695 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004851/0.742, allocations: 1.496 MB / 0.5425 GB, free: 5.195 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004557/0.7466, allocations: 1.22 MB / 0.5437 GB, free: 3.973 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1907/0.9373, allocations: 9.926 MB / 0.5534 GB, free: 143.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003901/0.9413, allocations: 319 kB / 0.5537 GB, free: 143.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007597/0.942, allocations: 331.4 kB / 0.554 GB, free: 143.1 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.003151/0.9452, allocations: 1.951 MB / 0.556 GB, free: 142.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006769/0.9459, allocations: 353.4 kB / 0.5563 GB, free: 142.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008457/0.9544, allocations: 4.149 MB / 0.5603 GB, free: 140.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.189e-05/0.9544, allocations: 21.56 kB / 0.5604 GB, free: 140.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.957e-05/0.9544, allocations: 8.5 kB / 0.5604 GB, free: 140.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-05/0.9545, allocations: 9.484 kB / 0.5604 GB, free: 140.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01634/0.9708, allocations: 9.287 MB / 0.5694 GB, free: 137.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.23e-05/0.9709, allocations: 1.062 kB / 0.5695 GB, free: 137.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001252/0.9721, allocations: 264.6 kB / 0.5697 GB, free: 137.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003491/0.9756, allocations: 1.356 MB / 0.571 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001871/0.9758, allocations: 30.25 kB / 0.5711 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01007/0.9859, allocations: 8.945 MB / 0.5798 GB, free: 133.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.9859, allocations: 3.719 kB / 0.5798 GB, free: 133.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009078/0.995, allocations: 7.038 MB / 0.5867 GB, free: 130.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001358/0.9964, allocations: 0.696 MB / 0.5873 GB, free: 130.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005907/0.997, allocations: 35.38 kB / 0.5874 GB, free: 130.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001541/0.9985, allocations: 119.1 kB / 0.5875 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002804/0.9988, allocations: 117.4 kB / 0.5876 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001292/0.999, allocations: 46.67 kB / 0.5877 GB, free: 130 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003318/1.002, allocations: 2.533 MB / 0.5901 GB, free: 128.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 2e-07/1.002, allocations: 0 / 0.5901 GB, free: 128.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00407/1.006, allocations: 1.01 MB / 0.5911 GB, free: 127.8 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.00909/1.015, allocations: 7.686 MB / 0.5986 GB, free: 120.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006879/1.022, allocations: 5.373 MB / 0.6039 GB, free: 114.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/1.022, allocations: 3.391 kB / 0.6039 GB, free: 114.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002676/1.025, allocations: 2.091 MB / 0.6059 GB, free: 112.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002918/1.028, allocations: 499.2 kB / 0.6064 GB, free: 112.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05066/1.079, allocations: 45.81 MB / 0.6511 GB, free: 61.51 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00302/1.082, allocations: 3.098 MB / 0.6541 GB, free: 58.38 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00338/1.085, allocations: 1.827 MB / 0.6559 GB, free: 56.55 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001899/1.087, allocations: 1.753 MB / 0.6576 GB, free: 54.79 MB / 478.1 MB Notification: Performance of SimCode: time 8.51e-07/1.087, allocations: 0 / 0.6576 GB, free: 54.79 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2343/1.321, allocations: 76.12 MB / 0.732 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.53/22.86, allocations: 11.72 kB / 0.732 GB, free: 10.56 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