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.001559/0.001559, allocations: 109.4 kB / 17.73 MB, free: 5.34 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.001376/0.001376, allocations: 196.2 kB / 18.67 MB, free: 4.402 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.471/1.471, 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.00187/0.00187, allocations: 51.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08868/0.09056, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.2601/0.3507, allocations: 10.47 MB / 385.1 MB, free: 7.438 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008596/0.3593, allocations: 3.952 MB / 389.1 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001996/0.3615, allocations: 67.38 kB / 389.1 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004309/0.3658, allocations: 2.213 MB / 391.4 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006344/0.3721, allocations: 1.857 MB / 393.2 MB, free: 3.469 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002654/0.3748, allocations: 0.7371 MB / 393.9 MB, free: 3.176 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009642/0.3845, allocations: 4.841 MB / 398.8 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004722/0.3892, allocations: 2.904 MB / 401.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003966/0.3932, allocations: 1.484 MB / 403.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003831/0.3971, allocations: 2.05 MB / 405.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008459/0.398, allocations: 300.4 kB / 405.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002815/0.4008, allocations: 1.175 MB / 406.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002072/0.4029, allocations: 1.846 MB / 408.5 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00272/0.4056, allocations: 2.22 MB / 410.8 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01013/0.4157, allocations: 7.057 MB / 417.8 MB, free: 4.578 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.4158, allocations: 4 kB / 417.8 MB, free: 4.574 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.4158, allocations: 0 / 417.8 MB, free: 4.574 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001784/0.416, 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.01392/0.4299, allocations: 5.077 MB / 422.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.43, allocations: 8.031 kB / 422.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009737/0.4309, allocations: 0.6206 MB / 423.5 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1747/0.6057, allocations: 12.3 MB / 435.8 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01107/0.6168, allocations: 4.255 MB / 440.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002376/0.6171, allocations: 205 kB / 440.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009929/0.6181, allocations: 275.7 kB / 440.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01926/0.6374, allocations: 8.726 MB / 449.3 MB, free: 4.301 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001914/0.6376, allocations: 47.59 kB / 449.3 MB, free: 4.254 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004715/0.6381, allocations: 135.9 kB / 449.5 MB, free: 4.121 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003482/0.6416, allocations: 1.762 MB / 451.2 MB, free: 2.359 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01629/0.6579, allocations: 7.538 MB / 458.8 MB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05136/0.7093, allocations: 35.44 MB / 494.2 MB, free: 6.305 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008786/0.7182, allocations: 3.684 MB / 497.9 MB, free: 2.465 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003043/0.7213, allocations: 2.039 MB / 499.9 MB, free: 428 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005166/0.7218, allocations: 332.2 kB / 0.4885 GB, free: 40 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.292e-05/0.7219, allocations: 55.52 kB / 0.4886 GB, free: 15.97 MB / 430.1 MB Notification: Performance of pre-optimization done (n=160): time 6.341e-06/0.7219, allocations: 0 / 0.4886 GB, free: 15.97 MB / 430.1 MB Notification: Performance of matching and sorting (n=190): time 0.05711/0.779, allocations: 20.38 MB / 0.5085 GB, free: 11.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002126/0.7793, allocations: 252.6 kB / 0.5087 GB, free: 11.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006428/0.7857, allocations: 3.988 MB / 0.5126 GB, free: 7.184 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003519/0.7861, allocations: 53.7 kB / 0.5127 GB, free: 7.125 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002596/0.7887, allocations: 2.932 MB / 0.5155 GB, free: 4.164 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009933/0.7897, allocations: 0.7481 MB / 0.5163 GB, free: 3.41 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00163/0.7914, allocations: 1.112 MB / 0.5173 GB, free: 2.289 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.7915, allocations: 305.1 kB / 0.5176 GB, free: 1.988 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003403/0.7949, allocations: 2.166 MB / 0.5197 GB, free: 15.82 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006536/0.8015, allocations: 5.406 MB / 0.525 GB, free: 8.793 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01268/0.8142, allocations: 8.184 MB / 0.533 GB, free: 15.02 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001268/0.8144, allocations: 32 kB / 0.533 GB, free: 14.99 MB / 478.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.0205/0.8349, allocations: 8.678 MB / 0.5415 GB, free: 6.297 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000163/0.8351, allocations: 52 kB / 0.5416 GB, free: 6.246 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002105/0.8353, allocations: 112 kB / 0.5417 GB, free: 6.137 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004679/0.84, allocations: 1.5 MB / 0.5431 GB, free: 4.633 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004328/0.8444, allocations: 1.224 MB / 0.5443 GB, free: 3.406 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1923/1.037, allocations: 9.934 MB / 0.554 GB, free: 143 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004676/1.041, allocations: 318.6 kB / 0.5543 GB, free: 142.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007899/1.042, allocations: 334.5 kB / 0.5547 GB, free: 142.8 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.003079/1.045, allocations: 1.943 MB / 0.5566 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007004/1.046, allocations: 374.3 kB / 0.5569 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007741/1.054, allocations: 4.151 MB / 0.561 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-05/1.054, allocations: 22.72 kB / 0.561 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.489e-05/1.054, allocations: 8.438 kB / 0.561 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-05/1.054, allocations: 9.156 kB / 0.561 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01498/1.069, allocations: 9.285 MB / 0.5701 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.414e-05/1.069, allocations: 9.25 kB / 0.5701 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001155/1.07, allocations: 264.3 kB / 0.5703 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003569/1.074, allocations: 1.349 MB / 0.5717 GB, free: 137 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000165/1.074, allocations: 29.34 kB / 0.5717 GB, free: 137 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009896/1.084, allocations: 8.945 MB / 0.5804 GB, free: 132.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/1.084, allocations: 0 / 0.5804 GB, free: 132.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009244/1.093, allocations: 7.07 MB / 0.5873 GB, free: 130.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001435/1.095, allocations: 0.7146 MB / 0.588 GB, free: 129.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004631/1.095, allocations: 31.88 kB / 0.5881 GB, free: 129.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001456/1.096, allocations: 119.6 kB / 0.5882 GB, free: 129.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003437/1.097, allocations: 113.2 kB / 0.5883 GB, free: 129.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001274/1.097, allocations: 47.03 kB / 0.5883 GB, free: 129.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003329/1.1, allocations: 2.535 MB / 0.5908 GB, free: 128.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.51e-07/1.1, allocations: 0 / 0.5908 GB, free: 128.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00453/1.105, allocations: 1.012 MB / 0.5918 GB, free: 127.1 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.009176/1.114, allocations: 7.71 MB / 0.5993 GB, free: 119.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006764/1.121, allocations: 5.373 MB / 0.6046 GB, free: 114 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/1.121, allocations: 0 / 0.6046 GB, free: 114 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00268/1.124, allocations: 2.089 MB / 0.6066 GB, free: 111.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002593/1.126, allocations: 499.5 kB / 0.6071 GB, free: 111.5 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05017/1.176, allocations: 45.98 MB / 0.652 GB, free: 60.62 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002339/1.179, allocations: 3.094 MB / 0.655 GB, free: 57.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003226/1.182, allocations: 1.823 MB / 0.6568 GB, free: 55.66 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002212/1.184, allocations: 1.757 MB / 0.6585 GB, free: 53.91 MB / 478.1 MB Notification: Performance of SimCode: time 1.052e-06/1.184, allocations: 0 / 0.6585 GB, free: 53.91 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1203/1.305, allocations: 74.91 MB / 0.7316 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.16/23.47, allocations: 7.656 kB / 0.7317 GB, free: 10.89 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