Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_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.001076/0.001076, allocations: 108.2 kB / 16.62 MB, free: 6.961 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.001115/0.001115, allocations: 189.8 kB / 17.54 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 222.9 MB / 241.2 MB, free: 13.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001118/0.001118, allocations: 47.83 kB / 300.2 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1179, allocations: 49.45 MB / 349.7 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.2932/0.4112, allocations: 38.37 MB / 388.1 MB, free: 5.043 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02827/0.4395, allocations: 8.563 MB / 396.6 MB, free: 15.8 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01484/0.4544, allocations: 167.9 kB / 396.8 MB, free: 15.78 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0069/0.4614, allocations: 2.11 MB / 398.9 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009004/0.4705, allocations: 1.737 MB / 400.6 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002869/0.4734, allocations: 0.6963 MB / 401.3 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01122/0.4846, allocations: 5.558 MB / 406.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005337/0.4901, allocations: 3.034 MB / 409.9 MB, free: 8.449 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002834/0.4929, allocations: 1.511 MB / 411.4 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003557/0.4965, allocations: 2.286 MB / 413.7 MB, free: 4.641 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000959/0.4975, allocations: 300 kB / 414 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002791/0.5003, allocations: 1.205 MB / 415.2 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002346/0.5027, allocations: 1.87 MB / 417.1 MB, free: 1.266 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003289/0.506, allocations: 2.222 MB / 419.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009433/0.5154, allocations: 6.858 MB / 426.2 MB, free: 8.148 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.645e-05/0.5155, allocations: 3.938 kB / 426.2 MB, free: 8.145 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.5155, allocations: 0 / 426.2 MB, free: 8.145 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002343/0.5158, allocations: 0 / 426.2 MB, free: 8.145 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.01677/0.5325, allocations: 4.924 MB / 431.1 MB, free: 3.148 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.984e-05/0.5326, allocations: 8.031 kB / 431.1 MB, free: 3.141 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001674/0.5343, allocations: 0.6245 MB / 431.7 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1566/0.6909, allocations: 12.28 MB / 444 MB, free: 6.211 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00877/0.6997, allocations: 3.851 MB / 447.9 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001483/0.6999, allocations: 201 kB / 448.1 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004865/0.7004, allocations: 271.7 kB / 448.3 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0129/0.7133, allocations: 8.726 MB / 457.1 MB, free: 8.461 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001189/0.7134, allocations: 47.58 kB / 457.1 MB, free: 8.414 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00035/0.7138, allocations: 127.9 kB / 457.2 MB, free: 8.289 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002995/0.7168, allocations: 1.774 MB / 459 MB, free: 6.512 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01242/0.7292, allocations: 7.526 MB / 466.5 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0406/0.7699, allocations: 35.51 MB / 0.4903 GB, free: 10.39 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008327/0.7782, allocations: 3.687 MB / 0.4939 GB, free: 6.562 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002549/0.7808, allocations: 2.035 MB / 0.4959 GB, free: 4.516 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003806/0.7812, allocations: 332.1 kB / 0.4962 GB, free: 4.137 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.308e-05/0.7813, allocations: 59.53 kB / 0.4962 GB, free: 4.066 MB / 414.1 MB Notification: Performance of pre-optimization done (n=160): time 3.887e-06/0.7813, allocations: 0 / 0.4962 GB, free: 4.066 MB / 414.1 MB Notification: Performance of matching and sorting (n=190): time 0.05182/0.8331, allocations: 20.04 MB / 0.5158 GB, free: 15.91 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001228/0.8333, allocations: 252.6 kB / 0.516 GB, free: 15.61 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007094/0.8404, allocations: 3.95 MB / 0.5199 GB, free: 11.62 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002885/0.8407, allocations: 49.89 kB / 0.5199 GB, free: 11.57 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002428/0.8431, allocations: 2.815 MB / 0.5227 GB, free: 8.719 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008408/0.844, allocations: 0.725 MB / 0.5234 GB, free: 7.984 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00172/0.8457, allocations: 1.103 MB / 0.5245 GB, free: 6.871 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.8459, allocations: 301.1 kB / 0.5248 GB, free: 6.574 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003016/0.8489, allocations: 2.162 MB / 0.5269 GB, free: 4.406 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2236/1.073, allocations: 5.404 MB / 0.5322 GB, free: 146.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01012/1.083, allocations: 8.194 MB / 0.5402 GB, free: 140.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001801/1.083, allocations: 32.47 kB / 0.5402 GB, free: 140.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.02197/1.105, allocations: 8.664 MB / 0.5487 GB, free: 138 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001008/1.105, allocations: 53.27 kB / 0.5487 GB, free: 138 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001583/1.105, allocations: 112 kB / 0.5488 GB, free: 138 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004393/1.11, allocations: 1.502 MB / 0.5503 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004277/1.114, allocations: 1.22 MB / 0.5515 GB, free: 137.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01108/1.125, allocations: 9.94 MB / 0.5612 GB, free: 132.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004336/1.129, allocations: 318.5 kB / 0.5615 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005705/1.13, allocations: 327.8 kB / 0.5618 GB, free: 132.7 MB / 446.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.002837/1.133, allocations: 1.936 MB / 0.5637 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005927/1.133, allocations: 355 kB / 0.564 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006565/1.14, allocations: 4.152 MB / 0.5681 GB, free: 130 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-05/1.14, allocations: 26.7 kB / 0.5681 GB, free: 130 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/1.14, allocations: 8 kB / 0.5681 GB, free: 130 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.798e-05/1.14, allocations: 10.28 kB / 0.5681 GB, free: 130 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01313/1.153, allocations: 9.299 MB / 0.5772 GB, free: 121 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/1.153, allocations: 4.062 kB / 0.5772 GB, free: 121 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/1.154, allocations: 267.6 kB / 0.5775 GB, free: 120.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003291/1.158, allocations: 1.356 MB / 0.5788 GB, free: 119.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001429/1.158, allocations: 31.98 kB / 0.5788 GB, free: 119.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009174/1.167, allocations: 8.942 MB / 0.5875 GB, free: 110.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/1.167, allocations: 4 kB / 0.5875 GB, free: 110.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008536/1.175, allocations: 7.036 MB / 0.5944 GB, free: 103.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001134/1.177, allocations: 409.1 kB / 0.5948 GB, free: 102.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006326/1.177, allocations: 31.52 kB / 0.5948 GB, free: 102.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001435/1.179, allocations: 115.8 kB / 0.5949 GB, free: 102.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003588/1.179, allocations: 113.2 kB / 0.5951 GB, free: 102.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001328/1.179, allocations: 55.92 kB / 0.5951 GB, free: 102.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003049/1.182, allocations: 2.507 MB / 0.5976 GB, free: 100.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.182, allocations: 0 / 0.5976 GB, free: 100.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003968/1.186, allocations: 1.005 MB / 0.5985 GB, free: 99.06 MB / 446.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.008841/1.195, allocations: 7.686 MB / 0.606 GB, free: 91.33 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008721/1.204, allocations: 6.434 MB / 0.6123 GB, free: 84.93 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/1.204, allocations: 0 / 0.6123 GB, free: 84.93 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002685/1.207, allocations: 2.086 MB / 0.6144 GB, free: 82.83 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002748/1.209, allocations: 0.4965 MB / 0.6149 GB, free: 82.35 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06366/1.273, allocations: 53.15 MB / 0.6668 GB, free: 22.09 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00236/1.275, allocations: 3.095 MB / 0.6698 GB, free: 18.96 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003555/1.279, allocations: 1.819 MB / 0.6716 GB, free: 17.14 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001689/1.281, allocations: 1.756 MB / 0.6733 GB, free: 15.38 MB / 446.1 MB Notification: Performance of SimCode: time 1.031e-06/1.281, allocations: 0 / 0.6733 GB, free: 15.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2917/1.572, allocations: 77.84 MB / 0.7493 GB, free: 131.5 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001495/1.573, allocations: 239 kB / 0.7495 GB, free: 131.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.67/5.242, allocations: 0 / 0.7495 GB, free: 131.2 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches