Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001731/0.001731, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002115/0.002115, allocations: 207.4 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 230.5 MB / 258.2 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 63.89 kB / 378.6 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2589, allocations: 53.41 MB / 432 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01253/0.2714, allocations: 10.47 MB / 442.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008958/0.2804, allocations: 4.011 MB / 446.5 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002296/0.2827, allocations: 75.62 kB / 446.5 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004882/0.2876, allocations: 2.246 MB / 448.8 MB, free: 5.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005377/0.2929, allocations: 1.883 MB / 450.7 MB, free: 3.934 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001992/0.2949, allocations: 0.737 MB / 451.4 MB, free: 3.195 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008391/0.3033, allocations: 5.269 MB / 456.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003805/0.3071, allocations: 2.404 MB / 459.1 MB, free: 11.46 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002987/0.3101, allocations: 1.499 MB / 460.6 MB, free: 9.953 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003697/0.3138, allocations: 2.208 MB / 462.8 MB, free: 7.738 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001051/0.3149, allocations: 300 kB / 463.1 MB, free: 7.445 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002855/0.3177, allocations: 1.217 MB / 464.3 MB, free: 6.227 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002562/0.3203, allocations: 1.897 MB / 466.2 MB, free: 4.324 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003558/0.3238, allocations: 2.191 MB / 468.4 MB, free: 2.121 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01001/0.3338, allocations: 6.985 MB / 475.4 MB, free: 11.11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.3338, allocations: 0 / 475.4 MB, free: 11.11 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.3338, allocations: 0 / 475.4 MB, free: 11.11 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002585/0.3341, allocations: 0 / 475.4 MB, free: 11.11 MB / 382.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.01543/0.3495, allocations: 4.975 MB / 480.3 MB, free: 6.074 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/0.3496, allocations: 12.03 kB / 480.3 MB, free: 6.062 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001471/0.3497, allocations: 89.28 kB / 480.4 MB, free: 5.973 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001507/0.3512, allocations: 0.6245 MB / 481.1 MB, free: 5.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1648/0.5161, allocations: 12.29 MB / 493.3 MB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009452/0.5255, allocations: 3.639 MB / 497 MB, free: 5.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001945/0.5257, allocations: 197 kB / 497.2 MB, free: 5.145 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009514/0.5267, allocations: 263.8 kB / 497.4 MB, free: 4.887 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01574/0.5424, allocations: 8.738 MB / 0.4943 GB, free: 11.5 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001779/0.5426, allocations: 51.59 kB / 0.4944 GB, free: 11.45 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007238/0.5433, allocations: 127.9 kB / 0.4945 GB, free: 11.32 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003359/0.5467, allocations: 1.766 MB / 0.4962 GB, free: 9.555 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01554/0.5622, allocations: 7.53 MB / 0.5036 GB, free: 2.02 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.256/0.8183, allocations: 35.31 MB / 0.538 GB, free: 93 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008021/0.8263, allocations: 3.115 MB / 0.5411 GB, free: 92.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002277/0.8286, allocations: 1.897 MB / 0.5429 GB, free: 92.86 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003249/0.8289, allocations: 99.45 kB / 0.543 GB, free: 92.86 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.182e-05/0.8289, allocations: 53.19 kB / 0.5431 GB, free: 92.82 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.909e-06/0.8289, allocations: 0 / 0.5431 GB, free: 92.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.04898/0.8779, allocations: 20.01 MB / 0.5626 GB, free: 83.17 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.779e-05/0.878, allocations: 255.9 kB / 0.5629 GB, free: 82.87 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005108/0.8831, allocations: 3.942 MB / 0.5667 GB, free: 79.02 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003774/0.8835, allocations: 61.67 kB / 0.5668 GB, free: 78.95 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001224/0.8847, allocations: 2.916 MB / 0.5696 GB, free: 76.36 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006445/0.8853, allocations: 0.7543 MB / 0.5704 GB, free: 75.61 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001234/0.8866, allocations: 1.114 MB / 0.5714 GB, free: 74.49 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.993e-05/0.8866, allocations: 301.1 kB / 0.5717 GB, free: 74.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002426/0.889, allocations: 2.166 MB / 0.5738 GB, free: 72.02 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003601/0.8926, allocations: 5.398 MB / 0.5791 GB, free: 65.13 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006738/0.8994, allocations: 8.204 MB / 0.5871 GB, free: 55.42 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.368e-05/0.8994, allocations: 32 kB / 0.5872 GB, free: 55.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.0135/0.9129, allocations: 8.646 MB / 0.5956 GB, free: 46.73 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.341e-05/0.913, allocations: 56 kB / 0.5957 GB, free: 46.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001066/0.9131, allocations: 112 kB / 0.5958 GB, free: 46.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003837/0.917, allocations: 1.501 MB / 0.5972 GB, free: 45.06 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003758/0.9207, allocations: 1.224 MB / 0.5984 GB, free: 43.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01058/0.9313, allocations: 9.841 MB / 0.608 GB, free: 33.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004339/0.9356, allocations: 319 kB / 0.6083 GB, free: 33.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006918/0.9363, allocations: 335.2 kB / 0.6087 GB, free: 33.25 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.002434/0.9388, allocations: 1.932 MB / 0.6105 GB, free: 31.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000559/0.9393, allocations: 365.6 kB / 0.6109 GB, free: 30.94 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006426/0.9457, allocations: 4.135 MB / 0.6149 GB, free: 26.79 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.26e-05/0.9458, allocations: 24 kB / 0.615 GB, free: 26.77 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/0.9458, allocations: 4 kB / 0.615 GB, free: 26.76 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.045e-05/0.9458, allocations: 12.84 kB / 0.615 GB, free: 26.75 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01366/0.9595, allocations: 9.224 MB / 0.624 GB, free: 17.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.269e-05/0.9595, allocations: 0 / 0.624 GB, free: 17.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001184/0.9607, allocations: 273.7 kB / 0.6242 GB, free: 17.24 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003379/0.964, allocations: 1.343 MB / 0.6256 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000239/0.9643, allocations: 35.92 kB / 0.6256 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009668/0.9739, allocations: 8.85 MB / 0.6342 GB, free: 6.891 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.9739, allocations: 0 / 0.6342 GB, free: 6.891 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009369/0.9833, allocations: 7.051 MB / 0.6411 GB, free: 15.82 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009925/0.9843, allocations: 353.3 kB / 0.6415 GB, free: 15.47 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005746/0.9849, allocations: 33.69 kB / 0.6415 GB, free: 15.44 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001693/0.9866, allocations: 111.8 kB / 0.6416 GB, free: 15.33 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000428/0.987, allocations: 129 kB / 0.6417 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001641/0.9872, allocations: 51.98 kB / 0.6418 GB, free: 15.15 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004173/0.9913, allocations: 2.501 MB / 0.6442 GB, free: 12.66 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.9913, allocations: 0 / 0.6442 GB, free: 12.66 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004611/0.996, allocations: 0.9882 MB / 0.6452 GB, free: 11.68 MB / 462.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.01244/1.008, allocations: 7.685 MB / 0.6527 GB, free: 3.961 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009231/1.018, allocations: 5.157 MB / 0.6577 GB, free: 14.82 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/1.018, allocations: 0 / 0.6577 GB, free: 14.82 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003847/1.021, allocations: 1.932 MB / 0.6596 GB, free: 12.88 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003673/1.025, allocations: 0.4917 MB / 0.6601 GB, free: 12.39 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08397/1.109, allocations: 45.8 MB / 0.7048 GB, free: 9.633 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004853/1.114, allocations: 3.079 MB / 0.7078 GB, free: 6.527 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00453/1.118, allocations: 1.819 MB / 0.7096 GB, free: 4.699 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003073/1.122, allocations: 1.757 MB / 0.7113 GB, free: 2.941 MB / 0.5137 GB Notification: Performance of SimCode: time 2.354e-06/1.122, allocations: 0 / 0.7113 GB, free: 2.941 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3227/1.444, allocations: 79.69 MB / 0.7891 GB, free: 166 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.15/25.59, allocations: 3.328 kB / 0.7891 GB, free: 166 MB / 0.545 GB " [Timeout remaining time 634] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 29.72838690399658]