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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001602/0.001602, allocations: 108.2 kB / 21.18 MB, free: 0.6992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001435/0.001435, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.465/1.465, allocations: 207.6 MB / 235.3 MB, free: 10.02 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001975/0.001975, allocations: 52.34 kB / 347.2 MB, free: 10.13 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2585, allocations: 49.16 MB / 396.4 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.009899/0.2684, allocations: 10.54 MB / 406.9 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008367/0.2768, allocations: 3.992 MB / 410.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001784/0.2786, allocations: 75.66 kB / 411 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00474/0.2833, allocations: 2.256 MB / 413.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005197/0.2885, allocations: 1.92 MB / 415.1 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001804/0.2903, allocations: 0.7462 MB / 415.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007474/0.2978, allocations: 4.845 MB / 420.7 MB, free: 9.406 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003484/0.3013, allocations: 2.416 MB / 423.2 MB, free: 7.695 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002834/0.3041, allocations: 1.522 MB / 424.7 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003556/0.3077, allocations: 2.231 MB / 426.9 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007215/0.3084, allocations: 304 kB / 427.2 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002443/0.3108, allocations: 1.217 MB / 428.4 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0021/0.3129, allocations: 1.916 MB / 430.3 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002688/0.3156, allocations: 2.21 MB / 432.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00861/0.3242, allocations: 7.075 MB / 439.6 MB, free: 7.938 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3242, allocations: 4 kB / 439.6 MB, free: 7.934 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3242, allocations: 0 / 439.6 MB, free: 7.934 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001554/0.3244, allocations: 0 / 439.6 MB, free: 7.934 MB / 350.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.01388/0.3383, allocations: 4.998 MB / 444.6 MB, free: 2.875 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.3383, allocations: 15.98 kB / 444.6 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00107/0.3394, allocations: 0.6206 MB / 445.3 MB, free: 2.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1631/0.5025, allocations: 12.3 MB / 457.6 MB, free: 5.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01058/0.5131, allocations: 4.186 MB / 461.7 MB, free: 1.672 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001835/0.5133, allocations: 197 kB / 461.9 MB, free: 1.477 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008441/0.5141, allocations: 271.8 kB / 462.2 MB, free: 1.211 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01573/0.5298, allocations: 8.734 MB / 470.9 MB, free: 7.828 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001615/0.53, allocations: 47.66 kB / 471 MB, free: 7.781 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003953/0.5304, allocations: 131.8 kB / 471.1 MB, free: 7.652 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003245/0.5336, allocations: 1.766 MB / 472.9 MB, free: 5.883 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01492/0.5485, allocations: 7.538 MB / 480.4 MB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04616/0.5947, allocations: 35.34 MB / 0.5037 GB, free: 9.91 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007952/0.6027, allocations: 3.107 MB / 0.5067 GB, free: 6.762 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002594/0.6052, allocations: 1.9 MB / 0.5086 GB, free: 4.852 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003318/0.6056, allocations: 101 kB / 0.5087 GB, free: 4.75 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.553e-05/0.6056, allocations: 51.5 kB / 0.5087 GB, free: 4.691 MB / 430.1 MB Notification: Performance of pre-optimization done (n=160): time 4.999e-06/0.6056, allocations: 4 kB / 0.5087 GB, free: 4.688 MB / 430.1 MB Notification: Performance of matching and sorting (n=190): time 0.05556/0.6612, allocations: 20.14 MB / 0.5284 GB, free: 0.5078 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001665/0.6614, allocations: 252.6 kB / 0.5286 GB, free: 208 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005997/0.6674, allocations: 3.988 MB / 0.5325 GB, free: 12.18 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002724/0.6676, allocations: 53.7 kB / 0.5326 GB, free: 12.12 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002377/0.67, allocations: 2.924 MB / 0.5354 GB, free: 9.176 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008671/0.6709, allocations: 0.7558 MB / 0.5362 GB, free: 8.414 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001543/0.6724, allocations: 1.119 MB / 0.5372 GB, free: 7.285 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.6726, allocations: 301.1 kB / 0.5375 GB, free: 6.988 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003365/0.6759, allocations: 2.166 MB / 0.5397 GB, free: 4.816 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006063/0.682, allocations: 5.403 MB / 0.5449 GB, free: 13.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01097/0.6929, allocations: 8.195 MB / 0.5529 GB, free: 4.016 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-05/0.693, allocations: 36 kB / 0.553 GB, free: 3.98 MB / 478.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.2104/0.9034, allocations: 8.631 MB / 0.5614 GB, free: 140.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.528e-05/0.9035, allocations: 54.41 kB / 0.5614 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001791/0.9037, allocations: 115.6 kB / 0.5616 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004431/0.9081, allocations: 1.499 MB / 0.563 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004187/0.9123, allocations: 1.221 MB / 0.5642 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01323/0.9255, allocations: 9.842 MB / 0.5738 GB, free: 136.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004241/0.9297, allocations: 321.2 kB / 0.5741 GB, free: 136.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007103/0.9305, allocations: 325.2 kB / 0.5744 GB, free: 136.2 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.002599/0.9331, allocations: 1.945 MB / 0.5763 GB, free: 135.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005577/0.9336, allocations: 376.6 kB / 0.5767 GB, free: 135.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006963/0.9406, allocations: 4.132 MB / 0.5807 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.281e-05/0.9406, allocations: 27.39 kB / 0.5808 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.236e-05/0.9406, allocations: 7.906 kB / 0.5808 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.995e-05/0.9406, allocations: 11.7 kB / 0.5808 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0137/0.9543, allocations: 9.233 MB / 0.5898 GB, free: 129.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.187e-05/0.9544, allocations: 4.188 kB / 0.5898 GB, free: 129.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001215/0.9556, allocations: 262.6 kB / 0.59 GB, free: 129.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00344/0.959, allocations: 1.352 MB / 0.5914 GB, free: 128.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001825/0.9592, allocations: 28 kB / 0.5914 GB, free: 128.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009831/0.969, allocations: 8.85 MB / 0.6 GB, free: 119.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.969, allocations: 7.938 kB / 0.6 GB, free: 119.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009237/0.9783, allocations: 7.038 MB / 0.6069 GB, free: 112.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001899/0.9802, allocations: 0.6367 MB / 0.6075 GB, free: 112.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005401/0.9807, allocations: 32 kB / 0.6076 GB, free: 112.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001562/0.9823, allocations: 126 kB / 0.6077 GB, free: 112 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003379/0.9826, allocations: 113.1 kB / 0.6078 GB, free: 111.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001273/0.9827, allocations: 48 kB / 0.6078 GB, free: 111.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00353/0.9863, allocations: 2.53 MB / 0.6103 GB, free: 109.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 8e-08/0.9863, allocations: 0 / 0.6103 GB, free: 109.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005006/0.9913, allocations: 1.009 MB / 0.6113 GB, free: 108.3 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.009374/1.001, allocations: 7.691 MB / 0.6188 GB, free: 100.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006952/1.008, allocations: 5.14 MB / 0.6238 GB, free: 95.47 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/1.008, allocations: 1.609 kB / 0.6238 GB, free: 95.47 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002771/1.01, allocations: 1.94 MB / 0.6257 GB, free: 93.52 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002622/1.013, allocations: 0.493 MB / 0.6262 GB, free: 93.04 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05395/1.067, allocations: 46.02 MB / 0.6711 GB, free: 42.07 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002477/1.069, allocations: 3.097 MB / 0.6742 GB, free: 38.95 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003354/1.073, allocations: 1.823 MB / 0.676 GB, free: 37.12 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001768/1.075, allocations: 1.761 MB / 0.6777 GB, free: 35.36 MB / 478.1 MB Notification: Performance of SimCode: time 1.022e-06/1.075, allocations: 0 / 0.6777 GB, free: 35.36 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3386/1.413, allocations: 80.02 MB / 0.7558 GB, free: 166.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.56/25.97, allocations: 4.953 kB / 0.7558 GB, free: 166.5 MB / 0.4981 GB " [Timeout remaining time 634] (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 --stepSize=0.00059976 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 29.55500592291355]