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.0008414/0.0008417, allocations: 90.66 kB / 17.3 MB, free: 6.344 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.0009256/0.0009256, allocations: 184.4 kB / 18.21 MB, free: 5.527 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.179/1.179, allocations: 205.4 MB / 224.4 MB, free: 13.06 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.0004021/0.0004021, allocations: 12 kB / 281.5 MB, free: 3.312 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0778/0.07821, allocations: 47.58 MB / 329.1 MB, free: 3.668 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.0308/0.1091, allocations: 37.36 MB / 366.4 MB, free: 14.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01755/0.1266, allocations: 8.602 MB / 375 MB, free: 5.531 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00655/0.1332, allocations: 171.5 kB / 375.2 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001263/0.1345, allocations: 390.1 kB / 375.6 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003928/0.1385, allocations: 1.756 MB / 377.3 MB, free: 3.219 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001291/0.1398, allocations: 0.6826 MB / 378 MB, free: 2.535 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1508/0.2906, allocations: 6.722 MB / 384.7 MB, free: 9.316 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004575/0.2952, allocations: 3.881 MB / 388.6 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001493/0.2967, allocations: 1.151 MB / 389.8 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001928/0.2987, allocations: 1.994 MB / 391.8 MB, free: 8.82 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002586/0.2989, allocations: 129.7 kB / 391.9 MB, free: 8.82 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001428/0.3004, allocations: 1.071 MB / 393 MB, free: 8.82 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001108/0.3015, allocations: 1.682 MB / 394.6 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001161/0.3027, allocations: 1.992 MB / 396.6 MB, free: 7.863 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003772/0.3064, allocations: 6.581 MB / 403.2 MB, free: 4.957 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.3065, allocations: 0 / 403.2 MB, free: 4.957 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3065, allocations: 4 kB / 403.2 MB, free: 4.953 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.898e-05/0.3065, allocations: 0 / 403.2 MB, free: 4.953 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.007663/0.3142, allocations: 4.117 MB / 407.3 MB, free: 2.418 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.3142, allocations: 13.38 kB / 407.3 MB, free: 2.418 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005564/0.3148, allocations: 0.6162 MB / 408 MB, free: 2.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.165/0.4798, allocations: 12.62 MB / 420.6 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009007/0.4889, allocations: 4.17 MB / 424.7 MB, free: 6.898 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001321/0.489, allocations: 199 kB / 424.9 MB, free: 6.789 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005625/0.4896, allocations: 279.4 kB / 425.2 MB, free: 6.605 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01324/0.5029, allocations: 8.742 MB / 434 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00012/0.503, allocations: 56.25 kB / 434 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003484/0.5034, allocations: 127.3 kB / 434.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002962/0.5063, allocations: 1.767 MB / 435.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01344/0.5198, allocations: 7.552 MB / 443.5 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03977/0.5596, allocations: 35.56 MB / 479 MB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00738/0.5671, allocations: 3.695 MB / 482.7 MB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002248/0.5693, allocations: 2.025 MB / 484.7 MB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003736/0.5697, allocations: 332.8 kB / 485.1 MB, free: 9.703 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.123e-05/0.5698, allocations: 54.73 kB / 485.1 MB, free: 9.641 MB / 398.1 MB Notification: Performance of pre-optimization done (n=160): time 4.428e-06/0.5698, allocations: 0.8438 kB / 485.1 MB, free: 9.641 MB / 398.1 MB Notification: Performance of matching and sorting (n=190): time 0.05016/0.6199, allocations: 20.15 MB / 0.4934 GB, free: 5.434 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/0.6201, allocations: 255.7 kB / 0.4937 GB, free: 5.129 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004766/0.6249, allocations: 3.987 MB / 0.4976 GB, free: 1.113 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001801/0.6251, allocations: 53.7 kB / 0.4976 GB, free: 1.055 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001863/0.6269, allocations: 2.816 MB / 0.5004 GB, free: 14.23 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006354/0.6276, allocations: 0.7208 MB / 0.5011 GB, free: 13.52 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005311/0.6281, allocations: 475.1 kB / 0.5015 GB, free: 13.05 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.891e-05/0.6282, allocations: 305.1 kB / 0.5018 GB, free: 12.75 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002719/0.6309, allocations: 2.166 MB / 0.5039 GB, free: 10.58 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004613/0.6356, allocations: 5.404 MB / 0.5092 GB, free: 3.613 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008062/0.6436, allocations: 8.192 MB / 0.5172 GB, free: 10.29 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-05/0.6437, allocations: 32 kB / 0.5172 GB, free: 10.26 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01401/0.6577, allocations: 8.661 MB / 0.5257 GB, free: 2.281 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.723e-05/0.6578, allocations: 52 kB / 0.5257 GB, free: 2.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001084/0.6579, allocations: 112 kB / 0.5258 GB, free: 2.121 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003962/0.6619, allocations: 1.504 MB / 0.5273 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003502/0.6654, allocations: 1.223 MB / 0.5285 GB, free: 15.42 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01197/0.6774, allocations: 9.244 MB / 0.5375 GB, free: 6.043 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00383/0.6812, allocations: 319.5 kB / 0.5378 GB, free: 5.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004044/0.6817, allocations: 333.2 kB / 0.5382 GB, free: 5.406 MB / 462.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.002961/0.6846, allocations: 1.945 MB / 0.5401 GB, free: 3.449 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005138/0.6851, allocations: 355.3 kB / 0.5404 GB, free: 3.098 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1779/0.8631, allocations: 4.15 MB / 0.5444 GB, free: 174.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.091e-05/0.8633, allocations: 24.62 kB / 0.5445 GB, free: 174.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.826e-05/0.8633, allocations: 8.25 kB / 0.5445 GB, free: 174.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.707e-05/0.8634, allocations: 11.83 kB / 0.5445 GB, free: 174.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01697/0.8803, allocations: 9.321 MB / 0.5536 GB, free: 173 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-05/0.8804, allocations: 1.281 kB / 0.5536 GB, free: 173 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001177/0.8816, allocations: 265.4 kB / 0.5538 GB, free: 173 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003449/0.885, allocations: 1.349 MB / 0.5552 GB, free: 172.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001349/0.8852, allocations: 34.88 kB / 0.5552 GB, free: 172.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009334/0.8945, allocations: 8.33 MB / 0.5633 GB, free: 168.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.8945, allocations: 4.562 kB / 0.5633 GB, free: 168.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008509/0.903, allocations: 7.033 MB / 0.5702 GB, free: 166.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001096/0.9042, allocations: 0.7015 MB / 0.5709 GB, free: 166.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003296/0.9045, allocations: 31.78 kB / 0.5709 GB, free: 166.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001295/0.9058, allocations: 118.6 kB / 0.571 GB, free: 166.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002654/0.9061, allocations: 114.1 kB / 0.5711 GB, free: 166.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/0.9062, allocations: 49 kB / 0.5712 GB, free: 166.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002867/0.9091, allocations: 2.532 MB / 0.5737 GB, free: 165.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9091, allocations: 0 / 0.5737 GB, free: 165.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003195/0.9123, allocations: 1.002 MB / 0.5746 GB, free: 165.1 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.008666/0.9209, allocations: 7.695 MB / 0.5822 GB, free: 159.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005985/0.9269, allocations: 5.358 MB / 0.5874 GB, free: 153.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.346e-06/0.927, allocations: 0 / 0.5874 GB, free: 153.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002512/0.9295, allocations: 2.075 MB / 0.5894 GB, free: 151.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003023/0.9325, allocations: 474.1 kB / 0.5899 GB, free: 151.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05924/0.9918, allocations: 53.58 MB / 0.6422 GB, free: 90.72 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002411/0.9942, allocations: 3.099 MB / 0.6452 GB, free: 87.59 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003732/0.998, allocations: 1.82 MB / 0.647 GB, free: 85.76 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002056/1, allocations: 1.753 MB / 0.6487 GB, free: 84.01 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/1, allocations: 0 / 0.6487 GB, free: 84.01 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8986/1.899, allocations: 75.42 MB / 0.7224 GB, free: 8.473 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001718/1.899, allocations: 249.3 kB / 0.7226 GB, free: 8.207 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.849/5.748, allocations: 0 / 0.7226 GB, free: 8.207 MB / 462.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","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches